Package org.jclouds.ec2.options
Class CreateImageOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.ec2.options.internal.BaseEC2RequestOptions
org.jclouds.ec2.options.CreateImageOptions
- All Implemented Interfaces:
HttpRequestOptions
Contains options supported in the Form API for the CreateImage operation.
Usage
The recommended way to instantiate a CreateImageOptions object is to statically import CreateImageOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):
import static org.jclouds.ec2.options.CreateImageOptions.Builder.*
EC2Api connection = // get connection
Futureinvalid input: '<'Set> images = connection.getAMIApi().get().createImage(withDescription("123125").noReboot());
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
noReboot()
By default this property is set to false, which means Amazon EC2 attempts to cleanly shut down the instance before image creation and reboots the instance afterwards.withDescription
(String description) The description of the AMI that was provided during image creation.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
-
Field Details
-
NONE
-
-
Constructor Details
-
CreateImageOptions
public CreateImageOptions()
-
-
Method Details
-
withDescription
The description of the AMI that was provided during image creation. Up to 255 characters -
getDescription
-
noReboot
By default this property is set to false, which means Amazon EC2 attempts to cleanly shut down the instance before image creation and reboots the instance afterwards. When set to true, Amazon EC2 does not shut down the instance before creating the image. When this option is used, file system integrity on the created image cannot be guaranteed. -
getNoReboot
public boolean getNoReboot()
-