public class IPSetDescriptor
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specifies the IP address type (IPV4
) and the IP address range
(in CIDR format) that web requests originate from.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
type
Specify
IPV4 . |
private java.lang.String |
value
Specify an IPv4 address by using CIDR notation.
|
Constructor and Description |
---|
IPSetDescriptor() |
Modifier and Type | Method and Description |
---|---|
IPSetDescriptor |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getType()
Specify
IPV4 . |
java.lang.String |
getValue()
Specify an IPv4 address by using CIDR notation.
|
int |
hashCode() |
void |
setType(IPSetDescriptorType type)
Specify
IPV4 . |
void |
setType(java.lang.String type)
Specify
IPV4 . |
void |
setValue(java.lang.String value)
Specify an IPv4 address by using CIDR notation.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IPSetDescriptor |
withType(IPSetDescriptorType type)
Specify
IPV4 . |
IPSetDescriptor |
withType(java.lang.String type)
Specify
IPV4 . |
IPSetDescriptor |
withValue(java.lang.String value)
Specify an IPv4 address by using CIDR notation.
|
private java.lang.String type
Specify IPV4
.
private java.lang.String value
Specify an IPv4 address by using CIDR notation. For example:
192.0.2.44/32
.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.
public void setType(java.lang.String type)
Specify IPV4
.
type
- Specify IPV4
.IPSetDescriptorType
public java.lang.String getType()
Specify IPV4
.
IPV4
.IPSetDescriptorType
public IPSetDescriptor withType(java.lang.String type)
Specify IPV4
.
type
- Specify IPV4
.IPSetDescriptorType
public void setType(IPSetDescriptorType type)
Specify IPV4
.
type
- Specify IPV4
.IPSetDescriptorType
public IPSetDescriptor withType(IPSetDescriptorType type)
Specify IPV4
.
type
- Specify IPV4
.IPSetDescriptorType
public void setValue(java.lang.String value)
Specify an IPv4 address by using CIDR notation. For example:
192.0.2.44/32
.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.
value
- Specify an IPv4 address by using CIDR notation. For example:
192.0.2.44/32
.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.
public java.lang.String getValue()
Specify an IPv4 address by using CIDR notation. For example:
192.0.2.44/32
.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.
192.0.2.44/32
.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.
public IPSetDescriptor withValue(java.lang.String value)
Specify an IPv4 address by using CIDR notation. For example:
192.0.2.44/32
.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.
value
- Specify an IPv4 address by using CIDR notation. For example:
192.0.2.44/32
.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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IPSetDescriptor clone()
clone
in class java.lang.Object