public class RegisterImageBackedByEbsOptions extends RegisterImageOptions
import static org.jclouds.ec2.options.RegisterImageBackedByEbsOptions.Builder.*
EC2Api connection = // get connection
String imageId = connection.getImageServices().registerImageBackedByEbs(...addEphemeralBlockDeviceFromSnapshot("/dev/sda2","virtual-1","snapshot-id"));
Modifier and Type | Class and Description |
---|---|
static class |
RegisterImageBackedByEbsOptions.Builder |
formParameters, headers, pathSuffix, payload, queryParameters
Constructor and Description |
---|
RegisterImageBackedByEbsOptions() |
Modifier and Type | Method and Description |
---|---|
RegisterImageBackedByEbsOptions |
addBlockDeviceFromSnapshot(String deviceName,
String virtualName,
String snapshotId)
adds a block device to the image from an ebs snapshot.
|
RegisterImageBackedByEbsOptions |
addBlockDeviceFromSnapshot(String deviceName,
String virtualName,
String snapshotId,
boolean deleteOnTermination,
String volumeType,
Integer iops,
boolean encrypted)
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 |
addNewBlockDevice(String deviceName,
String virtualName,
int volumeSize,
boolean deleteOnTermination,
String volumeType,
Integer iops,
boolean encrypted)
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.
|
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
public RegisterImageBackedByEbsOptions addEphemeralBlockDeviceFromSnapshot(String deviceName, @Nullable String virtualName, String snapshotId)
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name. (nullable)snapshotId
- The ID of the snapshot.public RegisterImageBackedByEbsOptions addNewEphemeralBlockDevice(String deviceName, @Nullable String virtualName, int volumeSize)
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name.volumeSize
- The size of the volume, in GiBs.public RegisterImageBackedByEbsOptions addBlockDeviceFromSnapshot(String deviceName, @Nullable String virtualName, String snapshotId, boolean deleteOnTermination, @Nullable String volumeType, @Nullable Integer iops, boolean encrypted)
deviceName
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name. (nullable)snapshotId
- The ID of the snapshot.deleteOnTermination
- Whether this volume should be automatically deleted on instance termination.
Defaults to false.volumeType
- What EBS volume type should be used.iops
- EBS provisioned IOPS for this volume.encrypted
- Whether this volume should be encrypted.public RegisterImageBackedByEbsOptions addNewBlockDevice(String deviceName, @Nullable String virtualName, int volumeSize, boolean deleteOnTermination, @Nullable String volumeType, @Nullable Integer iops, boolean encrypted)
deviceName
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name. (nullable)volumeSize
- The size of the volume, in GiBs..deleteOnTermination
- Whether this volume should be automatically deleted on instance termination.
Defaults to false.volumeType
- What EBS volume type should be used.iops
- EBS provisioned IOPS for this volume.encrypted
- Whether this volume should be encrypted.public RegisterImageBackedByEbsOptions addBlockDeviceFromSnapshot(String deviceName, @Nullable String virtualName, String snapshotId)
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name. (nullable)snapshotId
- The ID of the snapshot.public RegisterImageBackedByEbsOptions addNewBlockDevice(String deviceName, @Nullable String virtualName, int volumeSize)
name
- The device name (e.g., /dev/sdh).virtualName
- The virtual device name.volumeSize
- The size of the volume, in GiBs..public RegisterImageBackedByEbsOptions asArchitecture(Image.Architecture architecture)
asArchitecture
in class RegisterImageOptions
public RegisterImageBackedByEbsOptions withDescription(String info)
withDescription
in class RegisterImageOptions
public RegisterImageBackedByEbsOptions withKernelId(String kernelId)
withKernelId
in class RegisterImageOptions
public RegisterImageBackedByEbsOptions withRamdisk(String ramDiskId)
withRamdisk
in class RegisterImageOptions
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.