Class CfnDetectorModel.PayloadProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.PayloadProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.PayloadProperty>
- Enclosing interface:
CfnDetectorModel.PayloadProperty
@Stability(Stable)
public static final class CfnDetectorModel.PayloadProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.PayloadProperty>
A builder for
CfnDetectorModel.PayloadProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contentExpression
(String contentExpression) Sets the value ofCfnDetectorModel.PayloadProperty.getContentExpression()
Sets the value ofCfnDetectorModel.PayloadProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentExpression
@Stability(Stable) public CfnDetectorModel.PayloadProperty.Builder contentExpression(String contentExpression) Sets the value ofCfnDetectorModel.PayloadProperty.getContentExpression()
- Parameters:
contentExpression
- The content of the payload. This parameter is required. 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 ofCfnDetectorModel.PayloadProperty.getType()
- Parameters:
type
- The value of the payload type can be eitherSTRING
orJSON
. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.PayloadProperty>
- Returns:
- a new instance of
CfnDetectorModel.PayloadProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-