|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Volume
public class Volume
Represents an Amazon Elastic Block Storage (EBS) volume.
Constructor Summary | |
---|---|
Volume()
|
Method Summary | |
---|---|
java.util.List<VolumeAttachment> |
getAttachments()
Information on what this volume is attached to. |
java.lang.String |
getAvailabilityZone()
Availability zone in which this volume was created. |
java.util.Date |
getCreateTime()
Timestamp when volume creation was initiated. |
java.lang.Integer |
getSize()
The size of this volume, in gigabytes. |
java.lang.String |
getSnapshotId()
Optional snapshot from which this volume was created. |
java.lang.String |
getState()
State of this volume (e.g., creating, available). |
java.util.List<Tag> |
getTags()
A list of tags for the Volume. |
java.lang.String |
getVolumeId()
The unique ID of this volume. |
void |
setAttachments(java.util.Collection<VolumeAttachment> attachments)
Information on what this volume is attached to. |
void |
setAvailabilityZone(java.lang.String availabilityZone)
Availability zone in which this volume was created. |
void |
setCreateTime(java.util.Date createTime)
Timestamp when volume creation was initiated. |
void |
setSize(java.lang.Integer size)
The size of this volume, in gigabytes. |
void |
setSnapshotId(java.lang.String snapshotId)
Optional snapshot from which this volume was created. |
void |
setState(java.lang.String state)
State of this volume (e.g., creating, available). |
void |
setTags(java.util.Collection<Tag> tags)
A list of tags for the Volume. |
void |
setVolumeId(java.lang.String volumeId)
The unique ID of this volume. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Volume |
withAttachments(java.util.Collection<VolumeAttachment> attachments)
Information on what this volume is attached to. |
Volume |
withAttachments(VolumeAttachment... attachments)
Information on what this volume is attached to. |
Volume |
withAvailabilityZone(java.lang.String availabilityZone)
Availability zone in which this volume was created. |
Volume |
withCreateTime(java.util.Date createTime)
Timestamp when volume creation was initiated. |
Volume |
withSize(java.lang.Integer size)
The size of this volume, in gigabytes. |
Volume |
withSnapshotId(java.lang.String snapshotId)
Optional snapshot from which this volume was created. |
Volume |
withState(java.lang.String state)
State of this volume (e.g., creating, available). |
Volume |
withTags(java.util.Collection<Tag> tags)
A list of tags for the Volume. |
Volume |
withTags(Tag... tags)
A list of tags for the Volume. |
Volume |
withVolumeId(java.lang.String volumeId)
The unique ID of this volume. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Volume()
Method Detail |
---|
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId
- The unique ID of this volume.public Volume withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The unique ID of this volume.
public java.lang.Integer getSize()
public void setSize(java.lang.Integer size)
size
- The size of this volume, in gigabytes.public Volume withSize(java.lang.Integer size)
Returns a reference to this object so that method calls can be chained together.
size
- The size of this volume, in gigabytes.
public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- Optional snapshot from which this volume was created.public Volume withSnapshotId(java.lang.String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- Optional snapshot from which this volume was created.
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- Availability zone in which this volume was created.public Volume withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- Availability zone in which this volume was created.
public java.lang.String getState()
Constraints:
Allowed Values: creating, available, in-use, deleting, error
VolumeState
public void setState(java.lang.String state)
Constraints:
Allowed Values: creating, available, in-use, deleting, error
state
- State of this volume (e.g., creating, available).VolumeState
public Volume withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: creating, available, in-use, deleting, error
state
- State of this volume (e.g., creating, available).
VolumeState
public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
createTime
- Timestamp when volume creation was initiated.public Volume withCreateTime(java.util.Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- Timestamp when volume creation was initiated.
public java.util.List<VolumeAttachment> getAttachments()
public void setAttachments(java.util.Collection<VolumeAttachment> attachments)
attachments
- Information on what this volume is attached to.public Volume withAttachments(VolumeAttachment... attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
- Information on what this volume is attached to.
public Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
- Information on what this volume is attached to.
public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- A list of tags for the Volume.public Volume withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Volume.
public Volume withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Volume.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |