public class VolumeAttachment
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes volume attachment details.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
attachTime
The time stamp when the attachment initiated.
|
private java.lang.Boolean |
deleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
|
private java.lang.String |
device
The device name.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
state
The attachment state of the volume.
|
private java.lang.String |
volumeId
The ID of the volume.
|
Constructor and Description |
---|
VolumeAttachment() |
Modifier and Type | Method and Description |
---|---|
VolumeAttachment |
clone() |
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.
|
private java.lang.String volumeId
The ID of the volume.
private java.lang.String instanceId
The ID of the instance.
private java.lang.String device
The device name.
private java.lang.String state
The attachment state of the volume.
private java.util.Date attachTime
The time stamp when the attachment initiated.
private java.lang.Boolean deleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
public void setVolumeId(java.lang.String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public java.lang.String getVolumeId()
The ID of the volume.
public VolumeAttachment withVolumeId(java.lang.String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public VolumeAttachment withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setDevice(java.lang.String device)
The device name.
device
- The device name.public java.lang.String getDevice()
The device name.
public VolumeAttachment withDevice(java.lang.String device)
The device name.
device
- The device name.public void setState(java.lang.String state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public java.lang.String getState()
The attachment state of the volume.
VolumeAttachmentState
public VolumeAttachment withState(java.lang.String state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public void setState(VolumeAttachmentState state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public VolumeAttachment withState(VolumeAttachmentState state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public void setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public java.util.Date getAttachTime()
The time stamp when the attachment initiated.
public VolumeAttachment withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance
termination.public java.lang.Boolean getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public VolumeAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance
termination.public java.lang.Boolean isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VolumeAttachment clone()
clone
in class java.lang.Object