AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IotTopicPublishAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/Payload.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
30 public:
31 AWS_IOTEVENTS_API IotTopicPublishAction() = default;
34 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetMqttTopic() const { return m_mqttTopic; }
44 inline bool MqttTopicHasBeenSet() const { return m_mqttTopicHasBeenSet; }
45 template <typename MqttTopicT = Aws::String>
46 void SetMqttTopic(MqttTopicT&& value) {
47 m_mqttTopicHasBeenSet = true;
48 m_mqttTopic = std::forward<MqttTopicT>(value);
49 }
50 template <typename MqttTopicT = Aws::String>
51 IotTopicPublishAction& WithMqttTopic(MqttTopicT&& value) {
52 SetMqttTopic(std::forward<MqttTopicT>(value));
53 return *this;
54 }
56
58
62 inline const Payload& GetPayload() const { return m_payload; }
63 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
64 template <typename PayloadT = Payload>
65 void SetPayload(PayloadT&& value) {
66 m_payloadHasBeenSet = true;
67 m_payload = std::forward<PayloadT>(value);
68 }
69 template <typename PayloadT = Payload>
71 SetPayload(std::forward<PayloadT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_mqttTopic;
77
78 Payload m_payload;
79 bool m_mqttTopicHasBeenSet = false;
80 bool m_payloadHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace IoTEvents
85} // namespace Aws
AWS_IOTEVENTS_API IotTopicPublishAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTS_API IotTopicPublishAction()=default
AWS_IOTEVENTS_API IotTopicPublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
IotTopicPublishAction & WithMqttTopic(MqttTopicT &&value)
IotTopicPublishAction & WithPayload(PayloadT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue