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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IPSetDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPSetDescriptor
clone()
boolean
equals(Object obj)
String
getType()
SpecifyIPV4
.String
getValue()
Specify an IPv4 address by using CIDR notation.int
hashCode()
void
setType(IPSetDescriptorType type)
SpecifyIPV4
.void
setType(String type)
SpecifyIPV4
.void
setValue(String value)
Specify an IPv4 address by using CIDR notation.String
toString()
Returns a string representation of this object; useful for testing and debugging.IPSetDescriptor
withType(IPSetDescriptorType type)
SpecifyIPV4
.IPSetDescriptor
withType(String type)
SpecifyIPV4
.IPSetDescriptor
withValue(String value)
Specify an IPv4 address by using CIDR notation.
-
-
-
Method Detail
-
setType
public void setType(String type)
Specify
IPV4
.- Parameters:
type
- SpecifyIPV4
.- See Also:
IPSetDescriptorType
-
getType
public String getType()
Specify
IPV4
.- Returns:
- Specify
IPV4
. - See Also:
IPSetDescriptorType
-
withType
public IPSetDescriptor withType(String type)
Specify
IPV4
.- Parameters:
type
- SpecifyIPV4
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IPSetDescriptorType
-
setType
public void setType(IPSetDescriptorType type)
Specify
IPV4
.- Parameters:
type
- SpecifyIPV4
.- See Also:
IPSetDescriptorType
-
withType
public IPSetDescriptor withType(IPSetDescriptorType type)
Specify
IPV4
.- Parameters:
type
- SpecifyIPV4
.- 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.
- To configure AWS WAF to allow, block, or count requests that
originated from the IP address 192.0.2.44, specify
- To configure AWS WAF to allow, block, or count requests that
originated from the IP address 192.0.2.44, specify
-
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.
- To configure AWS WAF to allow, block, or count requests that
originated from the IP address 192.0.2.44, specify
- To configure AWS WAF to allow, block, or count requests that
originated from the IP address 192.0.2.44, specify
-
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.
- To configure AWS WAF to allow, block, or count requests that
originated from the IP address 192.0.2.44, specify
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- To configure AWS WAF to allow, block, or count requests that
originated from the IP address 192.0.2.44, specify
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IPSetDescriptor clone()
-
-