Interface AssociateAddressRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AssociateAddressRequest.Builder,
,AssociateAddressRequest> Ec2Request.Builder
,SdkBuilder<AssociateAddressRequest.Builder,
,AssociateAddressRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AssociateAddressRequest
-
Method Summary
Modifier and TypeMethodDescriptionallocationId
(String allocationId) The allocation ID.allowReassociation
(Boolean allowReassociation) Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.instanceId
(String instanceId) The ID of the instance.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.privateIpAddress
(String privateIpAddress) The primary or secondary private IP address to associate with the Elastic IP address.Deprecated.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
-
allocationId
The allocation ID. This is required.
- Parameters:
allocationId
- The allocation ID. This is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.
- Parameters:
instanceId
- The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIp
Deprecated.
- Parameters:
publicIp
- Deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowReassociation
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
- Parameters:
allowReassociation
- Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.- 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.
-
networkInterfaceId
The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
You can specify either the instance ID or the network interface ID, but not both.
- Parameters:
networkInterfaceId
- The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.You can specify either the instance ID or the network interface ID, but not both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
- Parameters:
privateIpAddress
- The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AssociateAddressRequest.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
AssociateAddressRequest.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.
-