Class Volume
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an instance's Amazon EBS volume.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The volume Availability Zone.The device name.The Amazon EC2 volume ID.The instance ID.getIops()
For PIOPS volumes, the IOPS per disk.The volume mount point.getName()
The volume name.The RAID array ID.The AWS region.getSize()
The volume size.The value returned by DescribeVolumes.The volume ID.The volume type, standard or PIOPS.int
hashCode()
void
setAvailabilityZone
(String availabilityZone) The volume Availability Zone.void
The device name.void
setEc2VolumeId
(String ec2VolumeId) The Amazon EC2 volume ID.void
setInstanceId
(String instanceId) The instance ID.void
For PIOPS volumes, the IOPS per disk.void
setMountPoint
(String mountPoint) The volume mount point.void
The volume name.void
setRaidArrayId
(String raidArrayId) The RAID array ID.void
The AWS region.void
The volume size.void
The value returned by DescribeVolumes.void
setVolumeId
(String volumeId) The volume ID.void
setVolumeType
(String volumeType) The volume type, standard or PIOPS.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone
(String availabilityZone) The volume Availability Zone.withDevice
(String device) The device name.withEc2VolumeId
(String ec2VolumeId) The Amazon EC2 volume ID.withInstanceId
(String instanceId) The instance ID.For PIOPS volumes, the IOPS per disk.withMountPoint
(String mountPoint) The volume mount point.The volume name.withRaidArrayId
(String raidArrayId) The RAID array ID.withRegion
(String region) The AWS region.The volume size.withStatus
(String status) The value returned by DescribeVolumes.withVolumeId
(String volumeId) The volume ID.withVolumeType
(String volumeType) The volume type, standard or PIOPS.
-
Constructor Details
-
Volume
public Volume()
-
-
Method Details
-
setVolumeId
The volume ID.
- Parameters:
volumeId
- The volume ID.
-
getVolumeId
The volume ID.
- Returns:
- The volume ID.
-
withVolumeId
The volume ID.
- Parameters:
volumeId
- The volume ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2VolumeId
The Amazon EC2 volume ID.
- Parameters:
ec2VolumeId
- The Amazon EC2 volume ID.
-
getEc2VolumeId
The Amazon EC2 volume ID.
- Returns:
- The Amazon EC2 volume ID.
-
withEc2VolumeId
The Amazon EC2 volume ID.
- Parameters:
ec2VolumeId
- The Amazon EC2 volume ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The volume name.
- Parameters:
name
- The volume name.
-
getName
The volume name.
- Returns:
- The volume name.
-
withName
The volume name.
- Parameters:
name
- The volume name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRaidArrayId
The RAID array ID.
- Parameters:
raidArrayId
- The RAID array ID.
-
getRaidArrayId
The RAID array ID.
- Returns:
- The RAID array ID.
-
withRaidArrayId
The RAID array ID.
- Parameters:
raidArrayId
- The RAID array ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The instance ID.
- Parameters:
instanceId
- The instance ID.
-
getInstanceId
The instance ID.
- Returns:
- The instance ID.
-
withInstanceId
The instance ID.
- Parameters:
instanceId
- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The value returned by DescribeVolumes.
- Parameters:
status
- The value returned by DescribeVolumes.
-
getStatus
The value returned by DescribeVolumes.
- Returns:
- The value returned by DescribeVolumes.
-
withStatus
The value returned by DescribeVolumes.
- Parameters:
status
- The value returned by DescribeVolumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSize
The volume size.
- Parameters:
size
- The volume size.
-
getSize
The volume size.
- Returns:
- The volume size.
-
withSize
The volume size.
- Parameters:
size
- The volume size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDevice
The device name.
- Parameters:
device
- The device name.
-
getDevice
The device name.
- Returns:
- The device name.
-
withDevice
The device name.
- Parameters:
device
- The device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMountPoint
The volume mount point. For example, "/mnt/disk1".
- Parameters:
mountPoint
- The volume mount point. For example, "/mnt/disk1".
-
getMountPoint
The volume mount point. For example, "/mnt/disk1".
- Returns:
- The volume mount point. For example, "/mnt/disk1".
-
withMountPoint
The volume mount point. For example, "/mnt/disk1".
- Parameters:
mountPoint
- The volume mount point. For example, "/mnt/disk1".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegion
The AWS region. For more information about AWS regions, see Regions and Endpoints.
- Parameters:
region
- The AWS region. For more information about AWS regions, see Regions and Endpoints.
-
getRegion
The AWS region. For more information about AWS regions, see Regions and Endpoints.
- Returns:
- The AWS region. For more information about AWS regions, see Regions and Endpoints.
-
withRegion
The AWS region. For more information about AWS regions, see Regions and Endpoints.
- Parameters:
region
- The AWS region. For more information about AWS regions, see Regions and Endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
The volume Availability Zone. For more information, see Regions and Endpoints.
- Parameters:
availabilityZone
- The volume Availability Zone. For more information, see Regions and Endpoints.
-
getAvailabilityZone
The volume Availability Zone. For more information, see Regions and Endpoints.
- Returns:
- The volume Availability Zone. For more information, see Regions and Endpoints.
-
withAvailabilityZone
The volume Availability Zone. For more information, see Regions and Endpoints.
- Parameters:
availabilityZone
- The volume Availability Zone. For more information, see Regions and Endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeType
The volume type, standard or PIOPS.
- Parameters:
volumeType
- The volume type, standard or PIOPS.
-
getVolumeType
The volume type, standard or PIOPS.
- Returns:
- The volume type, standard or PIOPS.
-
withVolumeType
The volume type, standard or PIOPS.
- Parameters:
volumeType
- The volume type, standard or PIOPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIops
For PIOPS volumes, the IOPS per disk.
- Parameters:
iops
- For PIOPS volumes, the IOPS per disk.
-
getIops
For PIOPS volumes, the IOPS per disk.
- Returns:
- For PIOPS volumes, the IOPS per disk.
-
withIops
For PIOPS volumes, the IOPS per disk.
- Parameters:
iops
- For PIOPS volumes, the IOPS per disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-