Class CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty>
- Enclosing interface:
CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty
@Stability(Stable)
public static final class CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.getFromPort()
Sets the value ofCfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
@Stability(Stable) public CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.Builder fromPort(Number fromPort) Sets the value ofCfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.getFromPort()
- Parameters:
fromPort
- The start of the Traffic Mirror port range. This parameter is required. This applies to the TCP and UDP protocols.- Returns:
this
-
toPort
@Stability(Stable) public CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.Builder toPort(Number toPort) Sets the value ofCfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.getToPort()
- Parameters:
toPort
- The end of the Traffic Mirror port range. This parameter is required. This applies to the TCP and UDP protocols.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty>
- Returns:
- a new instance of
CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-