Interface AwsEc2NetworkAclEntry.Builder

    • Method Detail

      • cidrBlock

        AwsEc2NetworkAclEntry.Builder cidrBlock​(String cidrBlock)

        The IPV4 network range for which to deny or allow access.

        Parameters:
        cidrBlock - The IPV4 network range for which to deny or allow access.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • egress

        AwsEc2NetworkAclEntry.Builder egress​(Boolean egress)

        Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.

        Parameters:
        egress - Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • icmpTypeCode

        AwsEc2NetworkAclEntry.Builder icmpTypeCode​(IcmpTypeCode icmpTypeCode)

        The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.

        Parameters:
        icmpTypeCode - The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6CidrBlock

        AwsEc2NetworkAclEntry.Builder ipv6CidrBlock​(String ipv6CidrBlock)

        The IPV6 network range for which to deny or allow access.

        Parameters:
        ipv6CidrBlock - The IPV6 network range for which to deny or allow access.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • portRange

        AwsEc2NetworkAclEntry.Builder portRange​(PortRangeFromTo portRange)

        For TCP or UDP protocols, the range of ports that the rule applies to.

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

        AwsEc2NetworkAclEntry.Builder protocol​(String protocol)

        The protocol that the rule applies to. To deny or allow access to all protocols, use the value -1.

        Parameters:
        protocol - The protocol that the rule applies to. To deny or allow access to all protocols, use the value -1.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ruleAction

        AwsEc2NetworkAclEntry.Builder ruleAction​(String ruleAction)

        Whether the rule is used to allow access or deny access.

        Parameters:
        ruleAction - Whether the rule is used to allow access or deny access.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ruleNumber

        AwsEc2NetworkAclEntry.Builder ruleNumber​(Integer ruleNumber)

        The rule number. The rules are processed in order by their number.

        Parameters:
        ruleNumber - The rule number. The rules are processed in order by their number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.