Class AwsEc2VolumeAttachment
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsEc2VolumeAttachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsEc2VolumeAttachment.Builder,AwsEc2VolumeAttachment>
@Generated("software.amazon.awssdk:codegen") public final class AwsEc2VolumeAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2VolumeAttachment.Builder,AwsEc2VolumeAttachment>
An attachment to an Amazon EC2 volume.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsEc2VolumeAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringattachTime()The datetime when the attachment initiated.static AwsEc2VolumeAttachment.Builderbuilder()BooleandeleteOnTermination()Whether the EBS volume is deleted when the EC2 instance is terminated.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The identifier of the EC2 instance.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsEc2VolumeAttachment.Builder>serializableBuilderClass()Stringstatus()The attachment state of the volume.AwsEc2VolumeAttachment.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
attachTime
public final String attachTime()
The datetime when the attachment initiated.
- Returns:
- The datetime when the attachment initiated.
-
deleteOnTermination
public final Boolean deleteOnTermination()
Whether the EBS volume is deleted when the EC2 instance is terminated.
- Returns:
- Whether the EBS volume is deleted when the EC2 instance is terminated.
-
instanceId
public final String instanceId()
The identifier of the EC2 instance.
- Returns:
- The identifier of the EC2 instance.
-
status
public final String status()
The attachment state of the volume. Valid values are as follows:
-
attaching -
attached -
busy -
detaching -
detached
- Returns:
- The attachment state of the volume. Valid values are as follows:
-
attaching -
attached -
busy -
detaching -
detached
-
-
-
toBuilder
public AwsEc2VolumeAttachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsEc2VolumeAttachment.Builder,AwsEc2VolumeAttachment>
-
builder
public static AwsEc2VolumeAttachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsEc2VolumeAttachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-