Class IPSetDescriptor

    • Constructor Detail

      • IPSetDescriptor

        public IPSetDescriptor()
    • Method Detail

      • setType

        public void setType​(String type)

        Specify IPV4.

        Parameters:
        type - Specify IPV4.
        See Also:
        IPSetDescriptorType
      • withType

        public IPSetDescriptor withType​(String type)

        Specify IPV4.

        Parameters:
        type - Specify IPV4.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IPSetDescriptorType
      • setValue

        public void setValue​(String value)

        Specify an IPv4 address by using CIDR notation. For example:

        • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
        • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        AWS WAF supports only /8, /16, /24, and /32 IP addresses.

        For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

        Parameters:
        value - Specify an IPv4 address by using CIDR notation. For example:

        • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
        • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        AWS WAF supports only /8, /16, /24, and /32 IP addresses.

        For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

      • getValue

        public String getValue()

        Specify an IPv4 address by using CIDR notation. For example:

        • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
        • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        AWS WAF supports only /8, /16, /24, and /32 IP addresses.

        For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

        Returns:
        Specify an IPv4 address by using CIDR notation. For example:

        • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
        • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        AWS WAF supports only /8, /16, /24, and /32 IP addresses.

        For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

      • withValue

        public IPSetDescriptor withValue​(String value)

        Specify an IPv4 address by using CIDR notation. For example:

        • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
        • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        AWS WAF supports only /8, /16, /24, and /32 IP addresses.

        For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

        Parameters:
        value - Specify an IPv4 address by using CIDR notation. For example:

        • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
        • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        AWS WAF supports only /8, /16, /24, and /32 IP addresses.

        For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object