Interface NetworkAclEntry.Builder

    • Method Detail

      • cidrBlock

        NetworkAclEntry.Builder cidrBlock​(String cidrBlock)

        The IPv4 network range to allow or deny, in CIDR notation.

        Parameters:
        cidrBlock - The IPv4 network range to allow or deny, in CIDR notation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • egress

        NetworkAclEntry.Builder egress​(Boolean egress)

        Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

        Parameters:
        egress - Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • icmpTypeCode

        NetworkAclEntry.Builder icmpTypeCode​(IcmpTypeCode icmpTypeCode)

        ICMP protocol: The ICMP type and code.

        Parameters:
        icmpTypeCode - ICMP protocol: The ICMP type and code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6CidrBlock

        NetworkAclEntry.Builder ipv6CidrBlock​(String ipv6CidrBlock)

        The IPv6 network range to allow or deny, in CIDR notation.

        Parameters:
        ipv6CidrBlock - The IPv6 network range to allow or deny, in CIDR notation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • portRange

        NetworkAclEntry.Builder portRange​(PortRange portRange)

        TCP or UDP protocols: The range of ports the rule applies to.

        Parameters:
        portRange - TCP or UDP protocols: The range of ports the rule applies to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protocol

        NetworkAclEntry.Builder protocol​(String protocol)

        The protocol number. A value of "-1" means all protocols.

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

        NetworkAclEntry.Builder ruleAction​(String ruleAction)

        Indicates whether to allow or deny the traffic that matches the rule.

        Parameters:
        ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RuleAction, RuleAction
      • ruleAction

        NetworkAclEntry.Builder ruleAction​(RuleAction ruleAction)

        Indicates whether to allow or deny the traffic that matches the rule.

        Parameters:
        ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RuleAction, RuleAction
      • ruleNumber

        NetworkAclEntry.Builder ruleNumber​(Integer ruleNumber)

        The rule number for the entry. ACL entries are processed in ascending order by rule number.

        Parameters:
        ruleNumber - The rule number for the entry. ACL entries are processed in ascending order by rule number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.