public static final class CfnAlarmModel.IotTopicPublishProperty.Builder
extends java.lang.Object
CfnAlarmModel.IotTopicPublishProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAlarmModel.IotTopicPublishProperty |
build()
Builds the configured instance.
|
CfnAlarmModel.IotTopicPublishProperty.Builder |
mqttTopic(java.lang.String mqttTopic)
Sets the value of
CfnAlarmModel.IotTopicPublishProperty.getMqttTopic() |
CfnAlarmModel.IotTopicPublishProperty.Builder |
payload(CfnAlarmModel.PayloadProperty payload)
Sets the value of
CfnAlarmModel.IotTopicPublishProperty.getPayload() |
CfnAlarmModel.IotTopicPublishProperty.Builder |
payload(IResolvable payload)
Sets the value of
CfnAlarmModel.IotTopicPublishProperty.getPayload() |
public CfnAlarmModel.IotTopicPublishProperty.Builder mqttTopic(java.lang.String mqttTopic)
CfnAlarmModel.IotTopicPublishProperty.getMqttTopic()
mqttTopic
- The MQTT topic of the message. This parameter is required.
You can use a string expression that includes variables ( $variable.<variable-name>
) and input values ( $input.<input-name>.<path-to-datum>
) as the topic string.this
public CfnAlarmModel.IotTopicPublishProperty.Builder payload(IResolvable payload)
CfnAlarmModel.IotTopicPublishProperty.getPayload()
payload
- You can configure the action payload when you publish a message to an AWS IoT Core topic.this
public CfnAlarmModel.IotTopicPublishProperty.Builder payload(CfnAlarmModel.PayloadProperty payload)
CfnAlarmModel.IotTopicPublishProperty.getPayload()
payload
- You can configure the action payload when you publish a message to an AWS IoT Core topic.this
public CfnAlarmModel.IotTopicPublishProperty build()
CfnAlarmModel.IotTopicPublishProperty
java.lang.NullPointerException
- if any required attribute was not provided