public class VolumeAttachment
extends java.lang.Object
implements java.io.Serializable
Specifies the details of a how an EC2 EBS volume is attached to an instance.
| コンストラクタと説明 |
|---|
VolumeAttachment() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getAttachTime()
Timestamp when this attachment initiated.
|
java.lang.Boolean |
getDeleteOnTermination()
` Whether this volume will be deleted or not when the associated
instance is terminated.
|
java.lang.String |
getDevice()
How the device is exposed to the instance (e.g.,
/dev/sdh). |
java.lang.String |
getInstanceId() |
java.lang.String |
getState()
Constraints:
Allowed Values: attaching, attached, detaching, detached |
java.lang.String |
getVolumeId() |
int |
hashCode() |
java.lang.Boolean |
isDeleteOnTermination()
` Whether this volume will be deleted or not when the associated
instance is terminated.
|
void |
setAttachTime(java.util.Date attachTime)
Timestamp when this attachment initiated.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
` Whether this volume will be deleted or not when the associated
instance is terminated.
|
void |
setDevice(java.lang.String device)
How the device is exposed to the instance (e.g.,
/dev/sdh). |
void |
setInstanceId(java.lang.String instanceId) |
void |
setState(java.lang.String state)
Constraints:
Allowed Values: attaching, attached, detaching, detached |
void |
setState(VolumeAttachmentState state)
Constraints:
Allowed Values: attaching, attached, detaching, detached |
void |
setVolumeId(java.lang.String volumeId) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VolumeAttachment |
withAttachTime(java.util.Date attachTime)
Timestamp when this attachment initiated.
|
VolumeAttachment |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
` Whether this volume will be deleted or not when the associated
instance is terminated.
|
VolumeAttachment |
withDevice(java.lang.String device)
How the device is exposed to the instance (e.g.,
/dev/sdh). |
VolumeAttachment |
withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
|
VolumeAttachment |
withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
|
VolumeAttachment |
withState(VolumeAttachmentState state)
Returns a reference to this object so that method calls can be chained together.
|
VolumeAttachment |
withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
|
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId - public VolumeAttachment withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId - public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - public VolumeAttachment withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - public java.lang.String getDevice()
/dev/sdh)./dev/sdh).public void setDevice(java.lang.String device)
/dev/sdh).device - How the device is exposed to the instance (e.g.,
/dev/sdh).public VolumeAttachment withDevice(java.lang.String device)
/dev/sdh).
Returns a reference to this object so that method calls can be chained together.
device - How the device is exposed to the instance (e.g.,
/dev/sdh).public java.lang.String getState()
Constraints:
Allowed Values: attaching, attached, detaching, detached
VolumeAttachmentStatepublic void setState(java.lang.String state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - VolumeAttachmentStatepublic VolumeAttachment withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - VolumeAttachmentStatepublic void setState(VolumeAttachmentState state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - VolumeAttachmentStatepublic VolumeAttachment withState(VolumeAttachmentState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state - VolumeAttachmentStatepublic java.util.Date getAttachTime()
public void setAttachTime(java.util.Date attachTime)
attachTime - Timestamp when this attachment initiated.public VolumeAttachment withAttachTime(java.util.Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime - Timestamp when this attachment initiated.public java.lang.Boolean isDeleteOnTermination()
Whether this volume will be deleted or not when the associated instance is terminated.
Whether this volume will be deleted or not when the associated instance is terminated.
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Whether this volume will be deleted or not when the associated instance is terminated.
deleteOnTermination - ` Whether this volume will be deleted or not when the associated instance is terminated.
public VolumeAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Whether this volume will be deleted or not when the associated instance is terminated.
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination - ` Whether this volume will be deleted or not when the associated instance is terminated.
public java.lang.Boolean getDeleteOnTermination()
Whether this volume will be deleted or not when the associated instance is terminated.
Whether this volume will be deleted or not when the associated instance is terminated.
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