public class VolumeAttachment
extends java.lang.Object
implements java.io.Serializable
Describes volume attachment details.
Constructor and Description |
---|
VolumeAttachment() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getAttachTime()
The time stamp when the attachment initiated.
|
java.lang.Boolean |
getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
|
java.lang.String |
getDevice()
The device name.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getState()
The attachment state of the volume.
|
java.lang.String |
getVolumeId()
The ID of the volume.
|
int |
hashCode() |
java.lang.Boolean |
isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
|
void |
setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
|
void |
setDevice(java.lang.String device)
The device name.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setState(java.lang.String state)
The attachment state of the volume.
|
void |
setState(VolumeAttachmentState state)
The attachment state of the volume.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VolumeAttachment |
withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
|
VolumeAttachment |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
|
VolumeAttachment |
withDevice(java.lang.String device)
The device name.
|
VolumeAttachment |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
VolumeAttachment |
withState(java.lang.String state)
The attachment state of the volume.
|
VolumeAttachment |
withState(VolumeAttachmentState state)
The attachment state of the volume.
|
VolumeAttachment |
withVolumeId(java.lang.String volumeId)
The ID of the volume.
|
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId
- The ID of the volume.public VolumeAttachment withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume.public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.public VolumeAttachment withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public java.lang.String getDevice()
public void setDevice(java.lang.String device)
device
- The device name.public VolumeAttachment withDevice(java.lang.String device)
Returns a reference to this object so that method calls can be chained together.
device
- The device name.public java.lang.String getState()
Constraints:
Allowed Values: attaching, attached, detaching, detached
VolumeAttachmentState
public void setState(java.lang.String state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- The attachment state of the volume.VolumeAttachmentState
public 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
- The attachment state of the volume.VolumeAttachmentState
public void setState(VolumeAttachmentState state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- The attachment state of the volume.VolumeAttachmentState
public 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
- The attachment state of the volume.VolumeAttachmentState
public java.util.Date getAttachTime()
public void setAttachTime(java.util.Date attachTime)
attachTime
- The time stamp when the attachment initiated.public VolumeAttachment withAttachTime(java.util.Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime
- The time stamp when the attachment initiated.public java.lang.Boolean isDeleteOnTermination()
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public VolumeAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public java.lang.Boolean getDeleteOnTermination()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.