public static final class CfnWebACL.CustomResponseBodyProperty.Builder
extends java.lang.Object
CfnWebACL.CustomResponseBodyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnWebACL.CustomResponseBodyProperty |
build()
Builds the configured instance.
|
CfnWebACL.CustomResponseBodyProperty.Builder |
content(java.lang.String content)
Sets the value of
CfnWebACL.CustomResponseBodyProperty.getContent() |
CfnWebACL.CustomResponseBodyProperty.Builder |
contentType(java.lang.String contentType)
Sets the value of
CfnWebACL.CustomResponseBodyProperty.getContentType() |
public CfnWebACL.CustomResponseBodyProperty.Builder content(java.lang.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
public CfnWebACL.CustomResponseBodyProperty.Builder contentType(java.lang.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
public CfnWebACL.CustomResponseBodyProperty build()
CfnWebACL.CustomResponseBodyProperty
java.lang.NullPointerException
- if any required attribute was not provided