Class CfnNetworkInsightsPath.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInsightsPath.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInsightsPath>
Enclosing class:
CfnNetworkInsightsPath

@Stability(Stable) public static final class CfnNetworkInsightsPath.Builder extends Object implements software.amazon.jsii.Builder<CfnNetworkInsightsPath>
A fluent builder for CfnNetworkInsightsPath.
  • Method Details

    • create

      @Stability(Stable) public static CfnNetworkInsightsPath.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnNetworkInsightsPath.Builder.
    • protocol

      @Stability(Stable) public CfnNetworkInsightsPath.Builder protocol(String protocol)
      The protocol.

      Parameters:
      protocol - The protocol. This parameter is required.
      Returns:
      this
    • source

      @Stability(Stable) public CfnNetworkInsightsPath.Builder source(String source)
      The ID or ARN of the source.

      If the resource is in another account, you must specify an ARN.

      Parameters:
      source - The ID or ARN of the source. This parameter is required.
      Returns:
      this
    • destination

      @Stability(Stable) public CfnNetworkInsightsPath.Builder destination(String destination)
      The ID or ARN of the destination.

      If the resource is in another account, you must specify an ARN.

      Parameters:
      destination - The ID or ARN of the destination. This parameter is required.
      Returns:
      this
    • destinationIp

      @Stability(Stable) public CfnNetworkInsightsPath.Builder destinationIp(String destinationIp)
      The IP address of the destination.

      Parameters:
      destinationIp - The IP address of the destination. This parameter is required.
      Returns:
      this
    • destinationPort

      @Stability(Stable) public CfnNetworkInsightsPath.Builder destinationPort(Number destinationPort)
      The destination port.

      Parameters:
      destinationPort - The destination port. This parameter is required.
      Returns:
      this
    • filterAtDestination

      @Stability(Stable) public CfnNetworkInsightsPath.Builder filterAtDestination(IResolvable 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.

      Parameters:
      filterAtDestination - Scopes the analysis to network paths that match specific filters at the destination. This parameter is required.
      Returns:
      this
    • filterAtDestination

      @Stability(Stable) public CfnNetworkInsightsPath.Builder filterAtDestination(CfnNetworkInsightsPath.PathFilterProperty 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.

      Parameters:
      filterAtDestination - Scopes the analysis to network paths that match specific filters at the destination. This parameter is required.
      Returns:
      this
    • filterAtSource

      @Stability(Stable) public CfnNetworkInsightsPath.Builder filterAtSource(IResolvable 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.

      Parameters:
      filterAtSource - Scopes the analysis to network paths that match specific filters at the source. This parameter is required.
      Returns:
      this
    • filterAtSource

      @Stability(Stable) public CfnNetworkInsightsPath.Builder filterAtSource(CfnNetworkInsightsPath.PathFilterProperty 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.

      Parameters:
      filterAtSource - Scopes the analysis to network paths that match specific filters at the source. This parameter is required.
      Returns:
      this
    • sourceIp

      @Stability(Stable) public CfnNetworkInsightsPath.Builder sourceIp(String sourceIp)
      The IP address of the source.

      Parameters:
      sourceIp - The IP address of the source. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnNetworkInsightsPath.Builder tags(List<? extends CfnTag> tags)
      The tags to add to the path.

      Parameters:
      tags - The tags to add to the path. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnNetworkInsightsPath build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnNetworkInsightsPath>
      Returns:
      a newly built instance of CfnNetworkInsightsPath.