AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
RepublishAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/MqttHeaders.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API RepublishAction() = default;
35
37
40 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
41 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
42 template <typename RoleArnT = Aws::String>
43 void SetRoleArn(RoleArnT&& value) {
44 m_roleArnHasBeenSet = true;
45 m_roleArn = std::forward<RoleArnT>(value);
46 }
47 template <typename RoleArnT = Aws::String>
48 RepublishAction& WithRoleArn(RoleArnT&& value) {
49 SetRoleArn(std::forward<RoleArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTopic() const { return m_topic; }
59 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
60 template <typename TopicT = Aws::String>
61 void SetTopic(TopicT&& value) {
62 m_topicHasBeenSet = true;
63 m_topic = std::forward<TopicT>(value);
64 }
65 template <typename TopicT = Aws::String>
66 RepublishAction& WithTopic(TopicT&& value) {
67 SetTopic(std::forward<TopicT>(value));
68 return *this;
69 }
71
73
77 inline int GetQos() const { return m_qos; }
78 inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
79 inline void SetQos(int value) {
80 m_qosHasBeenSet = true;
81 m_qos = value;
82 }
83 inline RepublishAction& WithQos(int value) {
84 SetQos(value);
85 return *this;
86 }
88
90
95 inline const MqttHeaders& GetHeaders() const { return m_headers; }
96 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
97 template <typename HeadersT = MqttHeaders>
98 void SetHeaders(HeadersT&& value) {
99 m_headersHasBeenSet = true;
100 m_headers = std::forward<HeadersT>(value);
101 }
102 template <typename HeadersT = MqttHeaders>
103 RepublishAction& WithHeaders(HeadersT&& value) {
104 SetHeaders(std::forward<HeadersT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_roleArn;
110
111 Aws::String m_topic;
112
113 int m_qos{0};
114
115 MqttHeaders m_headers;
116 bool m_roleArnHasBeenSet = false;
117 bool m_topicHasBeenSet = false;
118 bool m_qosHasBeenSet = false;
119 bool m_headersHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace IoT
124} // namespace Aws
const Aws::String & GetRoleArn() const
void SetHeaders(HeadersT &&value)
RepublishAction & WithQos(int value)
const MqttHeaders & GetHeaders() const
AWS_IOT_API RepublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoleArn(RoleArnT &&value)
RepublishAction & WithTopic(TopicT &&value)
AWS_IOT_API RepublishAction()=default
RepublishAction & WithHeaders(HeadersT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTopic() const
RepublishAction & WithRoleArn(RoleArnT &&value)
AWS_IOT_API RepublishAction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue