Interface TransitGatewayPolicyRule.Builder

  • Method Details

    • sourceCidrBlock

      TransitGatewayPolicyRule.Builder sourceCidrBlock(String sourceCidrBlock)

      The source CIDR block for the transit gateway policy rule.

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

      TransitGatewayPolicyRule.Builder sourcePortRange(String sourcePortRange)

      The port range for the transit gateway policy rule. Currently this is set to * (all).

      Parameters:
      sourcePortRange - The port range for the transit gateway policy rule. Currently this is set to * (all).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationCidrBlock

      TransitGatewayPolicyRule.Builder destinationCidrBlock(String destinationCidrBlock)

      The destination CIDR block for the transit gateway policy rule.

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

      TransitGatewayPolicyRule.Builder destinationPortRange(String destinationPortRange)

      The port range for the transit gateway policy rule. Currently this is set to * (all).

      Parameters:
      destinationPortRange - The port range for the transit gateway policy rule. Currently this is set to * (all).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      The protocol used by the transit gateway policy rule.

      Parameters:
      protocol - The protocol used by the transit gateway policy rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metaData

      The meta data tags used for the transit gateway policy rule.

      Parameters:
      metaData - The meta data tags used for the transit gateway policy rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metaData

      The meta data tags used for the transit gateway policy rule.

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

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

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