@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IPSetReferenceStatement extends Object implements Serializable, Cloneable, StructuredPojo
A rule statement used to detect web requests coming from particular IP addresses or address ranges. To use this, create an IPSet that specifies the addresses you want to detect, then use the ARN of that set in this statement. To create an IP set, see CreateIPSet.
Each IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, WAF automatically updates all rules that reference it.
Constructor and Description |
---|
IPSetReferenceStatement() |
Modifier and Type | Method and Description |
---|---|
IPSetReferenceStatement |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The Amazon Resource Name (ARN) of the IPSet that this statement references.
|
IPSetForwardedIPConfig |
getIPSetForwardedIPConfig()
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address
that's reported by the web request origin.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setARN(String aRN)
The Amazon Resource Name (ARN) of the IPSet that this statement references.
|
void |
setIPSetForwardedIPConfig(IPSetForwardedIPConfig iPSetForwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address
that's reported by the web request origin.
|
String |
toString()
Returns a string representation of this object.
|
IPSetReferenceStatement |
withARN(String aRN)
The Amazon Resource Name (ARN) of the IPSet that this statement references.
|
IPSetReferenceStatement |
withIPSetForwardedIPConfig(IPSetForwardedIPConfig iPSetForwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address
that's reported by the web request origin.
|
public void setARN(String aRN)
The Amazon Resource Name (ARN) of the IPSet that this statement references.
aRN
- The Amazon Resource Name (ARN) of the IPSet that this statement references.public String getARN()
The Amazon Resource Name (ARN) of the IPSet that this statement references.
public IPSetReferenceStatement withARN(String aRN)
The Amazon Resource Name (ARN) of the IPSet that this statement references.
aRN
- The Amazon Resource Name (ARN) of the IPSet that this statement references.public void setIPSetForwardedIPConfig(IPSetForwardedIPConfig iPSetForwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
iPSetForwardedIPConfig
- The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP
address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but
you can specify any header name. If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
public IPSetForwardedIPConfig getIPSetForwardedIPConfig()
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
public IPSetReferenceStatement withIPSetForwardedIPConfig(IPSetForwardedIPConfig iPSetForwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
iPSetForwardedIPConfig
- The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP
address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but
you can specify any header name. If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
public String toString()
toString
in class Object
Object.toString()
public IPSetReferenceStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.