Interface NatRuleRequest.Builder

  • Method Details

    • ruleNumber

      NatRuleRequest.Builder ruleNumber(Integer ruleNumber)

      The rule number, from 1 to 32766. Each rule number must be unique for the attachment.

      Parameters:
      ruleNumber - The rule number, from 1 to 32766. Each rule number must be unique for the attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchSourceCidr

      NatRuleRequest.Builder matchSourceCidr(String matchSourceCidr)

      The IPv4 CIDR block to match against the source address of traffic from the attachment. The CIDR block can't overlap with the multicast range (224.0.0.0/4).

      Parameters:
      matchSourceCidr - The IPv4 CIDR block to match against the source address of traffic from the attachment. The CIDR block can't overlap with the multicast range (224.0.0.0/4).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • natCidr

      NatRuleRequest.Builder natCidr(String natCidr)

      The IPv4 CIDR block to translate matching source addresses to. The prefix length must be the same as the prefix length of MatchSourceCidr. The CIDR block must be within a private (RFC 1918) or shared address space (RFC 6598) range. The CIDR blocks of the NAT rules of an attachment can't overlap with each other.

      Parameters:
      natCidr - The IPv4 CIDR block to translate matching source addresses to. The prefix length must be the same as the prefix length of MatchSourceCidr. The CIDR block must be within a private (RFC 1918) or shared address space (RFC 6598) range. The CIDR blocks of the NAT rules of an attachment can't overlap with each other.
      Returns:
      Returns a reference to this object so that method calls can be chained together.