|
||||||||||
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.CreateImageOptions
public class CreateImageOptions
Contains options supported in the Form API for the CreateImage operation.
import static org.jclouds.ec2.options.CreateImageOptions.Builder.*
EC2Client connection = // get connection
Future> images = connection.getAMIServices().createImage(withDescription("123125").noReboot());
- Author:
- Adrian Cole
- See Also:
Nested Class Summary
static class
CreateImageOptions.Builder
Field Summary
static CreateImageOptions
NONE
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor Summary
CreateImageOptions()
Method Summary
String
getDescription()
boolean
getNoReboot()
CreateImageOptions
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.
CreateImageOptions
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, 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
Field Detail
NONE
public static final CreateImageOptions NONE
Constructor Detail
CreateImageOptions
public CreateImageOptions()
Method Detail
withDescription
public CreateImageOptions withDescription(String description)
- The description of the AMI that was provided during image creation.
Up to 255 characters
getDescription
public String getDescription()
noReboot
public CreateImageOptions 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()
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.