com.amazonaws.services.ec2.model
Class Volume

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

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

Describes a volume.

See Also:
Serialized Form

Constructor Summary
Volume()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<VolumeAttachment> getAttachments()
           
 java.lang.String getAvailabilityZone()
          The Availability Zone for the volume.
 java.util.Date getCreateTime()
          The time stamp when volume creation was initiated.
 java.lang.Boolean getEncrypted()
          Indicates whether the volume is encrypted.
 java.lang.Integer getIops()
          The number of I/O operations per second (IOPS) that the volume supports.
 java.lang.Integer getSize()
          The size of the volume, in GiBs.
 java.lang.String getSnapshotId()
          The snapshot from which the volume was created, if applicable.
 java.lang.String getState()
          The volume state.
 java.util.List<Tag> getTags()
          Any tags assigned to the volume.
 java.lang.String getVolumeId()
          The ID of the volume.
 java.lang.String getVolumeType()
          The volume type.
 int hashCode()
           
 java.lang.Boolean isEncrypted()
          Indicates whether the volume is encrypted.
 void setAttachments(java.util.Collection<VolumeAttachment> attachments)
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone for the volume.
 void setCreateTime(java.util.Date createTime)
          The time stamp when volume creation was initiated.
 void setEncrypted(java.lang.Boolean encrypted)
          Indicates whether the volume is encrypted.
 void setIops(java.lang.Integer iops)
          The number of I/O operations per second (IOPS) that the volume supports.
 void setSize(java.lang.Integer size)
          The size of the volume, in GiBs.
 void setSnapshotId(java.lang.String snapshotId)
          The snapshot from which the volume was created, if applicable.
 void setState(java.lang.String state)
          The volume state.
 void setState(VolumeState state)
          The volume state.
 void setTags(java.util.Collection<Tag> tags)
          Any tags assigned to the volume.
 void setVolumeId(java.lang.String volumeId)
          The ID of the volume.
 void setVolumeType(java.lang.String volumeType)
          The volume type.
 void setVolumeType(VolumeType volumeType)
          The volume type.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)
           Returns a reference to this object so that method calls can be chained together.
 Volume withAttachments(VolumeAttachment... attachments)
           Returns a reference to this object so that method calls can be chained together.
 Volume withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone for the volume.
 Volume withCreateTime(java.util.Date createTime)
          The time stamp when volume creation was initiated.
 Volume withEncrypted(java.lang.Boolean encrypted)
          Indicates whether the volume is encrypted.
 Volume withIops(java.lang.Integer iops)
          The number of I/O operations per second (IOPS) that the volume supports.
 Volume withSize(java.lang.Integer size)
          The size of the volume, in GiBs.
 Volume withSnapshotId(java.lang.String snapshotId)
          The snapshot from which the volume was created, if applicable.
 Volume withState(java.lang.String state)
          The volume state.
 Volume withState(VolumeState state)
          The volume state.
 Volume withTags(java.util.Collection<Tag> tags)
          Any tags assigned to the volume.
 Volume withTags(Tag... tags)
          Any tags assigned to the volume.
 Volume withVolumeId(java.lang.String volumeId)
          The ID of the volume.
 Volume withVolumeType(java.lang.String volumeType)
          The volume type.
 Volume withVolumeType(VolumeType volumeType)
          The volume type.
 
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 ID of the volume.

Returns:
The ID of the volume.

setVolumeId

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

Parameters:
volumeId - The ID of the volume.

withVolumeId

public Volume withVolumeId(java.lang.String volumeId)
The ID of the volume.

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

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

getSize

public java.lang.Integer getSize()
The size of the volume, in GiBs.

Returns:
The size of the volume, in GiBs.

setSize

public void setSize(java.lang.Integer size)
The size of the volume, in GiBs.

Parameters:
size - The size of the volume, in GiBs.

withSize

public Volume withSize(java.lang.Integer size)
The size of the volume, in GiBs.

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

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

getSnapshotId

public java.lang.String getSnapshotId()
The snapshot from which the volume was created, if applicable.

Returns:
The snapshot from which the volume was created, if applicable.

setSnapshotId

public void setSnapshotId(java.lang.String snapshotId)
The snapshot from which the volume was created, if applicable.

Parameters:
snapshotId - The snapshot from which the volume was created, if applicable.

withSnapshotId

public Volume withSnapshotId(java.lang.String snapshotId)
The snapshot from which the volume was created, if applicable.

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

Parameters:
snapshotId - The snapshot from which the volume was created, if applicable.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone for the volume.

Returns:
The Availability Zone for the volume.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the volume.

Parameters:
availabilityZone - The Availability Zone for the volume.

withAvailabilityZone

public Volume withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the volume.

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

Parameters:
availabilityZone - The Availability Zone for the volume.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
The volume state.

Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error

Returns:
The volume state.
See Also:
VolumeState

setState

public void setState(java.lang.String state)
The volume state.

Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error

Parameters:
state - The volume state.
See Also:
VolumeState

withState

public Volume withState(java.lang.String state)
The volume state.

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

Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error

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

setState

public void setState(VolumeState state)
The volume state.

Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error

Parameters:
state - The volume state.
See Also:
VolumeState

withState

public Volume withState(VolumeState state)
The volume state.

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

Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error

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

getCreateTime

public java.util.Date getCreateTime()
The time stamp when volume creation was initiated.

Returns:
The time stamp when volume creation was initiated.

setCreateTime

public void setCreateTime(java.util.Date createTime)
The time stamp when volume creation was initiated.

Parameters:
createTime - The time stamp when volume creation was initiated.

withCreateTime

public Volume withCreateTime(java.util.Date createTime)
The time stamp when volume creation was initiated.

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

Parameters:
createTime - The time stamp when volume creation was initiated.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttachments

public java.util.List<VolumeAttachment> getAttachments()
Returns:

setAttachments

public void setAttachments(java.util.Collection<VolumeAttachment> attachments)
Parameters:
attachments -

withAttachments

public Volume withAttachments(VolumeAttachment... attachments)

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

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

withAttachments

public Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)

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

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

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the volume.

Returns:
Any tags assigned to the volume.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the volume.

Parameters:
tags - Any tags assigned to the volume.

withTags

public Volume withTags(Tag... tags)
Any tags assigned to the volume.

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

Parameters:
tags - Any tags assigned to the volume.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public Volume withTags(java.util.Collection<Tag> tags)
Any tags assigned to the volume.

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

Parameters:
tags - Any tags assigned to the volume.
Returns:
A reference to this updated object so that method calls can be chained together.

getVolumeType

public java.lang.String getVolumeType()
The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.

Constraints:
Allowed Values: standard, io1

Returns:
The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
See Also:
VolumeType

setVolumeType

public void setVolumeType(java.lang.String volumeType)
The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
See Also:
VolumeType

withVolumeType

public Volume withVolumeType(java.lang.String volumeType)
The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.

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

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeType

setVolumeType

public void setVolumeType(VolumeType volumeType)
The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
See Also:
VolumeType

withVolumeType

public Volume withVolumeType(VolumeType volumeType)
The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.

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

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeType

getIops

public java.lang.Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports.

Returns:
The number of I/O operations per second (IOPS) that the volume supports.

setIops

public void setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.

Parameters:
iops - The number of I/O operations per second (IOPS) that the volume supports.

withIops

public Volume withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.

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

Parameters:
iops - The number of I/O operations per second (IOPS) that the volume supports.
Returns:
A reference to this updated object so that method calls can be chained together.

isEncrypted

public java.lang.Boolean isEncrypted()
Indicates whether the volume is encrypted.

Returns:
Indicates whether the volume is encrypted.

setEncrypted

public void setEncrypted(java.lang.Boolean encrypted)
Indicates whether the volume is encrypted.

Parameters:
encrypted - Indicates whether the volume is encrypted.

withEncrypted

public Volume withEncrypted(java.lang.Boolean encrypted)
Indicates whether the volume is encrypted.

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

Parameters:
encrypted - Indicates whether the volume is encrypted.
Returns:
A reference to this updated object so that method calls can be chained together.

getEncrypted

public java.lang.Boolean getEncrypted()
Indicates whether the volume is encrypted.

Returns:
Indicates whether the volume is encrypted.

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.