@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EbsInstanceBlockDevice extends Object implements Serializable, Cloneable
Describes a parameter used to set up an EBS volume in a block device mapping.
Constructor and Description |
---|
EbsInstanceBlockDevice() |
Modifier and Type | Method and Description |
---|---|
EbsInstanceBlockDevice |
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 volume is deleted on instance termination.
|
String |
getStatus()
The attachment state.
|
String |
getVolumeId()
The ID of the EBS volume.
|
String |
getVolumeOwnerId()
The ID of the Amazon Web Services account that owns the volume.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Indicates whether the 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 volume is deleted on instance termination.
|
void |
setStatus(AttachmentStatus status)
The attachment state.
|
void |
setStatus(String status)
The attachment state.
|
void |
setVolumeId(String volumeId)
The ID of the EBS volume.
|
void |
setVolumeOwnerId(String volumeOwnerId)
The ID of the Amazon Web Services account that owns the volume.
|
String |
toString()
Returns a string representation of this object.
|
EbsInstanceBlockDevice |
withAssociatedResource(String associatedResource)
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
|
EbsInstanceBlockDevice |
withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
|
EbsInstanceBlockDevice |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
EbsInstanceBlockDevice |
withStatus(AttachmentStatus status)
The attachment state.
|
EbsInstanceBlockDevice |
withStatus(String status)
The attachment state.
|
EbsInstanceBlockDevice |
withVolumeId(String volumeId)
The ID of the EBS volume.
|
EbsInstanceBlockDevice |
withVolumeOwnerId(String volumeOwnerId)
The ID of the Amazon Web Services account that owns 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 EbsInstanceBlockDevice withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.public Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
public EbsInstanceBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.public Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
public void setStatus(String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public String getStatus()
The attachment state.
AttachmentStatus
public EbsInstanceBlockDevice withStatus(String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public EbsInstanceBlockDevice withStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setVolumeId(String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.public String getVolumeId()
The ID of the EBS volume.
public EbsInstanceBlockDevice withVolumeId(String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.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 EbsInstanceBlockDevice 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 setVolumeOwnerId(String volumeOwnerId)
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
volumeOwnerId
- The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
public String getVolumeOwnerId()
The ID of the Amazon Web Services account that owns the volume.
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 EbsInstanceBlockDevice withVolumeOwnerId(String volumeOwnerId)
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
volumeOwnerId
- The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
public String toString()
toString
in class Object
Object.toString()
public EbsInstanceBlockDevice clone()
Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.