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