Class CfnAlarmModelPropsMixin.IotTopicPublishProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.iotevents.mixins.CfnAlarmModelPropsMixin.IotTopicPublishProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModelPropsMixin.IotTopicPublishProperty>
- Enclosing interface:
CfnAlarmModelPropsMixin.IotTopicPublishProperty
@Stability(Stable)
public static final class CfnAlarmModelPropsMixin.IotTopicPublishProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModelPropsMixin.IotTopicPublishProperty>
A builder for
CfnAlarmModelPropsMixin.IotTopicPublishProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlarmModelPropsMixin.IotTopicPublishProperty.getMqttTopic()payload(IResolvable payload) Sets the value ofCfnAlarmModelPropsMixin.IotTopicPublishProperty.getPayload()Sets the value ofCfnAlarmModelPropsMixin.IotTopicPublishProperty.getPayload()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mqttTopic
@Stability(Stable) public CfnAlarmModelPropsMixin.IotTopicPublishProperty.Builder mqttTopic(String mqttTopic) Sets the value ofCfnAlarmModelPropsMixin.IotTopicPublishProperty.getMqttTopic()- Parameters:
mqttTopic- The MQTT topic of the message. 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.- Returns:
this
-
payload
@Stability(Stable) public CfnAlarmModelPropsMixin.IotTopicPublishProperty.Builder payload(IResolvable payload) Sets the value ofCfnAlarmModelPropsMixin.IotTopicPublishProperty.getPayload()- Parameters:
payload- You can configure the action payload when you publish a message to an AWS IoT Core topic.- Returns:
this
-
payload
@Stability(Stable) public CfnAlarmModelPropsMixin.IotTopicPublishProperty.Builder payload(CfnAlarmModelPropsMixin.PayloadProperty payload) Sets the value ofCfnAlarmModelPropsMixin.IotTopicPublishProperty.getPayload()- Parameters:
payload- You can configure the action payload when you publish a message to an AWS IoT Core topic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmModelPropsMixin.IotTopicPublishProperty>- Returns:
- a new instance of
CfnAlarmModelPropsMixin.IotTopicPublishProperty - Throws:
NullPointerException- if any required attribute was not provided
-