Package org.jclouds.ec2.options
Class CreateVolumeOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.ec2.options.internal.BaseEC2RequestOptions
org.jclouds.ec2.options.CreateVolumeOptions
- All Implemented Interfaces:
HttpRequestOptions
Contains options supported in the Form API for the CreateVolume operation.
Usage
The recommended way to instantiate a CreateVolumeOptions object is to statically import CreateVolumeOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):
import static org.jclouds.ec2.options.CreateVolumeOptions.Builder.*
EC2Api connection = // get connection
Volume volume = connection.getElasticBlockStoreApi().get().createVolumeInAvailabilityZone(availabilityZone, fromSnapshotId("123125"));
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromSnapshotId
(String snapshotId) Snapshot ID to create this volume from.boolean
getIops()
int
getSize()
isEncrypted
(boolean encrypted) Should this EBS volume be encrypted?volumeType
(String volumeType) EBS volume type to use - if not specified, will be "standard".EBS provisioned IOPSwithSize
(int size) Snapshot ID to create this volume from.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
-
Constructor Details
-
CreateVolumeOptions
public CreateVolumeOptions()
-
-
Method Details
-
withSize
Snapshot ID to create this volume from. -
getSize
public int getSize() -
fromSnapshotId
Snapshot ID to create this volume from. -
getSnapshotId
-
volumeType
EBS volume type to use - if not specified, will be "standard". -
getVolumeType
-
withIops
EBS provisioned IOPS -
getIops
-
isEncrypted
Should this EBS volume be encrypted? -
getEncrypted
public boolean getEncrypted()
-