Package org.jclouds.ec2.options
Class RegisterImageOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.ec2.options.internal.BaseEC2RequestOptions
-
- org.jclouds.ec2.options.RegisterImageOptions
-
- All Implemented Interfaces:
HttpRequestOptions
- Direct Known Subclasses:
RegisterImageBackedByEbsOptions
public class RegisterImageOptions extends BaseEC2RequestOptions
Contains options supported in the Form API for the RegisterImage operation.Usage
The recommended way to instantiate a RegisterImageOptions object is to statically import RegisterImageOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):import static org.jclouds.ec2.options.RegisterImageOptions.Builder.* EC2Api connection = // get connection String imageId = connection.getImageServices().registerImageFromManifest(...withArchitecture(Architecture.I386).withDescription("description"));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegisterImageOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description RegisterImageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisterImageOptions
asArchitecture(Image.Architecture architecture)
The architecture of the image.RegisterImageOptions
withDescription(String info)
The description of the AMI.RegisterImageOptions
withKernelId(String kernelId)
The ID of the kernel to select.RegisterImageOptions
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, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
-
-
-
-
Method Detail
-
asArchitecture
public RegisterImageOptions asArchitecture(Image.Architecture architecture)
The architecture of the image.
-
withDescription
public RegisterImageOptions withDescription(String info)
The description of the AMI. "Up to 255 characters."
-
withKernelId
public RegisterImageOptions withKernelId(String kernelId)
The ID of the kernel to select.
-
withRamdisk
public RegisterImageOptions 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.
-
-