public class Volume extends Object implements Serializable
Describes a volume.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<VolumeAttachment> |
getAttachments() |
String |
getAvailabilityZone()
The Availability Zone for the volume.
|
Date |
getCreateTime()
The time stamp when volume creation was initiated.
|
Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume
supports.
|
Integer |
getSize()
The size of the volume, in GiBs.
|
String |
getSnapshotId()
The snapshot from which the volume was created, if applicable.
|
String |
getState()
The volume state.
|
List<Tag> |
getTags()
Any tags assigned to the volume.
|
String |
getVolumeId()
The ID of the volume.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
void |
setAttachments(Collection<VolumeAttachment> attachments) |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the volume.
|
void |
setCreateTime(Date createTime)
The time stamp when volume creation was initiated.
|
void |
setIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume
supports.
|
void |
setSize(Integer size)
The size of the volume, in GiBs.
|
void |
setSnapshotId(String snapshotId)
The snapshot from which the volume was created, if applicable.
|
void |
setState(String state)
The volume state.
|
void |
setState(VolumeState state)
The volume state.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the volume.
|
void |
setVolumeId(String volumeId)
The ID of the volume.
|
void |
setVolumeType(String volumeType)
The volume type.
|
void |
setVolumeType(VolumeType volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Volume |
withAttachments(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(String availabilityZone)
The Availability Zone for the volume.
|
Volume |
withCreateTime(Date createTime)
The time stamp when volume creation was initiated.
|
Volume |
withIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume
supports.
|
Volume |
withSize(Integer size)
The size of the volume, in GiBs.
|
Volume |
withSnapshotId(String snapshotId)
The snapshot from which the volume was created, if applicable.
|
Volume |
withState(String state)
The volume state.
|
Volume |
withState(VolumeState state)
The volume state.
|
Volume |
withTags(Collection<Tag> tags)
Any tags assigned to the volume.
|
Volume |
withTags(Tag... tags)
Any tags assigned to the volume.
|
Volume |
withVolumeId(String volumeId)
The ID of the volume.
|
Volume |
withVolumeType(String volumeType)
The volume type.
|
Volume |
withVolumeType(VolumeType volumeType)
The volume type.
|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the volume.public Volume withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume.public Integer getSize()
public void setSize(Integer size)
size
- The size of the volume, in GiBs.public Volume withSize(Integer size)
Returns a reference to this object so that method calls can be chained together.
size
- The size of the volume, in GiBs.public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The snapshot from which the volume was created, if applicable.public Volume withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The snapshot from which the volume was created, if applicable.public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone for the volume.public Volume withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone for the volume.public String getState()
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
VolumeState
public void setState(String state)
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- The volume state.VolumeState
public Volume withState(String 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
state
- The volume state.VolumeState
public void setState(VolumeState state)
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- The volume state.VolumeState
public Volume withState(VolumeState 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
state
- The volume state.VolumeState
public Date getCreateTime()
public void setCreateTime(Date createTime)
createTime
- The time stamp when volume creation was initiated.public Volume withCreateTime(Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- The time stamp when volume creation was initiated.public List<VolumeAttachment> getAttachments()
public void setAttachments(Collection<VolumeAttachment> attachments)
attachments
- public Volume withAttachments(VolumeAttachment... attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
- public Volume withAttachments(Collection<VolumeAttachment> attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
- public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- Any tags assigned to the volume.public Volume withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the volume.public Volume withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the volume.public String getVolumeType()
Constraints:
Allowed Values: standard, io1
VolumeType
public void setVolumeType(String volumeType)
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type.VolumeType
public Volume withVolumeType(String volumeType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type.VolumeType
public void setVolumeType(VolumeType volumeType)
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type.VolumeType
public Volume withVolumeType(VolumeType volumeType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type.VolumeType
public Integer getIops()
public void setIops(Integer iops)
iops
- The number of I/O operations per second (IOPS) that the volume
supports.public Volume withIops(Integer iops)
Returns a reference to this object so that method calls can be chained together.
iops
- The number of I/O operations per second (IOPS) that the volume
supports.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.