public static final class CfnAlarmModel.PayloadProperty.Builder
extends java.lang.Object
CfnAlarmModel.PayloadProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAlarmModel.PayloadProperty |
build()
Builds the configured instance.
|
CfnAlarmModel.PayloadProperty.Builder |
contentExpression(java.lang.String contentExpression)
Sets the value of
CfnAlarmModel.PayloadProperty.getContentExpression() |
CfnAlarmModel.PayloadProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnAlarmModel.PayloadProperty.getType() |
public CfnAlarmModel.PayloadProperty.Builder contentExpression(java.lang.String contentExpression)
CfnAlarmModel.PayloadProperty.getContentExpression()
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.this
public CfnAlarmModel.PayloadProperty.Builder type(java.lang.String type)
CfnAlarmModel.PayloadProperty.getType()
type
- The value of the payload type can be either `STRING` or `JSON` . This parameter is required.this
public CfnAlarmModel.PayloadProperty build()
CfnAlarmModel.PayloadProperty
java.lang.NullPointerException
- if any required attribute was not provided