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.
Constructor and Description |
---|
IPSetDescriptor() |
Modifier and Type | Method and Description |
---|---|
IPSetDescriptor |
clone() |
boolean |
equals(Object obj) |
String |
getType()
Specify
IPV4 . |
String |
getValue()
Specify an IPv4 address by using CIDR notation.
|
int |
hashCode() |
void |
setType(IPSetDescriptorType type)
Specify
IPV4 . |
void |
setType(String type)
Specify
IPV4 . |
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)
Specify
IPV4 . |
IPSetDescriptor |
withType(String type)
Specify
IPV4 . |
IPSetDescriptor |
withValue(String value)
Specify an IPv4 address by using CIDR notation.
|
public void setType(String type)
Specify IPV4
.
type
- Specify IPV4
.IPSetDescriptorType
public String getType()
Specify IPV4
.
IPV4
.IPSetDescriptorType
public IPSetDescriptor withType(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public IPSetDescriptor clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.