Class CfnDetectorModelPropsMixin.PayloadProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.iotevents.mixins.CfnDetectorModelPropsMixin.PayloadProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModelPropsMixin.PayloadProperty>
- Enclosing interface:
CfnDetectorModelPropsMixin.PayloadProperty
@Stability(Stable)
public static final class CfnDetectorModelPropsMixin.PayloadProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModelPropsMixin.PayloadProperty>
A builder for
CfnDetectorModelPropsMixin.PayloadProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentExpression(String contentExpression) Sets the value ofCfnDetectorModelPropsMixin.PayloadProperty.getContentExpression()Sets the value ofCfnDetectorModelPropsMixin.PayloadProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentExpression
@Stability(Stable) public CfnDetectorModelPropsMixin.PayloadProperty.Builder contentExpression(String contentExpression) Sets the value ofCfnDetectorModelPropsMixin.PayloadProperty.getContentExpression()- Parameters:
contentExpression- The content of the payload. You can use a string expression that includes quoted strings ('<string>'), variables ($variable.<variable-name>), input values ($input.<input-name>.<path-to-datum>), string concatenations, and quoted strings that contain${}as the content. The recommended maximum size of a content expression is 1 KB.- Returns:
this
-
type
Sets the value ofCfnDetectorModelPropsMixin.PayloadProperty.getType()- Parameters:
type- The value of the payload type can be eitherSTRINGorJSON.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorModelPropsMixin.PayloadProperty>- Returns:
- a new instance of
CfnDetectorModelPropsMixin.PayloadProperty - Throws:
NullPointerException- if any required attribute was not provided
-