org.jclouds.ec2.options
Class CreateSnapshotOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.ec2.options.internal.BaseEC2RequestOptions
          extended by org.jclouds.ec2.options.CreateSnapshotOptions
All Implemented Interfaces:
HttpRequestOptions

public class CreateSnapshotOptions
extends BaseEC2RequestOptions

Contains options supported in the Form API for the CreateSnapshot operation.

Usage

The recommended way to instantiate a CreateSnapshotOptions object is to statically import CreateSnapshotOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

import static org.jclouds.ec2.options.CreateSnapshotOptions.Builder.*

EC2Client connection = // get connection Snapshot snapshot = connection.getElasticBlockStoreServices().createSnapshotInRegion(volumeId, withDescription("123125"));

Author:
Adrian Cole
See Also:

Nested Class Summary
static class CreateSnapshotOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateSnapshotOptions()
           
 
Method Summary
 String getDescription()
           
 CreateSnapshotOptions withDescription(String description)
          Description of the Amazon EBS snapshot.
 
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

CreateSnapshotOptions

public CreateSnapshotOptions()
Method Detail

withDescription

public CreateSnapshotOptions withDescription(String description)
Description of the Amazon EBS snapshot.

Up to 255 characters


getDescription

public String getDescription()


Copyright © 2009-2011 jclouds. All Rights Reserved.