@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VolumeAttachment extends Object implements Serializable, Cloneable
Describes volume attachment details.
Constructor and Description |
---|
VolumeAttachment() |
Modifier and Type | Method and Description |
---|---|
VolumeAttachment |
clone() |
boolean |
equals(Object obj) |
String |
getAssociatedResource()
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
|
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 |
getInstanceOwningService()
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is
attached.
|
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 |
setAssociatedResource(String associatedResource)
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
|
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 |
setInstanceOwningService(String instanceOwningService)
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is
attached.
|
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.
|
VolumeAttachment |
withAssociatedResource(String associatedResource)
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
|
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 |
withInstanceOwningService(String instanceOwningService)
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is
attached.
|
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.
|
public void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public Date getAttachTime()
The time stamp when the attachment initiated.
public VolumeAttachment withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public void setDevice(String device)
The device name.
If the volume is attached to a Fargate task, this parameter returns null
.
device
- The device name.
If the volume is attached to a Fargate task, this parameter returns null
.
public String getDevice()
The device name.
If the volume is attached to a Fargate task, this parameter returns null
.
If the volume is attached to a Fargate task, this parameter returns null
.
public VolumeAttachment withDevice(String device)
The device name.
If the volume is attached to a Fargate task, this parameter returns null
.
device
- The device name.
If the volume is attached to a Fargate task, this parameter returns null
.
public void setInstanceId(String instanceId)
The ID of the instance.
If the volume is attached to a Fargate task, this parameter returns null
.
instanceId
- The ID of the instance.
If the volume is attached to a Fargate task, this parameter returns null
.
public String getInstanceId()
The ID of the instance.
If the volume is attached to a Fargate task, this parameter returns null
.
If the volume is attached to a Fargate task, this parameter returns null
.
public VolumeAttachment withInstanceId(String instanceId)
The ID of the instance.
If the volume is attached to a Fargate task, this parameter returns null
.
instanceId
- The ID of the instance.
If the volume is attached to a Fargate task, this parameter returns null
.
public void setState(String state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public String getState()
The attachment state of the volume.
VolumeAttachmentState
public VolumeAttachment withState(String state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public void setState(VolumeAttachmentState state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public VolumeAttachment withState(VolumeAttachmentState state)
The attachment state of the volume.
state
- The attachment state of the volume.VolumeAttachmentState
public void setVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public String getVolumeId()
The ID of the volume.
public VolumeAttachment withVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public Boolean getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public VolumeAttachment withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public Boolean isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public void setAssociatedResource(String associatedResource)
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
associatedResource
- The ARN of the Amazon ECS or Fargate task to which the volume is attached.public String getAssociatedResource()
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
public VolumeAttachment withAssociatedResource(String associatedResource)
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
associatedResource
- The ARN of the Amazon ECS or Fargate task to which the volume is attached.public void setInstanceOwningService(String instanceOwningService)
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
instanceOwningService
- The service principal of Amazon Web Services service that owns the underlying instance to which the volume
is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
public String getInstanceOwningService()
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
This parameter is returned only for volumes that are attached to Fargate tasks.
public VolumeAttachment withInstanceOwningService(String instanceOwningService)
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
instanceOwningService
- The service principal of Amazon Web Services service that owns the underlying instance to which the volume
is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
public String toString()
toString
in class Object
Object.toString()
public VolumeAttachment clone()