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:
  • Constructor Details

    • Volume

      public Volume()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Volume clone()
      Overrides:
      clone in class Object