AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IotTopicPublishAction.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/Payload.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTEVENTS_API IotTopicPublishAction();
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetMqttTopic() const{ return m_mqttTopic; }
50 inline bool MqttTopicHasBeenSet() const { return m_mqttTopicHasBeenSet; }
51 inline void SetMqttTopic(const Aws::String& value) { m_mqttTopicHasBeenSet = true; m_mqttTopic = value; }
52 inline void SetMqttTopic(Aws::String&& value) { m_mqttTopicHasBeenSet = true; m_mqttTopic = std::move(value); }
53 inline void SetMqttTopic(const char* value) { m_mqttTopicHasBeenSet = true; m_mqttTopic.assign(value); }
54 inline IotTopicPublishAction& WithMqttTopic(const Aws::String& value) { SetMqttTopic(value); return *this;}
55 inline IotTopicPublishAction& WithMqttTopic(Aws::String&& value) { SetMqttTopic(std::move(value)); return *this;}
56 inline IotTopicPublishAction& WithMqttTopic(const char* value) { SetMqttTopic(value); return *this;}
58
60
64 inline const Payload& GetPayload() const{ return m_payload; }
65 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
66 inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
67 inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
68 inline IotTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
69 inline IotTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
71 private:
72
73 Aws::String m_mqttTopic;
74 bool m_mqttTopicHasBeenSet = false;
75
76 Payload m_payload;
77 bool m_payloadHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace IoTEvents
82} // namespace Aws
IotTopicPublishAction & WithMqttTopic(const char *value)
IotTopicPublishAction & WithPayload(const Payload &value)
IotTopicPublishAction & WithMqttTopic(Aws::String &&value)
AWS_IOTEVENTS_API IotTopicPublishAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
IotTopicPublishAction & WithPayload(Payload &&value)
AWS_IOTEVENTS_API IotTopicPublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
IotTopicPublishAction & WithMqttTopic(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue