This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iotevents/include/aws/iotevents/model/IotTopicPublishAction.h

155 lines
5.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information required to publish the MQTT message through the AWS IoT message
* broker.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/IotTopicPublishAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API IotTopicPublishAction
{
public:
IotTopicPublishAction();
IotTopicPublishAction(Aws::Utils::Json::JsonView jsonValue);
IotTopicPublishAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline const Aws::String& GetMqttTopic() const{ return m_mqttTopic; }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline bool MqttTopicHasBeenSet() const { return m_mqttTopicHasBeenSet; }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline void SetMqttTopic(const Aws::String& value) { m_mqttTopicHasBeenSet = true; m_mqttTopic = value; }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline void SetMqttTopic(Aws::String&& value) { m_mqttTopicHasBeenSet = true; m_mqttTopic = std::move(value); }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline void SetMqttTopic(const char* value) { m_mqttTopicHasBeenSet = true; m_mqttTopic.assign(value); }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline IotTopicPublishAction& WithMqttTopic(const Aws::String& value) { SetMqttTopic(value); return *this;}
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline IotTopicPublishAction& WithMqttTopic(Aws::String&& value) { SetMqttTopic(std::move(value)); return *this;}
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline IotTopicPublishAction& WithMqttTopic(const char* value) { SetMqttTopic(value); return *this;}
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline IotTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline IotTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_mqttTopic;
bool m_mqttTopicHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws