Class Volume
- All Implemented Interfaces:
Serializable, Cloneable
Describes an instance's Amazon EBS volume.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe 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.inthashCode()voidsetAvailabilityZone(String availabilityZone) The volume Availability Zone.voidThe device name.voidsetEc2VolumeId(String ec2VolumeId) The Amazon EC2 volume ID.voidsetInstanceId(String instanceId) The instance ID.voidFor PIOPS volumes, the IOPS per disk.voidsetMountPoint(String mountPoint) The volume mount point.voidThe volume name.voidsetRaidArrayId(String raidArrayId) The RAID array ID.voidThe AWS region.voidThe volume size.voidThe value returned by DescribeVolumes.voidsetVolumeId(String volumeId) The volume ID.voidsetVolumeType(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
-
getVolumeId
-
withVolumeId
-
setEc2VolumeId
The Amazon EC2 volume ID.
- Parameters:
ec2VolumeId- The Amazon EC2 volume ID.
-
getEc2VolumeId
-
withEc2VolumeId
-
setName
-
getName
-
withName
-
setRaidArrayId
The RAID array ID.
- Parameters:
raidArrayId- The RAID array ID.
-
getRaidArrayId
-
withRaidArrayId
-
setInstanceId
The instance ID.
- Parameters:
instanceId- The instance ID.
-
getInstanceId
-
withInstanceId
-
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
-
getSize
-
withSize
-
setDevice
-
getDevice
-
withDevice
-
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
-
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
-
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
-
toString
-
equals
-
hashCode
-
clone
-