Interface TransitGatewayRequestPolicyRule.Builder

  • Method Details

    • sourceCidrBlock

      TransitGatewayRequestPolicyRule.Builder sourceCidrBlock(String sourceCidrBlock)

      The source CIDR block for the policy rule.

      Parameters:
      sourceCidrBlock - The source CIDR block for the policy rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePortRange

      TransitGatewayRequestPolicyRule.Builder sourcePortRange(String sourcePortRange)

      The source port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.

      Parameters:
      sourcePortRange - The source port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationCidrBlock

      TransitGatewayRequestPolicyRule.Builder destinationCidrBlock(String destinationCidrBlock)

      The destination CIDR block for the policy rule.

      Parameters:
      destinationCidrBlock - The destination CIDR block for the policy rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationPortRange

      TransitGatewayRequestPolicyRule.Builder destinationPortRange(String destinationPortRange)

      The destination port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.

      Parameters:
      destinationPortRange - The destination port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      The protocol for the policy rule. Valid values are 1 (ICMP), 6 (TCP), 17 (UDP), 47 (GRE), or * for all protocols.

      Parameters:
      protocol - The protocol for the policy rule. Valid values are 1 (ICMP), 6 (TCP), 17 (UDP), 47 (GRE), or * for all protocols.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metaData

      The metadata key-value pair for the policy rule.

      Parameters:
      metaData - The metadata key-value pair for the policy rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metaData

      The metadata key-value pair for the policy rule.

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

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

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