@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Volume extends Object implements Serializable, Cloneable, StructuredPojo
Describes an instance's Amazon EBS volume.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
Volume |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The volume Availability Zone.
|
String |
getDevice()
The device name.
|
String |
getEc2VolumeId()
The Amazon EC2 volume ID.
|
Boolean |
getEncrypted()
Specifies whether an Amazon EBS volume is encrypted.
|
String |
getInstanceId()
The instance ID.
|
Integer |
getIops()
For PIOPS volumes, the IOPS per disk.
|
String |
getMountPoint()
The volume mount point.
|
String |
getName()
The volume name.
|
String |
getRaidArrayId()
The RAID array ID.
|
String |
getRegion()
The AWS region.
|
Integer |
getSize()
The volume size.
|
String |
getStatus()
The value returned by DescribeVolumes.
|
String |
getVolumeId()
The volume ID.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isEncrypted()
Specifies whether an Amazon EBS volume is encrypted.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvailabilityZone(String availabilityZone)
The volume Availability Zone.
|
void |
setDevice(String device)
The device name.
|
void |
setEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
|
void |
setEncrypted(Boolean encrypted)
Specifies whether an Amazon EBS volume is encrypted.
|
void |
setInstanceId(String instanceId)
The instance ID.
|
void |
setIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
|
void |
setMountPoint(String mountPoint)
The volume mount point.
|
void |
setName(String name)
The volume name.
|
void |
setRaidArrayId(String raidArrayId)
The RAID array ID.
|
void |
setRegion(String region)
The AWS region.
|
void |
setSize(Integer size)
The volume size.
|
void |
setStatus(String status)
The value returned by DescribeVolumes.
|
void |
setVolumeId(String volumeId)
The volume ID.
|
void |
setVolumeType(String volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object.
|
Volume |
withAvailabilityZone(String availabilityZone)
The volume Availability Zone.
|
Volume |
withDevice(String device)
The device name.
|
Volume |
withEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
|
Volume |
withEncrypted(Boolean encrypted)
Specifies whether an Amazon EBS volume is encrypted.
|
Volume |
withInstanceId(String instanceId)
The instance ID.
|
Volume |
withIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
|
Volume |
withMountPoint(String mountPoint)
The volume mount point.
|
Volume |
withName(String name)
The volume name.
|
Volume |
withRaidArrayId(String raidArrayId)
The RAID array ID.
|
Volume |
withRegion(String region)
The AWS region.
|
Volume |
withSize(Integer size)
The volume size.
|
Volume |
withStatus(String status)
The value returned by DescribeVolumes.
|
Volume |
withVolumeId(String volumeId)
The volume ID.
|
Volume |
withVolumeType(String volumeType)
The volume type.
|
public void setVolumeId(String volumeId)
The volume ID.
volumeId
- The volume ID.public String getVolumeId()
The volume ID.
public Volume withVolumeId(String volumeId)
The volume ID.
volumeId
- The volume ID.public void setEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
ec2VolumeId
- The Amazon EC2 volume ID.public String getEc2VolumeId()
The Amazon EC2 volume ID.
public Volume withEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
ec2VolumeId
- The Amazon EC2 volume ID.public void setName(String name)
The volume name.
name
- The volume name.public String getName()
The volume name.
public Volume withName(String name)
The volume name.
name
- The volume name.public void setRaidArrayId(String raidArrayId)
The RAID array ID.
raidArrayId
- The RAID array ID.public String getRaidArrayId()
The RAID array ID.
public Volume withRaidArrayId(String raidArrayId)
The RAID array ID.
raidArrayId
- The RAID array ID.public void setInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public String getInstanceId()
The instance ID.
public Volume withInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public void setStatus(String status)
The value returned by DescribeVolumes.
status
- The value returned by DescribeVolumes.public String getStatus()
The value returned by DescribeVolumes.
public Volume withStatus(String status)
The value returned by DescribeVolumes.
status
- The value returned by DescribeVolumes.public void setSize(Integer size)
The volume size.
size
- The volume size.public Integer getSize()
The volume size.
public Volume withSize(Integer size)
The volume size.
size
- The volume size.public void setDevice(String device)
The device name.
device
- The device name.public String getDevice()
The device name.
public Volume withDevice(String device)
The device name.
device
- The device name.public void setMountPoint(String mountPoint)
The volume mount point. For example, "/mnt/disk1".
mountPoint
- The volume mount point. For example, "/mnt/disk1".public String getMountPoint()
The volume mount point. For example, "/mnt/disk1".
public Volume withMountPoint(String mountPoint)
The volume mount point. For example, "/mnt/disk1".
mountPoint
- The volume mount point. For example, "/mnt/disk1".public void setRegion(String region)
The AWS region. For more information about AWS regions, see Regions and Endpoints.
region
- The AWS region. For more information about AWS regions, see Regions and Endpoints.public String getRegion()
The AWS region. For more information about AWS regions, see Regions and Endpoints.
public Volume withRegion(String region)
The AWS region. For more information about AWS regions, see Regions and Endpoints.
region
- The AWS region. For more information about AWS regions, see Regions and Endpoints.public void setAvailabilityZone(String availabilityZone)
The volume Availability Zone. For more information, see Regions and Endpoints.
availabilityZone
- The volume Availability Zone. For more information, see Regions and Endpoints.public String getAvailabilityZone()
The volume Availability Zone. For more information, see Regions and Endpoints.
public Volume withAvailabilityZone(String availabilityZone)
The volume Availability Zone. For more information, see Regions and Endpoints.
availabilityZone
- The volume Availability Zone. For more information, see Regions and Endpoints.public void setVolumeType(String volumeType)
The volume type. For more information, see Amazon EBS Volume Types.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024
GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of
16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum
size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a
minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384
GiB.
volumeType
- The volume type. For more information, see Amazon EBS Volume
Types.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of
1024 GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum
size of 16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a
maximum size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have
a minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of
16384 GiB.
public String getVolumeType()
The volume type. For more information, see Amazon EBS Volume Types.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024
GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of
16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum
size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a
minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384
GiB.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size
of 1024 GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum
size of 16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a
maximum size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have
a minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of
16384 GiB.
public Volume withVolumeType(String volumeType)
The volume type. For more information, see Amazon EBS Volume Types.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024
GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of
16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum
size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a
minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384
GiB.
volumeType
- The volume type. For more information, see Amazon EBS Volume
Types.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of
1024 GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum
size of 16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a
maximum size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have
a minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of
16384 GiB.
public void setIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
iops
- For PIOPS volumes, the IOPS per disk.public Integer getIops()
For PIOPS volumes, the IOPS per disk.
public Volume withIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
iops
- For PIOPS volumes, the IOPS per disk.public void setEncrypted(Boolean encrypted)
Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.
encrypted
- Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.public Boolean getEncrypted()
Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.
public Volume withEncrypted(Boolean encrypted)
Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.
encrypted
- Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.public Boolean isEncrypted()
Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.