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