Class CfnNetworkInsightsPath.PathFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsPath.PathFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsPath.PathFilterProperty>
- Enclosing interface:
CfnNetworkInsightsPath.PathFilterProperty
@Stability(Stable)
public static final class CfnNetworkInsightsPath.PathFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsPath.PathFilterProperty>
A builder for
CfnNetworkInsightsPath.PathFilterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationAddress(String destinationAddress) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getDestinationAddress()destinationPortRange(IResolvable destinationPortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getDestinationPortRange()destinationPortRange(CfnNetworkInsightsPath.FilterPortRangeProperty destinationPortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getDestinationPortRange()sourceAddress(String sourceAddress) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getSourceAddress()sourcePortRange(IResolvable sourcePortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getSourcePortRange()sourcePortRange(CfnNetworkInsightsPath.FilterPortRangeProperty sourcePortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getSourcePortRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationAddress
@Stability(Stable) public CfnNetworkInsightsPath.PathFilterProperty.Builder destinationAddress(String destinationAddress) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getDestinationAddress()- Parameters:
destinationAddress- The destination IPv4 address.- Returns:
this
-
destinationPortRange
@Stability(Stable) public CfnNetworkInsightsPath.PathFilterProperty.Builder destinationPortRange(IResolvable destinationPortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getDestinationPortRange()- Parameters:
destinationPortRange- The destination port range.- Returns:
this
-
destinationPortRange
@Stability(Stable) public CfnNetworkInsightsPath.PathFilterProperty.Builder destinationPortRange(CfnNetworkInsightsPath.FilterPortRangeProperty destinationPortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getDestinationPortRange()- Parameters:
destinationPortRange- The destination port range.- Returns:
this
-
sourceAddress
@Stability(Stable) public CfnNetworkInsightsPath.PathFilterProperty.Builder sourceAddress(String sourceAddress) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getSourceAddress()- Parameters:
sourceAddress- The source IPv4 address.- Returns:
this
-
sourcePortRange
@Stability(Stable) public CfnNetworkInsightsPath.PathFilterProperty.Builder sourcePortRange(IResolvable sourcePortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getSourcePortRange()- Parameters:
sourcePortRange- The source port range.- Returns:
this
-
sourcePortRange
@Stability(Stable) public CfnNetworkInsightsPath.PathFilterProperty.Builder sourcePortRange(CfnNetworkInsightsPath.FilterPortRangeProperty sourcePortRange) Sets the value ofCfnNetworkInsightsPath.PathFilterProperty.getSourcePortRange()- Parameters:
sourcePortRange- The source port range.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsPath.PathFilterProperty>- Returns:
- a new instance of
CfnNetworkInsightsPath.PathFilterProperty - Throws:
NullPointerException- if any required attribute was not provided
-