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:
  • Constructor Details

    • VolumeAttachment

      public VolumeAttachment()
  • Method Details

    • 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:
    • getState

      public String getState()

      The attachment state of the volume.

      Returns:
      The attachment state of the volume.
      See Also:
    • 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:
    • setState

      public void setState(VolumeAttachmentState state)

      The attachment state of the volume.

      Parameters:
      state - The attachment state of the volume.
      See Also:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public VolumeAttachment clone()
      Overrides:
      clone in class Object