Interface AttachVolumeRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AttachVolumeRequest.Builder,AttachVolumeRequest>
,Ec2Request.Builder
,SdkBuilder<AttachVolumeRequest.Builder,AttachVolumeRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- AttachVolumeRequest
public static interface AttachVolumeRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<AttachVolumeRequest.Builder,AttachVolumeRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachVolumeRequest.Builder
device(String device)
The device name (for example,/dev/sdh
orxvdh
).AttachVolumeRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.AttachVolumeRequest.Builder
instanceId(String instanceId)
The ID of the instance.AttachVolumeRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AttachVolumeRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AttachVolumeRequest.Builder
volumeId(String volumeId)
The ID of the EBS volume.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
device
AttachVolumeRequest.Builder device(String device)
The device name (for example,
/dev/sdh
orxvdh
).- Parameters:
device
- The device name (for example,/dev/sdh
orxvdh
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
AttachVolumeRequest.Builder instanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeId
AttachVolumeRequest.Builder volumeId(String volumeId)
The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
- Parameters:
volumeId
- The ID of the EBS volume. The volume and instance must be within the same Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
AttachVolumeRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AttachVolumeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
AttachVolumeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-