Class CfnAlarmModel.PayloadProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.PayloadProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.PayloadProperty>
- Enclosing interface:
CfnAlarmModel.PayloadProperty
@Stability(Stable)
public static final class CfnAlarmModel.PayloadProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.PayloadProperty>
A builder for
CfnAlarmModel.PayloadProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contentExpression
(String contentExpression) Sets the value ofCfnAlarmModel.PayloadProperty.getContentExpression()
Sets the value ofCfnAlarmModel.PayloadProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentExpression
@Stability(Stable) public CfnAlarmModel.PayloadProperty.Builder contentExpression(String contentExpression) Sets the value ofCfnAlarmModel.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 ofCfnAlarmModel.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<CfnAlarmModel.PayloadProperty>
- Returns:
- a new instance of
CfnAlarmModel.PayloadProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-