Interface IPSetReferenceStatement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IPSetReferenceStatement.Builder,IPSetReferenceStatement>,SdkBuilder<IPSetReferenceStatement.Builder,IPSetReferenceStatement>,SdkPojo
- Enclosing class:
- IPSetReferenceStatement
public static interface IPSetReferenceStatement.Builder extends SdkPojo, CopyableBuilder<IPSetReferenceStatement.Builder,IPSetReferenceStatement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IPSetReferenceStatement.Builderarn(String arn)The Amazon Resource Name (ARN) of the IPSet that this statement references.default IPSetReferenceStatement.BuilderipSetForwardedIPConfig(Consumer<IPSetForwardedIPConfig.Builder> 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.IPSetReferenceStatement.BuilderipSetForwardedIPConfig(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.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
arn
IPSetReferenceStatement.Builder arn(String arn)
The Amazon Resource Name (ARN) of the IPSet that this statement references.
- Parameters:
arn- The Amazon Resource Name (ARN) of the IPSet that this statement references.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipSetForwardedIPConfig
IPSetReferenceStatement.Builder ipSetForwardedIPConfig(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipSetForwardedIPConfig
default IPSetReferenceStatement.Builder ipSetForwardedIPConfig(Consumer<IPSetForwardedIPConfig.Builder> 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.
This is a convenience method that creates an instance of theIf the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
IPSetForwardedIPConfig.Builderavoiding the need to create one manually viaIPSetForwardedIPConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toipSetForwardedIPConfig(IPSetForwardedIPConfig).- Parameters:
ipSetForwardedIPConfig- a consumer that will call methods onIPSetForwardedIPConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ipSetForwardedIPConfig(IPSetForwardedIPConfig)
-
-