|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.http.options.BaseHttpRequestOptions org.jclouds.ec2.options.internal.BaseEC2RequestOptions org.jclouds.ec2.options.RegisterImageOptions org.jclouds.ec2.options.RegisterImageBackedByEbsOptions
public class RegisterImageBackedByEbsOptions
Contains options supported in the Form API for the RegisterImage operation.
import static org.jclouds.ec2.options.RegisterImageBackedByEbsOptions.Builder.*
EC2Client connection = // get connection
String imageId = connection.getImageServices().registerImageBackedByEbs(...addEphemeralBlockDeviceFromSnapshot("/dev/sda2","virtual-1","snapshot-id"));
- Author:
- Adrian Cole
- See Also:
Nested Class Summary
static class
RegisterImageBackedByEbsOptions.Builder
Field Summary
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor Summary
RegisterImageBackedByEbsOptions()
Method Summary
RegisterImageBackedByEbsOptions
addBlockDeviceFromSnapshot(String deviceName,
String virtualName,
String snapshotId)
adds a block device to the image from an ebs snapshot.
RegisterImageBackedByEbsOptions
addEphemeralBlockDeviceFromSnapshot(String deviceName,
String virtualName,
String snapshotId)
adds a block device to the image from an ebs snapshot.
RegisterImageBackedByEbsOptions
addNewBlockDevice(String deviceName,
String virtualName,
int volumeSize)
adds a new block device to the image.
RegisterImageBackedByEbsOptions
addNewEphemeralBlockDevice(String deviceName,
String virtualName,
int volumeSize)
adds a new block device to the image.
RegisterImageBackedByEbsOptions
asArchitecture(Image.Architecture architecture)
The architecture of the image.
RegisterImageBackedByEbsOptions
withDescription(String info)
The description of the AMI.
RegisterImageBackedByEbsOptions
withKernelId(String kernelId)
The ID of the kernel to select.
RegisterImageBackedByEbsOptions
withRamdisk(String ramDiskId)
The ID of the RAM disk to select.
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Constructor Detail
RegisterImageBackedByEbsOptions
public RegisterImageBackedByEbsOptions()
Method Detail
addEphemeralBlockDeviceFromSnapshot
public RegisterImageBackedByEbsOptions addEphemeralBlockDeviceFromSnapshot(String deviceName,
@Nullable
String virtualName,
String snapshotId)
- adds a block device to the image from an ebs snapshot. This device is deleted on instance
termination.
- Parameters:
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name. (nullable)snapshotId
- The ID of the snapshot.
addNewEphemeralBlockDevice
public RegisterImageBackedByEbsOptions addNewEphemeralBlockDevice(String deviceName,
@Nullable
String virtualName,
int volumeSize)
- adds a new block device to the image. This device is deleted on instance termination.
- Parameters:
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name.volumeSize
- The size of the volume, in GiBs.
addBlockDeviceFromSnapshot
public RegisterImageBackedByEbsOptions addBlockDeviceFromSnapshot(String deviceName,
@Nullable
String virtualName,
String snapshotId)
- adds a block device to the image from an ebs snapshot. This device is retained on instance
termination.
- Parameters:
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name. (nullable)snapshotId
- The ID of the snapshot.
addNewBlockDevice
public RegisterImageBackedByEbsOptions addNewBlockDevice(String deviceName,
@Nullable
String virtualName,
int volumeSize)
- adds a new block device to the image. This device is retained on instance termination.
- Parameters:
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name.volumeSize
- The size of the volume, in GiBs..
asArchitecture
public RegisterImageBackedByEbsOptions asArchitecture(Image.Architecture architecture)
- The architecture of the image.
- Overrides:
asArchitecture
in class RegisterImageOptions
withDescription
public RegisterImageBackedByEbsOptions withDescription(String info)
- The description of the AMI. "Up to 255 characters."
- Overrides:
withDescription
in class RegisterImageOptions
withKernelId
public RegisterImageBackedByEbsOptions withKernelId(String kernelId)
- The ID of the kernel to select.
- Overrides:
withKernelId
in class RegisterImageOptions
withRamdisk
public RegisterImageBackedByEbsOptions withRamdisk(String ramDiskId)
- The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the
kernel requirements for information on whether you need to specify a RAM disk. To find kernel
requirements, refer to the Resource Center and search for the kernel ID.
- Overrides:
withRamdisk
in class RegisterImageOptions
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009-2011 jclouds. All Rights Reserved.