org.jclouds.ec2.options
Class CreateVolumeOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.ec2.options.internal.BaseEC2RequestOptions
          extended by org.jclouds.ec2.options.CreateVolumeOptions
All Implemented Interfaces:
org.jclouds.http.options.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"));

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()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.