Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class Volume

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

public class Volume
extends java.lang.Object
implements java.io.Serializable

Describes an instance's Amazon EBS volume.

See Also:
Serialized Form

Constructor Summary
Volume()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The volume Availability Zone.
 java.lang.String getDevice()
          The device name.
 java.lang.String getEc2VolumeId()
          The Amazon EC2 volume ID.
 java.lang.String getInstanceId()
          The instance ID.
 java.lang.String getMountPoint()
          The volume mount point.
 java.lang.String getName()
          The volume name.
 java.lang.String getRaidArrayId()
          The RAID array ID.
 java.lang.String getRegion()
          The AWS region.
 java.lang.Integer getSize()
          The volume size.
 java.lang.String getStatus()
          The value returned by DescribeVolumes.
 java.lang.String getVolumeId()
          The volume ID.
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The volume Availability Zone.
 void setDevice(java.lang.String device)
          The device name.
 void setEc2VolumeId(java.lang.String ec2VolumeId)
          The Amazon EC2 volume ID.
 void setInstanceId(java.lang.String instanceId)
          The instance ID.
 void setMountPoint(java.lang.String mountPoint)
          The volume mount point.
 void setName(java.lang.String name)
          The volume name.
 void setRaidArrayId(java.lang.String raidArrayId)
          The RAID array ID.
 void setRegion(java.lang.String region)
          The AWS region.
 void setSize(java.lang.Integer size)
          The volume size.
 void setStatus(java.lang.String status)
          The value returned by DescribeVolumes.
 void setVolumeId(java.lang.String volumeId)
          The volume ID.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Volume withAvailabilityZone(java.lang.String availabilityZone)
          The volume Availability Zone.
 Volume withDevice(java.lang.String device)
          The device name.
 Volume withEc2VolumeId(java.lang.String ec2VolumeId)
          The Amazon EC2 volume ID.
 Volume withInstanceId(java.lang.String instanceId)
          The instance ID.
 Volume withMountPoint(java.lang.String mountPoint)
          The volume mount point.
 Volume withName(java.lang.String name)
          The volume name.
 Volume withRaidArrayId(java.lang.String raidArrayId)
          The RAID array ID.
 Volume withRegion(java.lang.String region)
          The AWS region.
 Volume withSize(java.lang.Integer size)
          The volume size.
 Volume withStatus(java.lang.String status)
          The value returned by DescribeVolumes.
 Volume withVolumeId(java.lang.String volumeId)
          The volume ID.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Volume

public Volume()
Method Detail

getVolumeId

public java.lang.String getVolumeId()
The volume ID.

Returns:
The volume ID.

setVolumeId

public void setVolumeId(java.lang.String volumeId)
The volume ID.

Parameters:
volumeId - The volume ID.

withVolumeId

public Volume withVolumeId(java.lang.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 java.lang.String getEc2VolumeId()
The Amazon EC2 volume ID.

Returns:
The Amazon EC2 volume ID.

setEc2VolumeId

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

Parameters:
ec2VolumeId - The Amazon EC2 volume ID.

withEc2VolumeId

public Volume withEc2VolumeId(java.lang.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 java.lang.String getName()
The volume name.

Returns:
The volume name.

setName

public void setName(java.lang.String name)
The volume name.

Parameters:
name - The volume name.

withName

public Volume withName(java.lang.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 java.lang.String getRaidArrayId()
The RAID array ID.

Returns:
The RAID array ID.

setRaidArrayId

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

Parameters:
raidArrayId - The RAID array ID.

withRaidArrayId

public Volume withRaidArrayId(java.lang.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 java.lang.String getInstanceId()
The instance ID.

Returns:
The instance ID.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The instance ID.

Parameters:
instanceId - The instance ID.

withInstanceId

public Volume withInstanceId(java.lang.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 java.lang.String getStatus()
The value returned by DescribeVolumes.

Returns:
The value returned by DescribeVolumes.

setStatus

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

Parameters:
status - The value returned by DescribeVolumes.

withStatus

public Volume withStatus(java.lang.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 java.lang.Integer getSize()
The volume size.

Returns:
The volume size.

setSize

public void setSize(java.lang.Integer size)
The volume size.

Parameters:
size - The volume size.

withSize

public Volume withSize(java.lang.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 java.lang.String getDevice()
The device name.

Returns:
The device name.

setDevice

public void setDevice(java.lang.String device)
The device name.

Parameters:
device - The device name.

withDevice

public Volume withDevice(java.lang.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 java.lang.String getMountPoint()
The volume mount point. For example "/dev/sdh".

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

setMountPoint

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

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

withMountPoint

public Volume withMountPoint(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.