Interface TransitGatewayMeteringPolicyRule.Builder

  • Method Details

    • sourceTransitGatewayAttachmentId

      TransitGatewayMeteringPolicyRule.Builder sourceTransitGatewayAttachmentId(String sourceTransitGatewayAttachmentId)

      The ID of the source transit gateway attachment.

      Parameters:
      sourceTransitGatewayAttachmentId - The ID of the source transit gateway attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceTransitGatewayAttachmentType

      TransitGatewayMeteringPolicyRule.Builder sourceTransitGatewayAttachmentType(String sourceTransitGatewayAttachmentType)

      The type of the source transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

      Parameters:
      sourceTransitGatewayAttachmentType - The type of the source transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceTransitGatewayAttachmentType

      TransitGatewayMeteringPolicyRule.Builder sourceTransitGatewayAttachmentType(TransitGatewayAttachmentResourceType sourceTransitGatewayAttachmentType)

      The type of the source transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

      Parameters:
      sourceTransitGatewayAttachmentType - The type of the source transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceCidrBlock

      TransitGatewayMeteringPolicyRule.Builder sourceCidrBlock(String sourceCidrBlock)

      The source CIDR block for the rule.

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

      TransitGatewayMeteringPolicyRule.Builder sourcePortRange(String sourcePortRange)

      The source port range for the rule.

      Parameters:
      sourcePortRange - The source port range for the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationTransitGatewayAttachmentId

      TransitGatewayMeteringPolicyRule.Builder destinationTransitGatewayAttachmentId(String destinationTransitGatewayAttachmentId)

      The ID of the destination transit gateway attachment.

      Parameters:
      destinationTransitGatewayAttachmentId - The ID of the destination transit gateway attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationTransitGatewayAttachmentType

      TransitGatewayMeteringPolicyRule.Builder destinationTransitGatewayAttachmentType(String destinationTransitGatewayAttachmentType)

      The type of the destination transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

      Parameters:
      destinationTransitGatewayAttachmentType - The type of the destination transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destinationTransitGatewayAttachmentType

      TransitGatewayMeteringPolicyRule.Builder destinationTransitGatewayAttachmentType(TransitGatewayAttachmentResourceType destinationTransitGatewayAttachmentType)

      The type of the destination transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

      Parameters:
      destinationTransitGatewayAttachmentType - The type of the destination transit gateway attachment. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destinationCidrBlock

      TransitGatewayMeteringPolicyRule.Builder destinationCidrBlock(String destinationCidrBlock)

      The destination CIDR block for the rule.

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

      TransitGatewayMeteringPolicyRule.Builder destinationPortRange(String destinationPortRange)

      The destination port range for the rule.

      Parameters:
      destinationPortRange - The destination port range for the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      The protocol for the rule (1, 6, 17, etc.).

      Parameters:
      protocol - The protocol for the rule (1, 6, 17, etc.).
      Returns:
      Returns a reference to this object so that method calls can be chained together.