Class CfnDetectorModel.IotTopicPublishProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.IotTopicPublishProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.IotTopicPublishProperty>
- Enclosing interface:
CfnDetectorModel.IotTopicPublishProperty
@Stability(Stable)
public static final class CfnDetectorModel.IotTopicPublishProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.IotTopicPublishProperty>
A builder for
CfnDetectorModel.IotTopicPublishProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDetectorModel.IotTopicPublishProperty.getMqttTopic()
payload
(IResolvable payload) Sets the value ofCfnDetectorModel.IotTopicPublishProperty.getPayload()
payload
(CfnDetectorModel.PayloadProperty payload) Sets the value ofCfnDetectorModel.IotTopicPublishProperty.getPayload()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mqttTopic
@Stability(Stable) public CfnDetectorModel.IotTopicPublishProperty.Builder mqttTopic(String mqttTopic) Sets the value ofCfnDetectorModel.IotTopicPublishProperty.getMqttTopic()
- Parameters:
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.- Returns:
this
-
payload
@Stability(Stable) public CfnDetectorModel.IotTopicPublishProperty.Builder payload(IResolvable payload) Sets the value ofCfnDetectorModel.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 CfnDetectorModel.IotTopicPublishProperty.Builder payload(CfnDetectorModel.PayloadProperty payload) Sets the value ofCfnDetectorModel.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.IotTopicPublishProperty>
- Returns:
- a new instance of
CfnDetectorModel.IotTopicPublishProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-