Class IPSet
- java.lang.Object
-
- com.amazonaws.services.waf.model.IPSet
-
- All Implemented Interfaces:
Serializable,Cloneable
public class IPSet extends Object implements Serializable, Cloneable
Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation. To specify an individual IP address, you specify the four-part IP address followed by a
/32, for example, 192.0.2.0/31. To block a range of IP addresses, you can specify a/24, a/16, or a/8CIDR. For more information about CIDR notation, perform an Internet search oncidr notation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IPSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPSetclone()booleanequals(Object obj)List<IPSetDescriptor>getIPSetDescriptors()The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from.StringgetIPSetId()TheIPSetIdfor anIPSet.StringgetName()A friendly name or description of the IPSet.inthashCode()voidsetIPSetDescriptors(Collection<IPSetDescriptor> iPSetDescriptors)The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from.voidsetIPSetId(String iPSetId)TheIPSetIdfor anIPSet.voidsetName(String name)A friendly name or description of the IPSet.StringtoString()Returns a string representation of this object; useful for testing and debugging.IPSetwithIPSetDescriptors(IPSetDescriptor... iPSetDescriptors)The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from.IPSetwithIPSetDescriptors(Collection<IPSetDescriptor> iPSetDescriptors)The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from.IPSetwithIPSetId(String iPSetId)TheIPSetIdfor anIPSet.IPSetwithName(String name)A friendly name or description of the IPSet.
-
-
-
Method Detail
-
setIPSetId
public void setIPSetId(String iPSetId)
The
IPSetIdfor anIPSet. You useIPSetIdto get information about anIPSet(see GetIPSet), update anIPSet(see UpdateIPSet), insert anIPSetinto aRuleor delete one from aRule(see UpdateRule), and delete anIPSetfrom AWS WAF (see DeleteIPSet).IPSetIdis returned by CreateIPSet and by ListIPSets.- Parameters:
iPSetId- TheIPSetIdfor anIPSet. You useIPSetIdto get information about anIPSet(see GetIPSet), update anIPSet(see UpdateIPSet), insert anIPSetinto aRuleor delete one from aRule(see UpdateRule), and delete anIPSetfrom AWS WAF (see DeleteIPSet).IPSetIdis returned by CreateIPSet and by ListIPSets.
-
getIPSetId
public String getIPSetId()
The
IPSetIdfor anIPSet. You useIPSetIdto get information about anIPSet(see GetIPSet), update anIPSet(see UpdateIPSet), insert anIPSetinto aRuleor delete one from aRule(see UpdateRule), and delete anIPSetfrom AWS WAF (see DeleteIPSet).IPSetIdis returned by CreateIPSet and by ListIPSets.- Returns:
- The
IPSetIdfor anIPSet. You useIPSetIdto get information about anIPSet(see GetIPSet), update anIPSet(see UpdateIPSet), insert anIPSetinto aRuleor delete one from aRule(see UpdateRule), and delete anIPSetfrom AWS WAF (see DeleteIPSet).IPSetIdis returned by CreateIPSet and by ListIPSets.
-
withIPSetId
public IPSet withIPSetId(String iPSetId)
The
IPSetIdfor anIPSet. You useIPSetIdto get information about anIPSet(see GetIPSet), update anIPSet(see UpdateIPSet), insert anIPSetinto aRuleor delete one from aRule(see UpdateRule), and delete anIPSetfrom AWS WAF (see DeleteIPSet).IPSetIdis returned by CreateIPSet and by ListIPSets.- Parameters:
iPSetId- TheIPSetIdfor anIPSet. You useIPSetIdto get information about anIPSet(see GetIPSet), update anIPSet(see UpdateIPSet), insert anIPSetinto aRuleor delete one from aRule(see UpdateRule), and delete anIPSetfrom AWS WAF (see DeleteIPSet).IPSetIdis returned by CreateIPSet and by ListIPSets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
A friendly name or description of the IPSet. You can't change the name of an
IPSetafter you create it.- Parameters:
name- A friendly name or description of the IPSet. You can't change the name of anIPSetafter you create it.
-
getName
public String getName()
A friendly name or description of the IPSet. You can't change the name of an
IPSetafter you create it.- Returns:
- A friendly name or description of the IPSet. You can't
change the name of an
IPSetafter you create it.
-
withName
public IPSet withName(String name)
A friendly name or description of the IPSet. You can't change the name of an
IPSetafter you create it.- Parameters:
name- A friendly name or description of the IPSet. You can't change the name of anIPSetafter you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIPSetDescriptors
public List<IPSetDescriptor> getIPSetDescriptors()
The IP address type (
IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
- Returns:
- The IP address type (
IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
-
setIPSetDescriptors
public void setIPSetDescriptors(Collection<IPSetDescriptor> iPSetDescriptors)
The IP address type (
IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
- Parameters:
iPSetDescriptors- The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
-
withIPSetDescriptors
public IPSet withIPSetDescriptors(IPSetDescriptor... iPSetDescriptors)
The IP address type (
IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
NOTE: This method appends the values to the existing list (if any). Use
setIPSetDescriptors(java.util.Collection)orwithIPSetDescriptors(java.util.Collection)if you want to override the existing values.- Parameters:
iPSetDescriptors- The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIPSetDescriptors
public IPSet withIPSetDescriptors(Collection<IPSetDescriptor> iPSetDescriptors)
The IP address type (
IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
- Parameters:
iPSetDescriptors- The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from. If theWebACLis associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the requestx-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-