|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.ec2.options.internal.BaseEC2RequestOptions
org.jclouds.ec2.options.CreateVolumeOptions
public class CreateVolumeOptions
Contains options supported in the Form API for the CreateVolume operation.
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
static class
CreateVolumeOptions.Builder
Field Summary
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
Constructor Summary
CreateVolumeOptions()
Method Summary
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.
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Constructor Detail
CreateVolumeOptions
public CreateVolumeOptions()
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()
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-2014 The Apache Software Foundation. All Rights Reserved.