Interface AssociateAddressRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>,Ec2Request.Builder,SdkBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- AssociateAddressRequest
public static interface AssociateAddressRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssociateAddressRequest.BuilderallocationId(String allocationId)The allocation ID.AssociateAddressRequest.BuilderallowReassociation(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.AssociateAddressRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.AssociateAddressRequest.BuilderinstanceId(String instanceId)The ID of the instance.AssociateAddressRequest.BuildernetworkInterfaceId(String networkInterfaceId)The ID of the network interface.AssociateAddressRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AssociateAddressRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AssociateAddressRequest.BuilderprivateIpAddress(String privateIpAddress)The primary or secondary private IP address to associate with the Elastic IP address.AssociateAddressRequest.BuilderpublicIp(String publicIp)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 Detail
-
allocationId
AssociateAddressRequest.Builder allocationId(String 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
AssociateAddressRequest.Builder instanceId(String 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
AssociateAddressRequest.Builder publicIp(String publicIp)
Deprecated.
- Parameters:
publicIp- Deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowReassociation
AssociateAddressRequest.Builder 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.
- 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
AssociateAddressRequest.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.
-
networkInterfaceId
AssociateAddressRequest.Builder networkInterfaceId(String 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
AssociateAddressRequest.Builder privateIpAddress(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AssociateAddressRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-