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