@Stability(value=Stable) public static final class CfnWebACL.CustomResponseBodyProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.CustomResponseBodyProperty>
CfnWebACL.CustomResponseBodyProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnWebACL.CustomResponseBodyProperty |
build()
Builds the configured instance.
|
CfnWebACL.CustomResponseBodyProperty.Builder |
content(String content)
Sets the value of
CfnWebACL.CustomResponseBodyProperty.getContent() |
CfnWebACL.CustomResponseBodyProperty.Builder |
contentType(String contentType)
Sets the value of
CfnWebACL.CustomResponseBodyProperty.getContentType() |
@Stability(value=Stable) public CfnWebACL.CustomResponseBodyProperty.Builder content(String content)
CfnWebACL.CustomResponseBodyProperty.getContent()content - The payload of the custom response. This parameter is required.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .
this@Stability(value=Stable) public CfnWebACL.CustomResponseBodyProperty.Builder contentType(String contentType)
CfnWebACL.CustomResponseBodyProperty.getContentType()contentType - The type of content in the payload that you are defining in the `Content` string. This parameter is required.this@Stability(value=Stable) public CfnWebACL.CustomResponseBodyProperty build()
build in interface software.amazon.jsii.Builder<CfnWebACL.CustomResponseBodyProperty>CfnWebACL.CustomResponseBodyPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.