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
public class CreateVolumeOptions extends BaseEC2RequestOptions
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"));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateVolumeOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateVolumeOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVolumeOptionsfromSnapshotId(String snapshotId)Snapshot ID to create this volume from.booleangetEncrypted()IntegergetIops()intgetSize()StringgetSnapshotId()StringgetVolumeType()CreateVolumeOptionsisEncrypted(boolean encrypted)Should this EBS volume be encrypted?CreateVolumeOptionsvolumeType(String volumeType)EBS volume type to use - if not specified, will be "standard".CreateVolumeOptionswithIops(Integer iops)EBS provisioned IOPSCreateVolumeOptionswithSize(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
-
-
-
-
Method Detail
-
withSize
public CreateVolumeOptions withSize(int size)
Snapshot ID to create this volume from.
-
getSize
public int getSize()
-
fromSnapshotId
public CreateVolumeOptions fromSnapshotId(String snapshotId)
Snapshot ID to create this volume from.
-
getSnapshotId
public String getSnapshotId()
-
volumeType
public CreateVolumeOptions volumeType(String volumeType)
EBS volume type to use - if not specified, will be "standard".
-
getVolumeType
public String getVolumeType()
-
withIops
public CreateVolumeOptions withIops(Integer iops)
EBS provisioned IOPS
-
getIops
public Integer getIops()
-
isEncrypted
public CreateVolumeOptions isEncrypted(boolean encrypted)
Should this EBS volume be encrypted?
-
getEncrypted
public boolean getEncrypted()
-
-