Class CfnNetworkInsightsPathProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsPathProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsPathProps>
- Enclosing interface:
CfnNetworkInsightsPathProps
@Stability(Stable)
public static final class CfnNetworkInsightsPathProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInsightsPathProps>
A builder for
CfnNetworkInsightsPathProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destination
(String destination) Sets the value ofCfnNetworkInsightsPathProps.getDestination()
destinationIp
(String destinationIp) Sets the value ofCfnNetworkInsightsPathProps.getDestinationIp()
destinationPort
(Number destinationPort) Sets the value ofCfnNetworkInsightsPathProps.getDestinationPort()
filterAtDestination
(IResolvable filterAtDestination) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtDestination()
filterAtDestination
(CfnNetworkInsightsPath.PathFilterProperty filterAtDestination) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtDestination()
filterAtSource
(IResolvable filterAtSource) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtSource()
filterAtSource
(CfnNetworkInsightsPath.PathFilterProperty filterAtSource) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtSource()
Sets the value ofCfnNetworkInsightsPathProps.getProtocol()
Sets the value ofCfnNetworkInsightsPathProps.getSource()
Sets the value ofCfnNetworkInsightsPathProps.getSourceIp()
Sets the value ofCfnNetworkInsightsPathProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protocol
Sets the value ofCfnNetworkInsightsPathProps.getProtocol()
- Parameters:
protocol
- The protocol. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnNetworkInsightsPathProps.getSource()
- Parameters:
source
- The ID or ARN of the source. This parameter is required. If the resource is in another account, you must specify an ARN.- Returns:
this
-
destination
Sets the value ofCfnNetworkInsightsPathProps.getDestination()
- Parameters:
destination
- The ID or ARN of the destination. If the resource is in another account, you must specify an ARN.- Returns:
this
-
destinationIp
Sets the value ofCfnNetworkInsightsPathProps.getDestinationIp()
- Parameters:
destinationIp
- The IP address of the destination.- Returns:
this
-
destinationPort
@Stability(Stable) public CfnNetworkInsightsPathProps.Builder destinationPort(Number destinationPort) Sets the value ofCfnNetworkInsightsPathProps.getDestinationPort()
- Parameters:
destinationPort
- The destination port.- Returns:
this
-
filterAtDestination
@Stability(Stable) public CfnNetworkInsightsPathProps.Builder filterAtDestination(IResolvable filterAtDestination) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtDestination()
- Parameters:
filterAtDestination
- Scopes the analysis to network paths that match specific filters at the destination. If you specify this parameter, you can't specify the parameter for the destination IP address.- Returns:
this
-
filterAtDestination
@Stability(Stable) public CfnNetworkInsightsPathProps.Builder filterAtDestination(CfnNetworkInsightsPath.PathFilterProperty filterAtDestination) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtDestination()
- Parameters:
filterAtDestination
- Scopes the analysis to network paths that match specific filters at the destination. If you specify this parameter, you can't specify the parameter for the destination IP address.- Returns:
this
-
filterAtSource
@Stability(Stable) public CfnNetworkInsightsPathProps.Builder filterAtSource(IResolvable filterAtSource) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtSource()
- Parameters:
filterAtSource
- Scopes the analysis to network paths that match specific filters at the source. If you specify this parameter, you can't specify the parameters for the source IP address or the destination port.- Returns:
this
-
filterAtSource
@Stability(Stable) public CfnNetworkInsightsPathProps.Builder filterAtSource(CfnNetworkInsightsPath.PathFilterProperty filterAtSource) Sets the value ofCfnNetworkInsightsPathProps.getFilterAtSource()
- Parameters:
filterAtSource
- Scopes the analysis to network paths that match specific filters at the source. If you specify this parameter, you can't specify the parameters for the source IP address or the destination port.- Returns:
this
-
sourceIp
Sets the value ofCfnNetworkInsightsPathProps.getSourceIp()
- Parameters:
sourceIp
- The IP address of the source.- Returns:
this
-
tags
Sets the value ofCfnNetworkInsightsPathProps.getTags()
- Parameters:
tags
- The tags to add to the path.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkInsightsPathProps>
- Returns:
- a new instance of
CfnNetworkInsightsPathProps
- Throws:
NullPointerException
- if any required attribute was not provided
-