Interface AttachNetworkInterfaceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AttachNetworkInterfaceRequest.Builder,
,AttachNetworkInterfaceRequest> Ec2Request.Builder
,SdkBuilder<AttachNetworkInterfaceRequest.Builder,
,AttachNetworkInterfaceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AttachNetworkInterfaceRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeviceIndex
(Integer deviceIndex) The index of the device for the network interface attachment.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.enaSrdSpecification
(Consumer<EnaSrdSpecification.Builder> enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.enaSrdSpecification
(EnaSrdSpecification enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.instanceId
(String instanceId) The ID of the instance.networkCardIndex
(Integer networkCardIndex) The index of the network card.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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 Details
-
deviceIndex
The index of the device for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device for the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
networkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkCardIndex
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
- Parameters:
networkCardIndex
- The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
Configures ENA Express for the network interface that this action attaches to the instance.
- Parameters:
enaSrdSpecification
- Configures ENA Express for the network interface that this action attaches to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
default AttachNetworkInterfaceRequest.Builder enaSrdSpecification(Consumer<EnaSrdSpecification.Builder> enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.
This is a convenience method that creates an instance of theEnaSrdSpecification.Builder
avoiding the need to create one manually viaEnaSrdSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenaSrdSpecification(EnaSrdSpecification)
.- Parameters:
enaSrdSpecification
- a consumer that will call methods onEnaSrdSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AttachNetworkInterfaceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AttachNetworkInterfaceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-