public class Volume
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance's Amazon EBS volume.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The volume Availability Zone.
|
private java.lang.String |
device
The device name.
|
private java.lang.String |
ec2VolumeId
The Amazon EC2 volume ID.
|
private java.lang.String |
instanceId
The instance ID.
|
private java.lang.Integer |
iops
For PIOPS volumes, the IOPS per disk.
|
private java.lang.String |
mountPoint
The volume mount point.
|
private java.lang.String |
name
The volume name.
|
private java.lang.String |
raidArrayId
The RAID array ID.
|
private java.lang.String |
region
The AWS region.
|
private java.lang.Integer |
size
The volume size.
|
private java.lang.String |
status
The value returned by DescribeVolumes.
|
private java.lang.String |
volumeId
The volume ID.
|
private java.lang.String |
volumeType
The volume type, standard or PIOPS.
|
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
Volume |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The volume Availability Zone.
|
java.lang.String |
getDevice()
The device name.
|
java.lang.String |
getEc2VolumeId()
The Amazon EC2 volume ID.
|
java.lang.String |
getInstanceId()
The instance ID.
|
java.lang.Integer |
getIops()
For PIOPS volumes, the IOPS per disk.
|
java.lang.String |
getMountPoint()
The volume mount point.
|
java.lang.String |
getName()
The volume name.
|
java.lang.String |
getRaidArrayId()
The RAID array ID.
|
java.lang.String |
getRegion()
The AWS region.
|
java.lang.Integer |
getSize()
The volume size.
|
java.lang.String |
getStatus()
The value returned by DescribeVolumes.
|
java.lang.String |
getVolumeId()
The volume ID.
|
java.lang.String |
getVolumeType()
The volume type, standard or PIOPS.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The volume Availability Zone.
|
void |
setDevice(java.lang.String device)
The device name.
|
void |
setEc2VolumeId(java.lang.String ec2VolumeId)
The Amazon EC2 volume ID.
|
void |
setInstanceId(java.lang.String instanceId)
The instance ID.
|
void |
setIops(java.lang.Integer iops)
For PIOPS volumes, the IOPS per disk.
|
void |
setMountPoint(java.lang.String mountPoint)
The volume mount point.
|
void |
setName(java.lang.String name)
The volume name.
|
void |
setRaidArrayId(java.lang.String raidArrayId)
The RAID array ID.
|
void |
setRegion(java.lang.String region)
The AWS region.
|
void |
setSize(java.lang.Integer size)
The volume size.
|
void |
setStatus(java.lang.String status)
The value returned by DescribeVolumes.
|
void |
setVolumeId(java.lang.String volumeId)
The volume ID.
|
void |
setVolumeType(java.lang.String volumeType)
The volume type, standard or PIOPS.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Volume |
withAvailabilityZone(java.lang.String availabilityZone)
The volume Availability Zone.
|
Volume |
withDevice(java.lang.String device)
The device name.
|
Volume |
withEc2VolumeId(java.lang.String ec2VolumeId)
The Amazon EC2 volume ID.
|
Volume |
withInstanceId(java.lang.String instanceId)
The instance ID.
|
Volume |
withIops(java.lang.Integer iops)
For PIOPS volumes, the IOPS per disk.
|
Volume |
withMountPoint(java.lang.String mountPoint)
The volume mount point.
|
Volume |
withName(java.lang.String name)
The volume name.
|
Volume |
withRaidArrayId(java.lang.String raidArrayId)
The RAID array ID.
|
Volume |
withRegion(java.lang.String region)
The AWS region.
|
Volume |
withSize(java.lang.Integer size)
The volume size.
|
Volume |
withStatus(java.lang.String status)
The value returned by DescribeVolumes.
|
Volume |
withVolumeId(java.lang.String volumeId)
The volume ID.
|
Volume |
withVolumeType(java.lang.String volumeType)
The volume type, standard or PIOPS.
|
private java.lang.String volumeId
The volume ID.
private java.lang.String ec2VolumeId
The Amazon EC2 volume ID.
private java.lang.String name
The volume name.
private java.lang.String raidArrayId
The RAID array ID.
private java.lang.String instanceId
The instance ID.
private java.lang.String status
The value returned by DescribeVolumes.
private java.lang.Integer size
The volume size.
private java.lang.String device
The device name.
private java.lang.String mountPoint
The volume mount point. For example, "/mnt/disk1".
private java.lang.String region
The AWS region. For more information about AWS regions, see Regions and Endpoints.
private java.lang.String availabilityZone
The volume Availability Zone. For more information, see Regions and Endpoints.
private java.lang.String volumeType
The volume type, standard or PIOPS.
private java.lang.Integer iops
For PIOPS volumes, the IOPS per disk.
public void setVolumeId(java.lang.String volumeId)
The volume ID.
volumeId
- The volume ID.public java.lang.String getVolumeId()
The volume ID.
public Volume withVolumeId(java.lang.String volumeId)
The volume ID.
volumeId
- The volume ID.public void setEc2VolumeId(java.lang.String ec2VolumeId)
The Amazon EC2 volume ID.
ec2VolumeId
- The Amazon EC2 volume ID.public java.lang.String getEc2VolumeId()
The Amazon EC2 volume ID.
public Volume withEc2VolumeId(java.lang.String ec2VolumeId)
The Amazon EC2 volume ID.
ec2VolumeId
- The Amazon EC2 volume ID.public void setName(java.lang.String name)
The volume name.
name
- The volume name.public java.lang.String getName()
The volume name.
public Volume withName(java.lang.String name)
The volume name.
name
- The volume name.public void setRaidArrayId(java.lang.String raidArrayId)
The RAID array ID.
raidArrayId
- The RAID array ID.public java.lang.String getRaidArrayId()
The RAID array ID.
public Volume withRaidArrayId(java.lang.String raidArrayId)
The RAID array ID.
raidArrayId
- The RAID array ID.public void setInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public java.lang.String getInstanceId()
The instance ID.
public Volume withInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public void setStatus(java.lang.String status)
The value returned by DescribeVolumes.
status
- The value returned by DescribeVolumes.public java.lang.String getStatus()
The value returned by DescribeVolumes.
public Volume withStatus(java.lang.String status)
The value returned by DescribeVolumes.
status
- The value returned by DescribeVolumes.public void setSize(java.lang.Integer size)
The volume size.
size
- The volume size.public java.lang.Integer getSize()
The volume size.
public Volume withSize(java.lang.Integer size)
The volume size.
size
- The volume size.public void setDevice(java.lang.String device)
The device name.
device
- The device name.public java.lang.String getDevice()
The device name.
public Volume withDevice(java.lang.String device)
The device name.
device
- The device name.public void setMountPoint(java.lang.String mountPoint)
The volume mount point. For example, "/mnt/disk1".
mountPoint
- The volume mount point. For example, "/mnt/disk1".public java.lang.String getMountPoint()
The volume mount point. For example, "/mnt/disk1".
public Volume withMountPoint(java.lang.String mountPoint)
The volume mount point. For example, "/mnt/disk1".
mountPoint
- The volume mount point. For example, "/mnt/disk1".public void setRegion(java.lang.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 java.lang.String getRegion()
The AWS region. For more information about AWS regions, see Regions and Endpoints.
public Volume withRegion(java.lang.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(java.lang.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 java.lang.String getAvailabilityZone()
The volume Availability Zone. For more information, see Regions and Endpoints.
public Volume withAvailabilityZone(java.lang.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(java.lang.String volumeType)
The volume type, standard or PIOPS.
volumeType
- The volume type, standard or PIOPS.public java.lang.String getVolumeType()
The volume type, standard or PIOPS.
public Volume withVolumeType(java.lang.String volumeType)
The volume type, standard or PIOPS.
volumeType
- The volume type, standard or PIOPS.public void setIops(java.lang.Integer iops)
For PIOPS volumes, the IOPS per disk.
iops
- For PIOPS volumes, the IOPS per disk.public java.lang.Integer getIops()
For PIOPS volumes, the IOPS per disk.
public Volume withIops(java.lang.Integer iops)
For PIOPS volumes, the IOPS per disk.
iops
- For PIOPS volumes, the IOPS per disk.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Volume clone()
clone
in class java.lang.Object