|
|||||||
| 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 | |
|---|---|
boolean |
equals(Object obj)
|
List<VolumeAttachment> |
getAttachments()
Information on what this volume is attached to. |
String |
getAvailabilityZone()
Availability zone in which this volume was created. |
Date |
getCreateTime()
Timestamp when volume creation was initiated. |
Integer |
getIops()
Returns the value of the Iops property for this object. |
Integer |
getSize()
The size of this volume, in gigabytes. |
String |
getSnapshotId()
Optional snapshot from which this volume was created. |
String |
getState()
State of this volume (e.g., creating, available). |
List<Tag> |
getTags()
A list of tags for the Volume. |
String |
getVolumeId()
The unique ID of this volume. |
String |
getVolumeType()
Returns the value of the VolumeType property for this object. |
int |
hashCode()
|
void |
setAttachments(Collection<VolumeAttachment> attachments)
Information on what this volume is attached to. |
void |
setAvailabilityZone(String availabilityZone)
Availability zone in which this volume was created. |
void |
setCreateTime(Date createTime)
Timestamp when volume creation was initiated. |
void |
setIops(Integer iops)
Sets the value of the Iops property for this object. |
void |
setSize(Integer size)
The size of this volume, in gigabytes. |
void |
setSnapshotId(String snapshotId)
Optional snapshot from which this volume was created. |
void |
setState(String state)
State of this volume (e.g., creating, available). |
void |
setState(VolumeState state)
State of this volume (e.g., creating, available). |
void |
setTags(Collection<Tag> tags)
A list of tags for the Volume. |
void |
setVolumeId(String volumeId)
The unique ID of this volume. |
void |
setVolumeType(String volumeType)
Sets the value of the VolumeType property for this object. |
void |
setVolumeType(VolumeType volumeType)
Sets the value of the VolumeType property for this object. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Volume |
withAttachments(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(String availabilityZone)
Availability zone in which this volume was created. |
Volume |
withCreateTime(Date createTime)
Timestamp when volume creation was initiated. |
Volume |
withIops(Integer iops)
Sets the value of the Iops property for this object. |
Volume |
withSize(Integer size)
The size of this volume, in gigabytes. |
Volume |
withSnapshotId(String snapshotId)
Optional snapshot from which this volume was created. |
Volume |
withState(String state)
State of this volume (e.g., creating, available). |
Volume |
withState(VolumeState state)
State of this volume (e.g., creating, available). |
Volume |
withTags(Collection<Tag> tags)
A list of tags for the Volume. |
Volume |
withTags(Tag... tags)
A list of tags for the Volume. |
Volume |
withVolumeId(String volumeId)
The unique ID of this volume. |
Volume |
withVolumeType(String volumeType)
Sets the value of the VolumeType property for this object. |
Volume |
withVolumeType(VolumeType volumeType)
Sets the value of the VolumeType property for this object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Volume()
| Method Detail |
|---|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId - The unique ID of this volume.public Volume withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId - The unique ID of this volume.
public Integer getSize()
public void setSize(Integer size)
size - The size of this volume, in gigabytes.public Volume withSize(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 String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId - Optional snapshot from which this volume was created.public Volume withSnapshotId(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 String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone - Availability zone in which this volume was created.public Volume withAvailabilityZone(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 String getState()
Constraints:
Allowed Values: creating, available, in-use, deleting, error
VolumeStatepublic void setState(String state)
Constraints:
Allowed Values: creating, available, in-use, deleting, error
state - State of this volume (e.g., creating, available).VolumeStatepublic 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, error
state - State of this volume (e.g., creating, available).
VolumeStatepublic void setState(VolumeState state)
Constraints:
Allowed Values: creating, available, in-use, deleting, error
state - State of this volume (e.g., creating, available).VolumeStatepublic 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, error
state - State of this volume (e.g., creating, available).
VolumeStatepublic Date getCreateTime()
public void setCreateTime(Date createTime)
createTime - Timestamp 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 - Timestamp when volume creation was initiated.
public List<VolumeAttachment> getAttachments()
public void setAttachments(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(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 List<Tag> getTags()
public void setTags(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(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 String getVolumeType()
Constraints:
Allowed Values: standard, io1
VolumeTypepublic void setVolumeType(String volumeType)
Constraints:
Allowed Values: standard, io1
volumeType - The new value for the VolumeType property for this object.VolumeTypepublic 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 new value for the VolumeType property for this object.
VolumeTypepublic void setVolumeType(VolumeType volumeType)
Constraints:
Allowed Values: standard, io1
volumeType - The new value for the VolumeType property for this object.VolumeTypepublic 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 new value for the VolumeType property for this object.
VolumeTypepublic Integer getIops()
public void setIops(Integer iops)
iops - The new value for the Iops property for this object.public Volume withIops(Integer iops)
Returns a reference to this object so that method calls can be chained together.
iops - The new value for the Iops property for this object.
public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||