public static interface Volume.Builder extends CopyableBuilder<Volume.Builder,Volume>
Modifier and Type | Method and Description |
---|---|
Volume.Builder |
attachments(Collection<VolumeAttachment> attachments)
Information about the volume attachments.
|
Volume.Builder |
attachments(VolumeAttachment... attachments)
Information about the volume attachments.
|
Volume.Builder |
availabilityZone(String availabilityZone)
The Availability Zone for the volume.
|
Volume.Builder |
createTime(Instant createTime)
The time stamp when volume creation was initiated.
|
Volume.Builder |
encrypted(Boolean encrypted)
Indicates whether the volume will be encrypted.
|
Volume.Builder |
iops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
Volume.Builder |
kmsKeyId(String kmsKeyId)
The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect
the volume encryption key for the volume.
|
Volume.Builder |
size(Integer size)
The size of the volume, in GiBs.
|
Volume.Builder |
snapshotId(String snapshotId)
The snapshot from which the volume was created, if applicable.
|
Volume.Builder |
state(String state)
The volume state.
|
Volume.Builder |
state(VolumeState state)
The volume state.
|
Volume.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the volume.
|
Volume.Builder |
tags(Tag... tags)
Any tags assigned to the volume.
|
Volume.Builder |
volumeId(String volumeId)
The ID of the volume.
|
Volume.Builder |
volumeType(String volumeType)
The volume type.
|
Volume.Builder |
volumeType(VolumeType volumeType)
The volume type.
|
copy
apply, build
Volume.Builder attachments(Collection<VolumeAttachment> attachments)
Information about the volume attachments.
attachments
- Information about the volume attachments.Volume.Builder attachments(VolumeAttachment... attachments)
Information about the volume attachments.
attachments
- Information about the volume attachments.Volume.Builder availabilityZone(String availabilityZone)
The Availability Zone for the volume.
availabilityZone
- The Availability Zone for the volume.Volume.Builder createTime(Instant createTime)
The time stamp when volume creation was initiated.
createTime
- The time stamp when volume creation was initiated.Volume.Builder encrypted(Boolean encrypted)
Indicates whether the volume will be encrypted.
encrypted
- Indicates whether the volume will be encrypted.Volume.Builder kmsKeyId(String kmsKeyId)
The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
kmsKeyId
- The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to
protect the volume encryption key for the volume.Volume.Builder size(Integer size)
The size of the volume, in GiBs.
size
- The size of the volume, in GiBs.Volume.Builder snapshotId(String snapshotId)
The snapshot from which the volume was created, if applicable.
snapshotId
- The snapshot from which the volume was created, if applicable.Volume.Builder state(String state)
The volume state.
state
- The volume state.VolumeState
,
VolumeState
Volume.Builder state(VolumeState state)
The volume state.
state
- The volume state.VolumeState
,
VolumeState
Volume.Builder volumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.Volume.Builder iops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS SSD volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose SSD volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose SSD baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2
volumes.
Condition: This parameter is required for requests to create io1
volumes; it is not used in
requests to create gp2
, st1
, sc1
, or standard
volumes.
iops
- The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS SSD
volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose
SSD volumes, this represents the baseline performance of the volume and the rate at which the volume
accumulates I/O credits for bursting. For more information on General Purpose SSD baseline
performance, I/O credits, and bursting, see Amazon EBS Volume
Types in the Amazon Elastic Compute Cloud User Guide.
Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2
volumes.
Condition: This parameter is required for requests to create io1
volumes; it is not used
in requests to create gp2
, st1
, sc1
, or standard
volumes.
Volume.Builder tags(Collection<Tag> tags)
Any tags assigned to the volume.
tags
- Any tags assigned to the volume.Volume.Builder tags(Tag... tags)
Any tags assigned to the volume.
tags
- Any tags assigned to the volume.Volume.Builder volumeType(String volumeType)
The volume type. This can be gp2
for General Purpose SSD, io1
for Provisioned IOPS
SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for Magnetic volumes.
volumeType
- The volume type. This can be gp2
for General Purpose SSD, io1
for
Provisioned IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or
standard
for Magnetic volumes.VolumeType
,
VolumeType
Volume.Builder volumeType(VolumeType volumeType)
The volume type. This can be gp2
for General Purpose SSD, io1
for Provisioned IOPS
SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for Magnetic volumes.
volumeType
- The volume type. This can be gp2
for General Purpose SSD, io1
for
Provisioned IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or
standard
for Magnetic volumes.VolumeType
,
VolumeType
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.