public class CreateVolumeOptions extends BaseEC2RequestOptions
import static org.jclouds.ec2.options.CreateVolumeOptions.Builder.*
EC2Api connection = // get connection
Volume volume = connection.getElasticBlockStoreApi().get().createVolumeInAvailabilityZone(availabilityZone, fromSnapshotId("123125"));
Modifier and Type | Class and Description |
---|---|
static class |
CreateVolumeOptions.Builder |
formParameters, headers, pathSuffix, payload, queryParameters
Constructor and Description |
---|
CreateVolumeOptions() |
Modifier and Type | Method and Description |
---|---|
CreateVolumeOptions |
fromSnapshotId(String snapshotId)
Snapshot ID to create this volume from.
|
boolean |
getEncrypted() |
Integer |
getIops() |
int |
getSize() |
String |
getSnapshotId() |
String |
getVolumeType() |
CreateVolumeOptions |
isEncrypted(boolean encrypted)
Should this EBS volume be encrypted?
|
CreateVolumeOptions |
volumeType(String volumeType)
EBS volume type to use - if not specified, will be "standard".
|
CreateVolumeOptions |
withIops(Integer iops)
EBS provisioned IOPS
|
CreateVolumeOptions |
withSize(int size)
Snapshot ID to create this volume from.
|
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
public CreateVolumeOptions withSize(int size)
public int getSize()
public CreateVolumeOptions fromSnapshotId(String snapshotId)
public String getSnapshotId()
public CreateVolumeOptions volumeType(String volumeType)
public String getVolumeType()
public CreateVolumeOptions withIops(Integer iops)
public Integer getIops()
public CreateVolumeOptions isEncrypted(boolean encrypted)
public boolean getEncrypted()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.