com.amazonaws.services.ec2.model
Class VolumeAttachment

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VolumeAttachment
All Implemented Interfaces:
Serializable

public class VolumeAttachment
extends Object
implements Serializable

Describes volume attachment details.

See Also:
Serialized Form

Constructor Summary
VolumeAttachment()
           
 
Method Summary
 boolean equals(Object obj)
           
 Date getAttachTime()
          The time stamp when the attachment initiated.
 Boolean getDeleteOnTermination()
          Indicates whether the Amazon 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 Amazon 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 Amazon 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(String state)
          The attachment state of the volume.
 void setState(VolumeAttachmentState 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 Amazon 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(String state)
          The attachment state of the volume.
 VolumeAttachment withState(VolumeAttachmentState state)
          The attachment state of the volume.
 VolumeAttachment withVolumeId(String volumeId)
          The ID of the volume.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumeAttachment

public VolumeAttachment()
Method Detail

getVolumeId

public String getVolumeId()
The ID of the volume.

Returns:
The ID of the volume.

setVolumeId

public void setVolumeId(String volumeId)
The ID of the volume.

Parameters:
volumeId - The ID of the volume.

withVolumeId

public VolumeAttachment withVolumeId(String volumeId)
The ID of the volume.

Returns a reference to this object so that method calls can be chained together.

Parameters:
volumeId - The ID of the volume.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public VolumeAttachment withInstanceId(String instanceId)
The ID of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getDevice

public String getDevice()
The device name.

Returns:
The device name.

setDevice

public void setDevice(String device)
The device name.

Parameters:
device - The device name.

withDevice

public VolumeAttachment withDevice(String device)
The device name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
device - The device name.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public String getState()
The attachment state of the volume.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Returns:
The attachment state of the volume.
See Also:
VolumeAttachmentState

setState

public void setState(String state)
The attachment state of the volume.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The attachment state of the volume.
See Also:
VolumeAttachmentState

withState

public VolumeAttachment withState(String state)
The attachment state of the volume.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The attachment state of the volume.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeAttachmentState

setState

public void setState(VolumeAttachmentState state)
The attachment state of the volume.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The attachment state of the volume.
See Also:
VolumeAttachmentState

withState

public VolumeAttachment withState(VolumeAttachmentState state)
The attachment state of the volume.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
state - The attachment state of the volume.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeAttachmentState

getAttachTime

public Date getAttachTime()
The time stamp when the attachment initiated.

Returns:
The time stamp when the attachment initiated.

setAttachTime

public void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.

Parameters:
attachTime - The time stamp when the attachment initiated.

withAttachTime

public VolumeAttachment withAttachTime(Date attachTime)
The time stamp when the attachment initiated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachTime - The time stamp when the attachment initiated.
Returns:
A reference to this updated object so that method calls can be chained together.

isDeleteOnTermination

public Boolean isDeleteOnTermination()
Indicates whether the Amazon EBS volume is deleted on instance termination.

Returns:
Indicates whether the Amazon EBS volume is deleted on instance termination.

setDeleteOnTermination

public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the Amazon EBS volume is deleted on instance termination.

Parameters:
deleteOnTermination - Indicates whether the Amazon EBS volume is deleted on instance termination.

withDeleteOnTermination

public VolumeAttachment withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the Amazon EBS volume is deleted on instance termination.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deleteOnTermination - Indicates whether the Amazon EBS volume is deleted on instance termination.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeleteOnTermination

public Boolean getDeleteOnTermination()
Indicates whether the Amazon EBS volume is deleted on instance termination.

Returns:
Indicates whether the Amazon 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

equals

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


Copyright © 2016. All rights reserved.