Interface PortMapping.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PortMapping.Builder,PortMapping>, SdkBuilder<PortMapping.Builder,PortMapping>, SdkPojo
Enclosing class:
PortMapping

public static interface PortMapping.Builder extends SdkPojo, CopyableBuilder<PortMapping.Builder,PortMapping>
  • Method Details

    • acceleratorPort

      PortMapping.Builder acceleratorPort(Integer acceleratorPort)

      The accelerator port.

      Parameters:
      acceleratorPort - The accelerator port.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endpointGroupArn

      PortMapping.Builder endpointGroupArn(String endpointGroupArn)

      The Amazon Resource Name (ARN) of the endpoint group.

      Parameters:
      endpointGroupArn - The Amazon Resource Name (ARN) of the endpoint group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endpointId

      PortMapping.Builder endpointId(String endpointId)

      The IP address of the VPC subnet (the subnet ID).

      Parameters:
      endpointId - The IP address of the VPC subnet (the subnet ID).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationSocketAddress

      PortMapping.Builder destinationSocketAddress(SocketAddress destinationSocketAddress)

      The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.

      Parameters:
      destinationSocketAddress - The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationSocketAddress

      default PortMapping.Builder destinationSocketAddress(Consumer<SocketAddress.Builder> destinationSocketAddress)

      The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.

      This is a convenience method that creates an instance of the SocketAddress.Builder avoiding the need to create one manually via SocketAddress.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destinationSocketAddress(SocketAddress).

      Parameters:
      destinationSocketAddress - a consumer that will call methods on SocketAddress.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocolsWithStrings

      PortMapping.Builder protocolsWithStrings(Collection<String> protocols)

      The protocols supported by the endpoint group.

      Parameters:
      protocols - The protocols supported by the endpoint group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocolsWithStrings

      PortMapping.Builder protocolsWithStrings(String... protocols)

      The protocols supported by the endpoint group.

      Parameters:
      protocols - The protocols supported by the endpoint group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocols

      The protocols supported by the endpoint group.

      Parameters:
      protocols - The protocols supported by the endpoint group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocols

      PortMapping.Builder protocols(CustomRoutingProtocol... protocols)

      The protocols supported by the endpoint group.

      Parameters:
      protocols - The protocols supported by the endpoint group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationTrafficState

      PortMapping.Builder destinationTrafficState(String destinationTrafficState)

      Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.

      Parameters:
      destinationTrafficState - Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destinationTrafficState

      PortMapping.Builder destinationTrafficState(CustomRoutingDestinationTrafficState destinationTrafficState)

      Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.

      Parameters:
      destinationTrafficState - Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: