@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public Date getAttachTime()
The time stamp when the attachment initiated.
public VolumeAttachment withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public void setDevice(String device)
The device name.
device
- The device name.public String getDevice()
The device name.
public VolumeAttachment withDevice(String device)
The device name.
device
- The device name.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public VolumeAttachment withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setState(String state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public String getState()
The attachment state of the volume.
VolumeAttachmentState
public VolumeAttachment withState(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 setVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public String getVolumeId()
The ID of the volume.
public VolumeAttachment withVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public Boolean getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public VolumeAttachment withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public Boolean isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public String toString()
toString
in class Object
Object.toString()
public VolumeAttachment clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.