@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2VolumeAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2VolumeAttachment.Builder,AwsEc2VolumeAttachment>
An attachment to an Amazon EC2 volume.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2VolumeAttachment.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
attachTime()
The datetime when the attachment initiated.
|
static AwsEc2VolumeAttachment.Builder |
builder() |
Boolean |
deleteOnTermination()
Whether the EBS volume is deleted when the EC2 instance is terminated.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The identifier of the EC2 instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEc2VolumeAttachment.Builder> |
serializableBuilderClass() |
String |
status()
The attachment state of the volume.
|
AwsEc2VolumeAttachment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String attachTime()
The datetime when the attachment initiated.
public final Boolean deleteOnTermination()
Whether the EBS volume is deleted when the EC2 instance is terminated.
public final String instanceId()
The identifier of the EC2 instance.
public final String status()
The attachment state of the volume. Valid values are as follows:
attaching
attached
busy
detaching
detached
attaching
attached
busy
detaching
detached
public AwsEc2VolumeAttachment.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2VolumeAttachment.Builder,AwsEc2VolumeAttachment>public static AwsEc2VolumeAttachment.Builder builder()
public static Class<? extends AwsEc2VolumeAttachment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.