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