Interface IotTopicPublishAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IotTopicPublishAction.Builder,
,IotTopicPublishAction> SdkBuilder<IotTopicPublishAction.Builder,
,IotTopicPublishAction> SdkPojo
- Enclosing class:
IotTopicPublishAction
@Mutable
@NotThreadSafe
public static interface IotTopicPublishAction.Builder
extends SdkPojo, CopyableBuilder<IotTopicPublishAction.Builder,IotTopicPublishAction>
-
Method Summary
Modifier and TypeMethodDescriptionThe MQTT topic of the message.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.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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.Builder
avoiding the need to create one manually viaPayload.builder()
.When the
Consumer
completes,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:
-