AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RepublishAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/MqttHeaders.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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API RepublishAction();
40
41
43
46 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
47 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
48 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
49 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
50 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
51 inline RepublishAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
52 inline RepublishAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
53 inline RepublishAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
55
57
60 inline const Aws::String& GetTopic() const{ return m_topic; }
61 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
62 inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
63 inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
64 inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
65 inline RepublishAction& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
66 inline RepublishAction& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
67 inline RepublishAction& WithTopic(const char* value) { SetTopic(value); return *this;}
69
71
75 inline int GetQos() const{ return m_qos; }
76 inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
77 inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; }
78 inline RepublishAction& WithQos(int value) { SetQos(value); return *this;}
80
82
87 inline const MqttHeaders& GetHeaders() const{ return m_headers; }
88 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
89 inline void SetHeaders(const MqttHeaders& value) { m_headersHasBeenSet = true; m_headers = value; }
90 inline void SetHeaders(MqttHeaders&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
91 inline RepublishAction& WithHeaders(const MqttHeaders& value) { SetHeaders(value); return *this;}
92 inline RepublishAction& WithHeaders(MqttHeaders&& value) { SetHeaders(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_roleArn;
97 bool m_roleArnHasBeenSet = false;
98
99 Aws::String m_topic;
100 bool m_topicHasBeenSet = false;
101
102 int m_qos;
103 bool m_qosHasBeenSet = false;
104
105 MqttHeaders m_headers;
106 bool m_headersHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoT
111} // namespace Aws
RepublishAction & WithTopic(Aws::String &&value)
void SetRoleArn(Aws::String &&value)
const Aws::String & GetRoleArn() const
RepublishAction & WithTopic(const char *value)
RepublishAction & WithTopic(const Aws::String &value)
RepublishAction & WithQos(int value)
const MqttHeaders & GetHeaders() const
AWS_IOT_API RepublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTopic(const Aws::String &value)
void SetTopic(Aws::String &&value)
void SetRoleArn(const Aws::String &value)
RepublishAction & WithRoleArn(const Aws::String &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
RepublishAction & WithRoleArn(Aws::String &&value)
const Aws::String & GetTopic() const
void SetRoleArn(const char *value)
AWS_IOT_API RepublishAction(Aws::Utils::Json::JsonView jsonValue)
RepublishAction & WithRoleArn(const char *value)
void SetTopic(const char *value)
RepublishAction & WithHeaders(const MqttHeaders &value)
void SetHeaders(const MqttHeaders &value)
RepublishAction & WithHeaders(MqttHeaders &&value)
void SetHeaders(MqttHeaders &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue