Interface AnalysisTransitGatewayPolicyTableEntry.Builder

  • Method Details

    • ruleNumber

      The rule number for the policy table entry. Entries are evaluated in ascending order of rule number.

      Parameters:
      ruleNumber - The rule number for the policy table entry. Entries are evaluated in ascending order of rule number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      The protocol number. A value of -1 means that the entry matches all protocols.

      Parameters:
      protocol - The protocol number. A value of -1 means that the entry matches all protocols.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCidr

      The source CIDR block. If this value is not present, the entry matches any source address.

      Parameters:
      sourceCidr - The source CIDR block. If this value is not present, the entry matches any source address.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationCidr

      AnalysisTransitGatewayPolicyTableEntry.Builder destinationCidr(String destinationCidr)

      The destination CIDR block. If this value is not present, the entry matches any destination address.

      Parameters:
      destinationCidr - The destination CIDR block. If this value is not present, the entry matches any destination address.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePortRange

      The source port range. If this value is not present, the entry matches any source port.

      Parameters:
      sourcePortRange - The source port range. If this value is not present, the entry matches any source port.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePortRange

      The source port range. If this value is not present, the entry matches any source port.

      This is a convenience method that creates an instance of the PortRange.Builder avoiding the need to create one manually via PortRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourcePortRange(PortRange).

      Parameters:
      sourcePortRange - a consumer that will call methods on PortRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destinationPortRange

      AnalysisTransitGatewayPolicyTableEntry.Builder destinationPortRange(PortRange destinationPortRange)

      The destination port range. If this value is not present, the entry matches any destination port.

      Parameters:
      destinationPortRange - The destination port range. If this value is not present, the entry matches any destination port.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationPortRange

      default AnalysisTransitGatewayPolicyTableEntry.Builder destinationPortRange(Consumer<PortRange.Builder> destinationPortRange)

      The destination port range. If this value is not present, the entry matches any destination port.

      This is a convenience method that creates an instance of the PortRange.Builder avoiding the need to create one manually via PortRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destinationPortRange(PortRange).

      Parameters:
      destinationPortRange - a consumer that will call methods on PortRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetRouteTableId

      AnalysisTransitGatewayPolicyTableEntry.Builder targetRouteTableId(String targetRouteTableId)

      The ID of the transit gateway route table to which the entry routes matching traffic.

      Parameters:
      targetRouteTableId - The ID of the transit gateway route table to which the entry routes matching traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.