Class VolumeAttachment
- All Implemented Interfaces:
Serializable
,Cloneable
Describes volume attachment details.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The 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.int
hashCode()
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
The device name.void
setInstanceId
(String instanceId) The ID of the instance.void
setState
(VolumeAttachmentState state) The attachment state of the volume.void
The attachment state of the volume.void
setVolumeId
(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
The ID of the volume.
- Returns:
- The ID of the volume.
-
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
The ID of the instance.
- Returns:
- The ID of the instance.
-
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
The device name.
- Parameters:
device
- The device name.
-
getDevice
The device name.
- Returns:
- The device name.
-
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-