Class VolumeAttachment

    • Constructor Detail

      • VolumeAttachment

        public VolumeAttachment()
    • 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
      • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object