Class CfnEndpointGroup.PortOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.CfnEndpointGroup.PortOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointGroup.PortOverrideProperty>
- Enclosing interface:
CfnEndpointGroup.PortOverrideProperty
@Stability(Stable)
public static final class CfnEndpointGroup.PortOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointGroup.PortOverrideProperty>
A builder for
CfnEndpointGroup.PortOverrideProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.endpointPort
(Number endpointPort) Sets the value ofCfnEndpointGroup.PortOverrideProperty.getEndpointPort()
listenerPort
(Number listenerPort) Sets the value ofCfnEndpointGroup.PortOverrideProperty.getListenerPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointPort
@Stability(Stable) public CfnEndpointGroup.PortOverrideProperty.Builder endpointPort(Number endpointPort) Sets the value ofCfnEndpointGroup.PortOverrideProperty.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
@Stability(Stable) public CfnEndpointGroup.PortOverrideProperty.Builder listenerPort(Number listenerPort) Sets the value ofCfnEndpointGroup.PortOverrideProperty.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<CfnEndpointGroup.PortOverrideProperty>
- Returns:
- a new instance of
CfnEndpointGroup.PortOverrideProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-