Class 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"));

    See Also:
    • Constructor Detail

      • CreateVolumeOptions

        public CreateVolumeOptions()
    • Method Detail

      • withSize

        public CreateVolumeOptions withSize​(int size)
        Snapshot ID to create this volume from.
      • getSize

        public int getSize()
      • 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()
      • getIops

        public Integer getIops()
      • isEncrypted

        public CreateVolumeOptions isEncrypted​(boolean encrypted)
        Should this EBS volume be encrypted?
      • getEncrypted

        public boolean getEncrypted()