Class CfnListener.PortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.CfnListener.PortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.PortRangeProperty>
- Enclosing interface:
CfnListener.PortRangeProperty
@Stability(Stable)
public static final class CfnListener.PortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.PortRangeProperty>
A builder for
CfnListener.PortRangeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnListener.PortRangeProperty.getFromPort()
Sets the value ofCfnListener.PortRangeProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
Sets the value ofCfnListener.PortRangeProperty.getFromPort()
- Parameters:
fromPort
- The first port in the range of ports, inclusive. This parameter is required.- Returns:
this
-
toPort
Sets the value ofCfnListener.PortRangeProperty.getToPort()
- Parameters:
toPort
- The last port in the range of ports, inclusive. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListener.PortRangeProperty>
- Returns:
- a new instance of
CfnListener.PortRangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-