Class CfnPolicy.PortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fms.CfnPolicy.PortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy.PortRangeProperty>
- Enclosing interface:
CfnPolicy.PortRangeProperty
@Stability(Stable)
public static final class CfnPolicy.PortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy.PortRangeProperty>
A builder for
CfnPolicy.PortRangeProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPolicy.PortRangeProperty.getFrom()
Sets the value ofCfnPolicy.PortRangeProperty.getTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sets the value ofCfnPolicy.PortRangeProperty.getFrom()
- Parameters:
from
- The beginning port number of the range. This parameter is required.- Returns:
this
-
to
Sets the value ofCfnPolicy.PortRangeProperty.getTo()
- Parameters:
to
- The ending port number of the range. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicy.PortRangeProperty>
- Returns:
- a new instance of
CfnPolicy.PortRangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-