Interface IotTopicPublishAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IotTopicPublishAction.Builder,IotTopicPublishAction>,SdkBuilder<IotTopicPublishAction.Builder,IotTopicPublishAction>,SdkPojo
- Enclosing class:
- IotTopicPublishAction
public static interface IotTopicPublishAction.Builder extends SdkPojo, CopyableBuilder<IotTopicPublishAction.Builder,IotTopicPublishAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IotTopicPublishAction.BuildermqttTopic(String mqttTopic)The MQTT topic of the message.default IotTopicPublishAction.Builderpayload(Consumer<Payload.Builder> payload)You can configure the action payload when you publish a message to an AWS IoT Core topic.IotTopicPublishAction.Builderpayload(Payload payload)You can configure the action payload when you publish a message to an AWS IoT Core topic.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
mqttTopic
IotTopicPublishAction.Builder mqttTopic(String 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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
payload
IotTopicPublishAction.Builder payload(Payload payload)
You can configure the action payload when you publish a message to an AWS IoT Core topic.
- Parameters:
payload- You can configure the action payload when you publish a message to an AWS IoT Core topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
default IotTopicPublishAction.Builder payload(Consumer<Payload.Builder> payload)
You can configure the action payload when you publish a message to an AWS IoT Core topic.
This is a convenience method that creates an instance of thePayload.Builderavoiding the need to create one manually viaPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topayload(Payload).- Parameters:
payload- a consumer that will call methods onPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
payload(Payload)
-
-