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 Volume
clone()
boolean
equals(Object obj)
String
getAvailabilityZone()
The volume Availability Zone.String
getDevice()
The device name.String
getEc2VolumeId()
The Amazon EC2 volume ID.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, standard or PIOPS.int
hashCode()
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
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, standard or PIOPS.String
toString()
Returns a string representation of this object; useful for testing and debugging.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
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, 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-