Interface IotTopicPublishAction.Builder

  • Method Details

    • 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

      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 the Payload.Builder avoiding the need to create one manually via Payload.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to payload(Payload).

      Parameters:
      payload - a consumer that will call methods on Payload.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: