Class CfnRuleGroupPropsMixin.CustomResponseBodyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnRuleGroupPropsMixin.CustomResponseBodyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.CustomResponseBodyProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.CustomResponseBodyProperty
@Stability(Stable)
public static final class CfnRuleGroupPropsMixin.CustomResponseBodyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.CustomResponseBodyProperty>
A builder for
CfnRuleGroupPropsMixin.CustomResponseBodyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroupPropsMixin.CustomResponseBodyProperty.getContent()contentType(String contentType) Sets the value ofCfnRuleGroupPropsMixin.CustomResponseBodyProperty.getContentType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
@Stability(Stable) public CfnRuleGroupPropsMixin.CustomResponseBodyProperty.Builder content(String content) Sets the value ofCfnRuleGroupPropsMixin.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 CfnRuleGroupPropsMixin.CustomResponseBodyProperty.Builder contentType(String contentType) Sets the value ofCfnRuleGroupPropsMixin.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<CfnRuleGroupPropsMixin.CustomResponseBodyProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.CustomResponseBodyProperty - Throws:
NullPointerException- if any required attribute was not provided
-