Class PortOverride.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.PortOverride.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PortOverride>
- Enclosing interface:
PortOverride
@Stability(Stable)
public static final class PortOverride.Builder
extends Object
implements software.amazon.jsii.Builder<PortOverride>
A builder for
PortOverride
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.endpointPort
(Number endpointPort) Sets the value ofPortOverride.getEndpointPort()
listenerPort
(Number listenerPort) Sets the value ofPortOverride.getListenerPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointPort
Sets the value ofPortOverride.getEndpointPort()
- Parameters:
endpointPort
- The endpoint port that you want a listener port to be mapped to. This parameter is required. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.- Returns:
this
-
listenerPort
Sets the value ofPortOverride.getListenerPort()
- Parameters:
listenerPort
- The listener port that you want to map to a specific endpoint port. This parameter is required. This is the port that user traffic arrives to the Global Accelerator on.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PortOverride>
- Returns:
- a new instance of
PortOverride
- Throws:
NullPointerException
- if any required attribute was not provided
-