public class Volume extends Object implements Serializable
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<VolumeAttachment> |
getAttachments()
Information about the volume attachments.
|
String |
getAvailabilityZone()
The Availability Zone for the volume.
|
Date |
getCreateTime()
The time stamp when volume creation was initiated.
|
Boolean |
getEncrypted()
Indicates whether the volume will be encrypted.
|
Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
String |
getKmsKeyId()
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.
|
Integer |
getSize()
The size of the volume, in GiBs.
|
String |
getSnapshotId()
The snapshot from which the volume was created, if applicable.
|
String |
getState()
The volume state.
|
List<Tag> |
getTags()
Any tags assigned to the volume.
|
String |
getVolumeId()
The ID of the volume.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isEncrypted()
Indicates whether the volume will be encrypted.
|
void |
setAttachments(Collection<VolumeAttachment> attachments)
Information about the volume attachments.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the volume.
|
void |
setCreateTime(Date createTime)
The time stamp when volume creation was initiated.
|
void |
setEncrypted(Boolean encrypted)
Indicates whether the volume will be encrypted.
|
void |
setIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
void |
setKmsKeyId(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.
|
void |
setSize(Integer size)
The size of the volume, in GiBs.
|
void |
setSnapshotId(String snapshotId)
The snapshot from which the volume was created, if applicable.
|
void |
setState(String state)
The volume state.
|
void |
setState(VolumeState state)
The volume state.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the volume.
|
void |
setVolumeId(String volumeId)
The ID of the volume.
|
void |
setVolumeType(String volumeType)
The volume type.
|
void |
setVolumeType(VolumeType volumeType)
The volume type.
|
String |
toString() |
public void setVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public String getVolumeId()
The ID of the volume.
public void setSize(Integer size)
The size of the volume, in GiBs.
size
- The size of the volume, in GiBs.public Integer getSize()
The size of the volume, in GiBs.
public void setSnapshotId(String snapshotId)
The snapshot from which the volume was created, if applicable.
snapshotId
- The snapshot from which the volume was created, if applicable.public String getSnapshotId()
The snapshot from which the volume was created, if applicable.
public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the volume.
availabilityZone
- The Availability Zone for the volume.public String getAvailabilityZone()
The Availability Zone for the volume.
public void setState(String state)
The volume state.
state
- The volume state.VolumeState
public String getState()
The volume state.
VolumeState
public void setState(VolumeState state)
The volume state.
state
- The volume state.VolumeState
public void setCreateTime(Date createTime)
The time stamp when volume creation was initiated.
createTime
- The time stamp when volume creation was initiated.public Date getCreateTime()
The time stamp when volume creation was initiated.
public List<VolumeAttachment> getAttachments()
Information about the volume attachments.
public void setAttachments(Collection<VolumeAttachment> attachments)
Information about the volume attachments.
attachments
- Information about the volume attachments.public List<Tag> getTags()
Any tags assigned to the volume.
public void setTags(Collection<Tag> tags)
Any tags assigned to the volume.
tags
- Any tags assigned to the volume.public void setVolumeType(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
public String getVolumeType()
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.
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
public void setVolumeType(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
public void setIops(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.
io1
volumes; it is not used in
requests to create gp2
, st1
, sc1
, or standard
volumes.public Integer getIops()
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.
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.
io1
volumes; it is not used in
requests to create gp2
, st1
, sc1
, or standard
volumes.public void setEncrypted(Boolean encrypted)
Indicates whether the volume will be encrypted.
encrypted
- Indicates whether the volume will be encrypted.public Boolean getEncrypted()
Indicates whether the volume will be encrypted.
public Boolean isEncrypted()
Indicates whether the volume will be encrypted.
public void setKmsKeyId(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.public String getKmsKeyId()
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.
Copyright © 2010–2020. All rights reserved.