Class Volume
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Volume
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Volume extends Object implements Serializable, Cloneable
Describes an instance's Amazon EBS volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Volume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Volumeclone()booleanequals(Object obj)StringgetAvailabilityZone()The volume Availability Zone.StringgetDevice()The device name.StringgetEc2VolumeId()The Amazon EC2 volume ID.StringgetInstanceId()The instance ID.IntegergetIops()For PIOPS volumes, the IOPS per disk.StringgetMountPoint()The volume mount point.StringgetName()The volume name.StringgetRaidArrayId()The RAID array ID.StringgetRegion()The AWS region.IntegergetSize()The volume size.StringgetStatus()The value returned by DescribeVolumes.StringgetVolumeId()The volume ID.StringgetVolumeType()The volume type, standard or PIOPS.inthashCode()voidsetAvailabilityZone(String availabilityZone)The volume Availability Zone.voidsetDevice(String device)The device name.voidsetEc2VolumeId(String ec2VolumeId)The Amazon EC2 volume ID.voidsetInstanceId(String instanceId)The instance ID.voidsetIops(Integer iops)For PIOPS volumes, the IOPS per disk.voidsetMountPoint(String mountPoint)The volume mount point.voidsetName(String name)The volume name.voidsetRaidArrayId(String raidArrayId)The RAID array ID.voidsetRegion(String region)The AWS region.voidsetSize(Integer size)The volume size.voidsetStatus(String status)The value returned by DescribeVolumes.voidsetVolumeId(String volumeId)The volume ID.voidsetVolumeType(String volumeType)The volume type, standard or PIOPS.StringtoString()Returns a string representation of this object; useful for testing and debugging.VolumewithAvailabilityZone(String availabilityZone)The volume Availability Zone.VolumewithDevice(String device)The device name.VolumewithEc2VolumeId(String ec2VolumeId)The Amazon EC2 volume ID.VolumewithInstanceId(String instanceId)The instance ID.VolumewithIops(Integer iops)For PIOPS volumes, the IOPS per disk.VolumewithMountPoint(String mountPoint)The volume mount point.VolumewithName(String name)The volume name.VolumewithRaidArrayId(String raidArrayId)The RAID array ID.VolumewithRegion(String region)The AWS region.VolumewithSize(Integer size)The volume size.VolumewithStatus(String status)The value returned by DescribeVolumes.VolumewithVolumeId(String volumeId)The volume ID.VolumewithVolumeType(String volumeType)The volume type, standard or PIOPS.
-
-
-
Method Detail
-
setVolumeId
public void setVolumeId(String volumeId)
The volume ID.
- Parameters:
volumeId- The volume ID.
-
getVolumeId
public String getVolumeId()
The volume ID.
- Returns:
- The volume ID.
-
withVolumeId
public Volume withVolumeId(String volumeId)
The volume ID.
- Parameters:
volumeId- The volume ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2VolumeId
public void setEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
- Parameters:
ec2VolumeId- The Amazon EC2 volume ID.
-
getEc2VolumeId
public String getEc2VolumeId()
The Amazon EC2 volume ID.
- Returns:
- The Amazon EC2 volume ID.
-
withEc2VolumeId
public Volume withEc2VolumeId(String ec2VolumeId)
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
public void setName(String name)
The volume name.
- Parameters:
name- The volume name.
-
getName
public String getName()
The volume name.
- Returns:
- The volume name.
-
withName
public Volume withName(String name)
The volume name.
- Parameters:
name- The volume name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRaidArrayId
public void setRaidArrayId(String raidArrayId)
The RAID array ID.
- Parameters:
raidArrayId- The RAID array ID.
-
getRaidArrayId
public String getRaidArrayId()
The RAID array ID.
- Returns:
- The RAID array ID.
-
withRaidArrayId
public Volume withRaidArrayId(String raidArrayId)
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
public void setInstanceId(String instanceId)
The instance ID.
- Parameters:
instanceId- The instance ID.
-
getInstanceId
public String getInstanceId()
The instance ID.
- Returns:
- The instance ID.
-
withInstanceId
public Volume withInstanceId(String instanceId)
The instance ID.
- Parameters:
instanceId- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The value returned by DescribeVolumes.
- Parameters:
status- The value returned by DescribeVolumes.
-
getStatus
public String getStatus()
The value returned by DescribeVolumes.
- Returns:
- The value returned by DescribeVolumes.
-
withStatus
public Volume withStatus(String status)
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
public void setSize(Integer size)
The volume size.
- Parameters:
size- The volume size.
-
getSize
public Integer getSize()
The volume size.
- Returns:
- The volume size.
-
withSize
public Volume withSize(Integer size)
The volume size.
- Parameters:
size- The volume size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDevice
public void setDevice(String device)
The device name.
- Parameters:
device- The device name.
-
getDevice
public String getDevice()
The device name.
- Returns:
- The device name.
-
withDevice
public Volume withDevice(String device)
The device name.
- Parameters:
device- The device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMountPoint
public void setMountPoint(String mountPoint)
The volume mount point. For example, "/mnt/disk1".
- Parameters:
mountPoint- The volume mount point. For example, "/mnt/disk1".
-
getMountPoint
public String getMountPoint()
The volume mount point. For example, "/mnt/disk1".
- Returns:
- The volume mount point. For example, "/mnt/disk1".
-
withMountPoint
public Volume withMountPoint(String mountPoint)
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
public void setRegion(String region)
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
public String 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
public Volume withRegion(String region)
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
public void setAvailabilityZone(String availabilityZone)
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
public String 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
public Volume withAvailabilityZone(String availabilityZone)
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
public void setVolumeType(String volumeType)
The volume type, standard or PIOPS.
- Parameters:
volumeType- The volume type, standard or PIOPS.
-
getVolumeType
public String getVolumeType()
The volume type, standard or PIOPS.
- Returns:
- The volume type, standard or PIOPS.
-
withVolumeType
public Volume withVolumeType(String volumeType)
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
public void setIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
- Parameters:
iops- For PIOPS volumes, the IOPS per disk.
-
getIops
public Integer getIops()
For PIOPS volumes, the IOPS per disk.
- Returns:
- For PIOPS volumes, the IOPS per disk.
-
withIops
public Volume withIops(Integer iops)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-