Class IPSetDescriptor

java.lang.Object
com.amazonaws.services.waf.model.IPSetDescriptor
All Implemented Interfaces:
Serializable, Cloneable

public class IPSetDescriptor extends Object implements Serializable, Cloneable

Specifies the IP address type (IPV4) and the IP address range (in CIDR format) that web requests originate from.

See Also:
  • Constructor Details

    • IPSetDescriptor

      public IPSetDescriptor()
  • Method Details

    • setType

      public void setType(String type)

      Specify IPV4.

      Parameters:
      type - Specify IPV4.
      See Also:
    • getType

      public String getType()

      Specify IPV4.

      Returns:
      Specify IPV4.
      See Also:
    • 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:
    • setType

      public void setType(IPSetDescriptorType type)

      Specify IPV4.

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

      public IPSetDescriptor withType(IPSetDescriptorType type)

      Specify IPV4.

      Parameters:
      type - Specify IPV4.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public IPSetDescriptor clone()
      Overrides:
      clone in class Object