com.amazonaws.services.opsworks.model
Class Volume

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.Volume
All Implemented Interfaces:
Serializable

public class Volume
extends Object
implements Serializable

Describes an instance's Amazon EBS volume.

See Also:
Serialized Form

Constructor Summary
Volume()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Volume

public Volume()
Method Detail

getVolumeId

public String getVolumeId()
The volume ID.

Returns:
The volume ID.

setVolumeId

public void setVolumeId(String volumeId)
The volume ID.

Parameters:
volumeId - The volume ID.

withVolumeId

public Volume withVolumeId(String volumeId)
The volume ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
volumeId - The volume ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getEc2VolumeId

public String getEc2VolumeId()
The Amazon EC2 volume ID.

Returns:
The Amazon EC2 volume ID.

setEc2VolumeId

public void setEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.

Parameters:
ec2VolumeId - The Amazon EC2 volume ID.

withEc2VolumeId

public Volume withEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ec2VolumeId - The Amazon EC2 volume ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
The volume name.

Returns:
The volume name.

setName

public void setName(String name)
The volume name.

Parameters:
name - The volume name.

withName

public Volume withName(String name)
The volume name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The volume name.
Returns:
A reference to this updated object so that method calls can be chained together.

getRaidArrayId

public String getRaidArrayId()
The RAID array ID.

Returns:
The RAID array ID.

setRaidArrayId

public void setRaidArrayId(String raidArrayId)
The RAID array ID.

Parameters:
raidArrayId - The RAID array ID.

withRaidArrayId

public Volume withRaidArrayId(String raidArrayId)
The RAID array ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
raidArrayId - The RAID array ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public String getInstanceId()
The instance ID.

Returns:
The instance ID.

setInstanceId

public void setInstanceId(String instanceId)
The instance ID.

Parameters:
instanceId - The instance ID.

withInstanceId

public Volume withInstanceId(String instanceId)
The instance ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The instance ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public String getStatus()
The value returned by DescribeVolumes.

Returns:
The value returned by DescribeVolumes.

setStatus

public void setStatus(String status)
The value returned by DescribeVolumes.

Parameters:
status - The value returned by DescribeVolumes.

withStatus

public Volume withStatus(String status)
The value returned by DescribeVolumes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
status - The value returned by DescribeVolumes.
Returns:
A reference to this updated object so that method calls can be chained together.

getSize

public Integer getSize()
The volume size.

Returns:
The volume size.

setSize

public void setSize(Integer size)
The volume size.

Parameters:
size - The volume size.

withSize

public Volume withSize(Integer size)
The volume size.

Returns a reference to this object so that method calls can be chained together.

Parameters:
size - The volume size.
Returns:
A reference to this updated object so that method calls can be chained together.

getDevice

public String getDevice()
The device name.

Returns:
The device name.

setDevice

public void setDevice(String device)
The device name.

Parameters:
device - The device name.

withDevice

public Volume withDevice(String device)
The device name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
device - The device name.
Returns:
A reference to this updated object so that method calls can be chained together.

getMountPoint

public String getMountPoint()
The volume mount point. For example "/dev/sdh".

Returns:
The volume mount point. For example "/dev/sdh".

setMountPoint

public void setMountPoint(String mountPoint)
The volume mount point. For example "/dev/sdh".

Parameters:
mountPoint - The volume mount point. For example "/dev/sdh".

withMountPoint

public Volume withMountPoint(String mountPoint)
The volume mount point. For example "/dev/sdh".

Returns a reference to this object so that method calls can be chained together.

Parameters:
mountPoint - The volume mount point. For example "/dev/sdh".
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withRegion

public Volume withRegion(String region)
The AWS region. For more information about AWS regions, see Regions and Endpoints.

Returns a reference to this object so that method calls can be chained together.

Parameters:
region - The AWS region. For more information about AWS regions, see Regions and Endpoints.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withAvailabilityZone

public Volume withAvailabilityZone(String availabilityZone)
The volume Availability Zone. For more information, see Regions and Endpoints.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The volume Availability Zone. For more information, see Regions and Endpoints.
Returns:
A reference to this updated object so that method calls can be chained together.

getVolumeType

public String getVolumeType()
The volume type, standard or PIOPS.

Returns:
The volume type, standard or PIOPS.

setVolumeType

public void setVolumeType(String volumeType)
The volume type, standard or PIOPS.

Parameters:
volumeType - The volume type, standard or PIOPS.

withVolumeType

public Volume withVolumeType(String volumeType)
The volume type, standard or PIOPS.

Returns a reference to this object so that method calls can be chained together.

Parameters:
volumeType - The volume type, standard or PIOPS.
Returns:
A reference to this updated object so that method calls can be chained together.

getIops

public Integer getIops()
For PIOPS volumes, the IOPS per disk.

Returns:
For PIOPS volumes, the IOPS per disk.

setIops

public void setIops(Integer iops)
For PIOPS volumes, the IOPS per disk.

Parameters:
iops - For PIOPS volumes, the IOPS per disk.

withIops

public Volume withIops(Integer iops)
For PIOPS volumes, the IOPS per disk.

Returns a reference to this object so that method calls can be chained together.

Parameters:
iops - For PIOPS volumes, the IOPS per disk.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.