Interface AttachVolumeResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AttachVolumeResponse.Builder,,AttachVolumeResponse> Ec2Response.Builder,SdkBuilder<AttachVolumeResponse.Builder,,AttachVolumeResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AttachVolumeResponse
-
Method Summary
Modifier and TypeMethodDescriptionassociatedResource(String associatedResource) The ARN of the Amazon Web Services-managed resource to which the volume is attached.attachTime(Instant attachTime) The time stamp when the attachment initiated.availabilityZone(String availabilityZone) The name of the Availability Zone of the attachment.availabilityZoneId(String availabilityZoneId) The ID of the Availability Zone of the attachment.deleteOnTermination(Boolean deleteOnTermination) Indicates whether the EBS volume is deleted on instance termination.The device name.ebsCardIndex(Integer ebsCardIndex) The index of the EBS card.instanceId(String instanceId) The ID of the instance.instanceOwningService(String instanceOwningService) The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.The attachment state of the volume.state(VolumeAttachmentState state) The attachment state of the volume.A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment.A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment.The ID of the volume.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
deleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
- Parameters:
deleteOnTermination- Indicates whether the EBS volume is deleted on instance termination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedResource
The ARN of the Amazon Web Services-managed resource to which the volume is attached.
- Parameters:
associatedResource- The ARN of the Amazon Web Services-managed resource to which the volume is attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceOwningService
The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.
This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.
- Parameters:
instanceOwningService- The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsCardIndex
The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.
- Parameters:
ebsCardIndex- The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
The name of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's
AvailabilityZone(the active Availability Zone) and the standby Availability Zone in itsMultiAvailabilityZoneConfigurationto determine whether the instance is in the active or the standby Availability Zone.- Parameters:
availabilityZone- The name of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume'sAvailabilityZone(the active Availability Zone) and the standby Availability Zone in itsMultiAvailabilityZoneConfigurationto determine whether the instance is in the active or the standby Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneId
The ID of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's
AvailabilityZoneId(the active Availability Zone) and the standby Availability Zone ID in itsMultiAvailabilityZoneConfigurationto determine whether the instance is in the active or the standby Availability Zone.- Parameters:
availabilityZoneId- The ID of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume'sAvailabilityZoneId(the active Availability Zone) and the standby Availability Zone ID in itsMultiAvailabilityZoneConfigurationto determine whether the instance is in the active or the standby Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trimState
A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's
TrimOnAttachsetting when the volume attaches, and the value doesn't change for the life of the attachment. You can't setTrimStatedirectly. To change it, modifyTrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its ownTrimState. This value isn't returned for unattached volumes.Valid values:
-
enabled: The volume reports TRIM support to the operating system. -
disabled: The volume does not report TRIM support to the operating system.
- Parameters:
trimState- A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume'sTrimOnAttachsetting when the volume attaches, and the value doesn't change for the life of the attachment. You can't setTrimStatedirectly. To change it, modifyTrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its ownTrimState. This value isn't returned for unattached volumes.Valid values:
-
enabled: The volume reports TRIM support to the operating system. -
disabled: The volume does not report TRIM support to the operating system.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
trimState
A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's
TrimOnAttachsetting when the volume attaches, and the value doesn't change for the life of the attachment. You can't setTrimStatedirectly. To change it, modifyTrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its ownTrimState. This value isn't returned for unattached volumes.Valid values:
-
enabled: The volume reports TRIM support to the operating system. -
disabled: The volume does not report TRIM support to the operating system.
- Parameters:
trimState- A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume'sTrimOnAttachsetting when the volume attaches, and the value doesn't change for the life of the attachment. You can't setTrimStatedirectly. To change it, modifyTrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its ownTrimState. This value isn't returned for unattached volumes.Valid values:
-
enabled: The volume reports TRIM support to the operating system. -
disabled: The volume does not report TRIM support to the operating system.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
volumeId
The ID of the volume.
- Parameters:
volumeId- The ID of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The ID of the instance.
If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.- Parameters:
instanceId- The ID of the instance.If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
device
The device name.
If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.- Parameters:
device- The device name.If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The attachment state of the volume.
- Parameters:
state- The attachment state of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The attachment state of the volume.
- Parameters:
state- The attachment state of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachTime
The time stamp when the attachment initiated.
- Parameters:
attachTime- The time stamp when the attachment initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-