Class VolumeAttachment
- All Implemented Interfaces:
Serializable, Cloneable
Describes volume attachment details.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe time stamp when the attachment initiated.Indicates whether the EBS volume is deleted on instance termination.The device name.The ID of the instance.getState()The attachment state of the volume.The ID of the volume.inthashCode()Indicates whether the EBS volume is deleted on instance termination.voidsetAttachTime(Date attachTime) The time stamp when the attachment initiated.voidsetDeleteOnTermination(Boolean deleteOnTermination) Indicates whether the EBS volume is deleted on instance termination.voidThe device name.voidsetInstanceId(String instanceId) The ID of the instance.voidsetState(VolumeAttachmentState state) The attachment state of the volume.voidThe attachment state of the volume.voidsetVolumeId(String volumeId) The ID of the volume.toString()Returns a string representation of this object; useful for testing and debugging.withAttachTime(Date attachTime) The time stamp when the attachment initiated.withDeleteOnTermination(Boolean deleteOnTermination) Indicates whether the EBS volume is deleted on instance termination.withDevice(String device) The device name.withInstanceId(String instanceId) The ID of the instance.withState(VolumeAttachmentState state) The attachment state of the volume.The attachment state of the volume.withVolumeId(String volumeId) The ID of the volume.
-
Constructor Details
-
VolumeAttachment
public VolumeAttachment()
-
-
Method Details
-
setVolumeId
The ID of the volume.
- Parameters:
volumeId- The ID of the volume.
-
getVolumeId
-
withVolumeId
The ID of the volume.
- Parameters:
volumeId- The ID of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
-
withInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDevice
-
getDevice
-
withDevice
The device name.
- Parameters:
device- The device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The attachment state of the volume.
- Parameters:
state- The attachment state of the volume.- See Also:
-
getState
The attachment state of the volume.
- Returns:
- The attachment state of the volume.
- See Also:
-
withState
The attachment state of the volume.
- Parameters:
state- The attachment state of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The attachment state of the volume.
- Parameters:
state- The attachment state of the volume.- See Also:
-
withState
The attachment state of the volume.
- Parameters:
state- The attachment state of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAttachTime
The time stamp when the attachment initiated.
- Parameters:
attachTime- The time stamp when the attachment initiated.
-
getAttachTime
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
withAttachTime
The time stamp when the attachment initiated.
- Parameters:
attachTime- The time stamp when the attachment initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
- Parameters:
deleteOnTermination- Indicates whether the EBS volume is deleted on instance termination.
-
getDeleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
- Returns:
- Indicates whether the EBS volume is deleted on instance termination.
-
withDeleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
- Parameters:
deleteOnTermination- Indicates whether the EBS volume is deleted on instance termination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
- Returns:
- Indicates whether the EBS volume is deleted on instance termination.
-
toString
-
equals
-
hashCode
-
clone
-