Class CfnLoggingConfiguration.FieldToMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.FieldToMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingConfiguration.FieldToMatchProperty>
- Enclosing interface:
- CfnLoggingConfiguration.FieldToMatchProperty
@Stability(Stable)
public static final class CfnLoggingConfiguration.FieldToMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoggingConfiguration.FieldToMatchProperty>
A builder for
CfnLoggingConfiguration.FieldToMatchProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getJsonBody()
Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getMethod()
queryString
(Object queryString) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getQueryString()
singleHeader
(Object singleHeader) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getSingleHeader()
Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getUriPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonBody
@Stability(Stable) public CfnLoggingConfiguration.FieldToMatchProperty.Builder jsonBody(Object jsonBody) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getJsonBody()
- Parameters:
jsonBody
- Redact the request body JSON.- Returns:
this
-
method
@Stability(Stable) public CfnLoggingConfiguration.FieldToMatchProperty.Builder method(Object method) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getMethod()
- Parameters:
method
- Redact the indicated HTTP method. The method indicates the type of operation that the request is asking the origin to perform.- Returns:
this
-
queryString
@Stability(Stable) public CfnLoggingConfiguration.FieldToMatchProperty.Builder queryString(Object queryString) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getQueryString()
- Parameters:
queryString
- Redact the query string. This is the part of a URL that appears after a?
character, if any.- Returns:
this
-
singleHeader
@Stability(Stable) public CfnLoggingConfiguration.FieldToMatchProperty.Builder singleHeader(Object singleHeader) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getSingleHeader()
- Parameters:
singleHeader
- Redact a single header. Provide the name of the header to inspect, for example,User-Agent
orReferer
. This setting isn't case sensitive.Example JSON:
"SingleHeader": { "Name": "haystack" }
- Returns:
this
-
uriPath
@Stability(Stable) public CfnLoggingConfiguration.FieldToMatchProperty.Builder uriPath(Object uriPath) Sets the value ofCfnLoggingConfiguration.FieldToMatchProperty.getUriPath()
- Parameters:
uriPath
- Redact the request URI path. This is the part of the web request that identifies a resource, for example,/images/daily-ad.jpg
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoggingConfiguration.FieldToMatchProperty>
- Returns:
- a new instance of
CfnLoggingConfiguration.FieldToMatchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-