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 Details

    • 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

      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

      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 is UnauthorizedOperation.

      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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      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)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.