AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
40
41
43
46 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
47 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
48 template<typename RoleArnT = Aws::String>
49 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
50 template<typename RoleArnT = Aws::String>
51 RepublishAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
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) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
62 template<typename TopicT = Aws::String>
63 RepublishAction& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
65
67
71 inline int GetQos() const { return m_qos; }
72 inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
73 inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; }
74 inline RepublishAction& WithQos(int value) { SetQos(value); return *this;}
76
78
83 inline const MqttHeaders& GetHeaders() const { return m_headers; }
84 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
85 template<typename HeadersT = MqttHeaders>
86 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers = std::forward<HeadersT>(value); }
87 template<typename HeadersT = MqttHeaders>
88 RepublishAction& WithHeaders(HeadersT&& value) { SetHeaders(std::forward<HeadersT>(value)); return *this;}
90 private:
91
92 Aws::String m_roleArn;
93 bool m_roleArnHasBeenSet = false;
94
95 Aws::String m_topic;
96 bool m_topicHasBeenSet = false;
97
98 int m_qos{0};
99 bool m_qosHasBeenSet = false;
100
101 MqttHeaders m_headers;
102 bool m_headersHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoT
107} // 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