public class Volume
extends java.lang.Object
implements java.io.Serializable
Represents an Amazon Elastic Block Storage (EBS) volume.
| コンストラクタと説明 |
|---|
Volume() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
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 |
getIops()
Returns the value of the Iops property for this object.
|
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.
|
java.lang.String |
getVolumeType()
Returns the value of the VolumeType property for this object.
|
int |
hashCode() |
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 |
setIops(java.lang.Integer iops)
Sets the value of the Iops property for this object.
|
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 |
setState(VolumeState 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.
|
void |
setVolumeType(java.lang.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.
|
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 |
withIops(java.lang.Integer iops)
Sets the value of the Iops property for this object.
|
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 |
withState(VolumeState 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.
|
Volume |
withVolumeType(java.lang.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.
|
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
VolumeStatepublic void setState(java.lang.String state)
Constraints:
Allowed Values: creating, available, in-use, deleting, error
state - State of this volume (e.g., creating, available).VolumeStatepublic 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).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 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 getVolumeType()
Constraints:
Allowed Values: standard, io1
VolumeTypepublic void setVolumeType(java.lang.String volumeType)
Constraints:
Allowed Values: standard, io1
volumeType - The new value for the VolumeType property for this object.VolumeTypepublic Volume withVolumeType(java.lang.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 java.lang.Integer getIops()
public void setIops(java.lang.Integer iops)
iops - The new value for the Iops property for this object.public Volume withIops(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object