|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.VolumeAttachment
public class VolumeAttachment
Specifies the details of a how an EC2 EBS volume is attached to an instance.
Constructor Summary | |
---|---|
VolumeAttachment()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Date |
getAttachTime()
Timestamp when this attachment initiated. |
Boolean |
getDeleteOnTermination()
` |
String |
getDevice()
How the device is exposed to the instance (e.g., /dev/sdh ). |
String |
getInstanceId()
|
String |
getState()
Constraints: Allowed Values: attaching, attached, detaching, detached |
String |
getVolumeId()
|
int |
hashCode()
|
Boolean |
isDeleteOnTermination()
` |
void |
setAttachTime(Date attachTime)
Timestamp when this attachment initiated. |
void |
setDeleteOnTermination(Boolean deleteOnTermination)
` |
void |
setDevice(String device)
How the device is exposed to the instance (e.g., /dev/sdh ). |
void |
setInstanceId(String instanceId)
|
void |
setState(String state)
Constraints: Allowed Values: attaching, attached, detaching, detached |
void |
setState(VolumeAttachmentState state)
Constraints: Allowed Values: attaching, attached, detaching, detached |
void |
setVolumeId(String volumeId)
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
VolumeAttachment |
withAttachTime(Date attachTime)
Timestamp when this attachment initiated. |
VolumeAttachment |
withDeleteOnTermination(Boolean deleteOnTermination)
` |
VolumeAttachment |
withDevice(String device)
How the device is exposed to the instance (e.g., /dev/sdh ). |
VolumeAttachment |
withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together. |
VolumeAttachment |
withState(String state)
Returns a reference to this object so that method calls can be chained together. |
VolumeAttachment |
withState(VolumeAttachmentState state)
Returns a reference to this object so that method calls can be chained together. |
VolumeAttachment |
withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VolumeAttachment()
Method Detail |
---|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- public VolumeAttachment withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
-
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- public VolumeAttachment withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
-
public String getDevice()
/dev/sdh
).
/dev/sdh
).public void setDevice(String device)
/dev/sdh
).
device
- How the device is exposed to the instance (e.g.,
/dev/sdh
).public VolumeAttachment withDevice(String device)
/dev/sdh
).
Returns a reference to this object so that method calls can be chained together.
device
- How the device is exposed to the instance (e.g.,
/dev/sdh
).
public String getState()
Constraints:
Allowed Values: attaching, attached, detaching, detached
VolumeAttachmentState
public void setState(String state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- VolumeAttachmentState
public VolumeAttachment withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
-
VolumeAttachmentState
public void setState(VolumeAttachmentState state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- VolumeAttachmentState
public VolumeAttachment withState(VolumeAttachmentState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
-
VolumeAttachmentState
public Date getAttachTime()
public void setAttachTime(Date attachTime)
attachTime
- Timestamp when this attachment initiated.public VolumeAttachment withAttachTime(Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime
- Timestamp when this attachment initiated.
public Boolean isDeleteOnTermination()
Whether this volume will be deleted or not when the associated instance is terminated.
Whether this volume will be deleted or not when the associated instance is terminated.
public void setDeleteOnTermination(Boolean deleteOnTermination)
Whether this volume will be deleted or not when the associated instance is terminated.
deleteOnTermination
- ` Whether this volume will be deleted or not when the associated instance is terminated.
public VolumeAttachment withDeleteOnTermination(Boolean deleteOnTermination)
Whether this volume will be deleted or not when the associated instance is terminated.
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- ` Whether this volume will be deleted or not when the associated instance is terminated.
public Boolean getDeleteOnTermination()
Whether this volume will be deleted or not when the associated instance is terminated.
Whether this volume will be deleted or not when the associated instance is terminated.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |