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