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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PortMapping.BuilderacceleratorPort(Integer acceleratorPort)The accelerator port.default PortMapping.BuilderdestinationSocketAddress(Consumer<SocketAddress.Builder> destinationSocketAddress)The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.PortMapping.BuilderdestinationSocketAddress(SocketAddress destinationSocketAddress)The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.PortMapping.BuilderdestinationTrafficState(String destinationTrafficState)Indicates whether or not a port mapping destination can receive traffic.PortMapping.BuilderdestinationTrafficState(CustomRoutingDestinationTrafficState destinationTrafficState)Indicates whether or not a port mapping destination can receive traffic.PortMapping.BuilderendpointGroupArn(String endpointGroupArn)The Amazon Resource Name (ARN) of the endpoint group.PortMapping.BuilderendpointId(String endpointId)The IP address of the VPC subnet (the subnet ID).PortMapping.Builderprotocols(Collection<CustomRoutingProtocol> protocols)The protocols supported by the endpoint group.PortMapping.Builderprotocols(CustomRoutingProtocol... protocols)The protocols supported by the endpoint group.PortMapping.BuilderprotocolsWithStrings(String... protocols)The protocols supported by the endpoint group.PortMapping.BuilderprotocolsWithStrings(Collection<String> protocols)The protocols supported by the endpoint group.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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 theSocketAddress.Builderavoiding the need to create one manually viaSocketAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinationSocketAddress(SocketAddress).- Parameters:
destinationSocketAddress- a consumer that will call methods onSocketAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
destinationSocketAddress(SocketAddress)
-
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
PortMapping.Builder protocols(Collection<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.
-
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:
CustomRoutingDestinationTrafficState,CustomRoutingDestinationTrafficState
-
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:
CustomRoutingDestinationTrafficState,CustomRoutingDestinationTrafficState
-
-