Class CfnWebACLPropsMixin.CustomResponseBodyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.CustomResponseBodyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.CustomResponseBodyProperty>
- Enclosing interface:
CfnWebACLPropsMixin.CustomResponseBodyProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.CustomResponseBodyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.CustomResponseBodyProperty>
A builder for
CfnWebACLPropsMixin.CustomResponseBodyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWebACLPropsMixin.CustomResponseBodyProperty.getContent()contentType(String contentType) Sets the value ofCfnWebACLPropsMixin.CustomResponseBodyProperty.getContentType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
@Stability(Stable) public CfnWebACLPropsMixin.CustomResponseBodyProperty.Builder content(String content) Sets the value ofCfnWebACLPropsMixin.CustomResponseBodyProperty.getContent()- Parameters:
content- The payload of the custom response. You can use JSON escape strings in JSON content. To do this, you must specify JSON content in theContentTypesetting.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 .
- Returns:
this
-
contentType
@Stability(Stable) public CfnWebACLPropsMixin.CustomResponseBodyProperty.Builder contentType(String contentType) Sets the value ofCfnWebACLPropsMixin.CustomResponseBodyProperty.getContentType()- Parameters:
contentType- The type of content in the payload that you are defining in theContentstring.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.CustomResponseBodyProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.CustomResponseBodyProperty - Throws:
NullPointerException- if any required attribute was not provided
-