/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information required to publish the MQTT message through the AWS IoT message
* broker.See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
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.
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.
You can configure the action payload when you publish a message to an AWS IoT * Core topic.
*/ inline const Payload& GetPayload() const{ return m_payload; } /** *You can configure the action payload when you publish a message to an AWS IoT * Core topic.
*/ inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; } /** *You can configure the action payload when you publish a message to an AWS IoT * Core topic.
*/ inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; } /** *You can configure the action payload when you publish a message to an AWS IoT * Core topic.
*/ inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); } /** *You can configure the action payload when you publish a message to an AWS IoT * Core topic.
*/ inline IotTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;} /** *You can configure the action payload when you publish a message to an AWS IoT * Core topic.
*/ inline IotTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;} private: Aws::String m_mqttTopic; bool m_mqttTopicHasBeenSet = false; Payload m_payload; bool m_payloadHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws