public static interface AssociateAddressRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>
Modifier and Type | Method and Description |
---|---|
AssociateAddressRequest.Builder |
allocationId(String allocationId)
[EC2-VPC] The allocation ID.
|
AssociateAddressRequest.Builder |
allowReassociation(Boolean allowReassociation)
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already
associated with an instance or network interface to be reassociated with the specified instance or network
interface.
|
AssociateAddressRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
AssociateAddressRequest.Builder |
networkInterfaceId(String networkInterfaceId)
[EC2-VPC] The ID of the network interface.
|
AssociateAddressRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
AssociateAddressRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
AssociateAddressRequest.Builder |
privateIpAddress(String privateIpAddress)
[EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address.
|
AssociateAddressRequest.Builder |
publicIp(String publicIp)
[EC2-Classic] The Elastic IP address to associate with the instance.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
AssociateAddressRequest.Builder allocationId(String allocationId)
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
allocationId
- [EC2-VPC] The allocation ID. This is required for EC2-VPC.AssociateAddressRequest.Builder instanceId(String instanceId)
The ID of the instance. The instance must have exactly one attached network interface. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. For EC2-Classic, you must specify an instance ID and the instance must be in the running state.
instanceId
- The ID of the instance. The instance must have exactly one attached network interface. For EC2-VPC,
you can specify either the instance ID or the network interface ID, but not both. For EC2-Classic, you
must specify an instance ID and the instance must be in the running state.AssociateAddressRequest.Builder publicIp(String publicIp)
[EC2-Classic] The Elastic IP address to associate with the instance. This is required for EC2-Classic.
publicIp
- [EC2-Classic] The Elastic IP address to associate with the instance. This is required for EC2-Classic.AssociateAddressRequest.Builder allowReassociation(Boolean allowReassociation)
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
allowReassociation
- [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is
already associated with an instance or network interface to be reassociated with the specified
instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account,
reassociation is automatic, therefore you can specify false to ensure the operation fails if the
Elastic IP address is already associated with another resource.AssociateAddressRequest.Builder networkInterfaceId(String networkInterfaceId)
[EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both.
networkInterfaceId
- [EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you
must specify a network interface ID.
For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both.
AssociateAddressRequest.Builder privateIpAddress(String privateIpAddress)
[EC2-VPC] 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.
privateIpAddress
- [EC2-VPC] 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.AssociateAddressRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
AssociateAddressRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2022. All rights reserved.