Class VolumeAttachment
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VolumeAttachment
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VolumeAttachment extends Object implements Serializable, Cloneable
Describes volume attachment details.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(VolumeAttachmentState state)
The attachment state of the volume.void
setState(String 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(VolumeAttachmentState state)
The attachment state of the volume.VolumeAttachment
withState(String state)
The attachment state of the volume.VolumeAttachment
withVolumeId(String volumeId)
The ID of the volume.
-
-
-
Method Detail
-
setVolumeId
public void setVolumeId(String volumeId)
The ID of the volume.
- Parameters:
volumeId
- The ID of the volume.
-
getVolumeId
public String getVolumeId()
The ID of the volume.
- Returns:
- The ID of the volume.
-
withVolumeId
public VolumeAttachment withVolumeId(String volumeId)
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
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public VolumeAttachment withInstanceId(String instanceId)
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
public void setDevice(String device)
The device name.
- Parameters:
device
- The device name.
-
getDevice
public String getDevice()
The device name.
- Returns:
- The device name.
-
withDevice
public VolumeAttachment withDevice(String device)
The device name.
- Parameters:
device
- The device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The attachment state of the volume.
- Parameters:
state
- The attachment state of the volume.- See Also:
VolumeAttachmentState
-
getState
public String getState()
The attachment state of the volume.
- Returns:
- The attachment state of the volume.
- See Also:
VolumeAttachmentState
-
withState
public VolumeAttachment withState(String state)
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:
VolumeAttachmentState
-
setState
public void setState(VolumeAttachmentState state)
The attachment state of the volume.
- Parameters:
state
- The attachment state of the volume.- See Also:
VolumeAttachmentState
-
withState
public VolumeAttachment withState(VolumeAttachmentState state)
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:
VolumeAttachmentState
-
setAttachTime
public void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
- Parameters:
attachTime
- The time stamp when the attachment initiated.
-
getAttachTime
public Date getAttachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
withAttachTime
public VolumeAttachment withAttachTime(Date attachTime)
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
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
- Parameters:
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
- Returns:
- Indicates whether the EBS volume is deleted on instance termination.
-
withDeleteOnTermination
public VolumeAttachment withDeleteOnTermination(Boolean deleteOnTermination)
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
public Boolean isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
- Returns:
- Indicates whether the EBS volume is deleted on instance termination.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VolumeAttachment clone()
-
-