AWS SDK for C++  1.9.123
AWS SDK for C++
RepublishAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
45 
49  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
50 
54  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
55 
59  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 
64  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 
69  inline RepublishAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline RepublishAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline RepublishAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetTopic() const{ return m_topic; }
86 
90  inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
91 
95  inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
96 
100  inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
101 
105  inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
106 
110  inline RepublishAction& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
111 
115  inline RepublishAction& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
116 
120  inline RepublishAction& WithTopic(const char* value) { SetTopic(value); return *this;}
121 
122 
127  inline int GetQos() const{ return m_qos; }
128 
133  inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
134 
139  inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; }
140 
145  inline RepublishAction& WithQos(int value) { SetQos(value); return *this;}
146 
147  private:
148 
149  Aws::String m_roleArn;
150  bool m_roleArnHasBeenSet;
151 
152  Aws::String m_topic;
153  bool m_topicHasBeenSet;
154 
155  int m_qos;
156  bool m_qosHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace IoT
161 } // namespace Aws
Aws::IoT::Model::RepublishAction::SetTopic
void SetTopic(Aws::String &&value)
Definition: RepublishAction.h:100
Aws::IoT::Model::RepublishAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::RepublishAction::WithTopic
RepublishAction & WithTopic(const char *value)
Definition: RepublishAction.h:120
Aws::IoT::Model::RepublishAction::GetQos
int GetQos() const
Definition: RepublishAction.h:127
Aws::IoT::Model::RepublishAction::SetQos
void SetQos(int value)
Definition: RepublishAction.h:139
Aws::IoT::Model::RepublishAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: RepublishAction.h:54
Aws::IoT::Model::RepublishAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: RepublishAction.h:64
Aws::IoT::Model::RepublishAction::WithQos
RepublishAction & WithQos(int value)
Definition: RepublishAction.h:145
Aws::IoT::Model::RepublishAction::RepublishAction
RepublishAction()
Aws::IoT::Model::RepublishAction::GetTopic
const Aws::String & GetTopic() const
Definition: RepublishAction.h:85
Aws::IoT::Model::RepublishAction::WithRoleArn
RepublishAction & WithRoleArn(const char *value)
Definition: RepublishAction.h:79
Aws::IoT::Model::RepublishAction::WithTopic
RepublishAction & WithTopic(Aws::String &&value)
Definition: RepublishAction.h:115
Aws::IoT::Model::RepublishAction::operator=
RepublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::RepublishAction::RepublishAction
RepublishAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::RepublishAction::SetTopic
void SetTopic(const char *value)
Definition: RepublishAction.h:105
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::RepublishAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: RepublishAction.h:44
Aws::IoT::Model::RepublishAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: RepublishAction.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::RepublishAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: RepublishAction.h:59
Aws::IoT::Model::RepublishAction
Definition: RepublishAction.h:33
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::RepublishAction::TopicHasBeenSet
bool TopicHasBeenSet() const
Definition: RepublishAction.h:90
Aws::IoT::Model::RepublishAction::WithTopic
RepublishAction & WithTopic(const Aws::String &value)
Definition: RepublishAction.h:110
Aws::IoT::Model::RepublishAction::QosHasBeenSet
bool QosHasBeenSet() const
Definition: RepublishAction.h:133
Aws::IoT::Model::RepublishAction::WithRoleArn
RepublishAction & WithRoleArn(Aws::String &&value)
Definition: RepublishAction.h:74
Aws::IoT::Model::RepublishAction::SetTopic
void SetTopic(const Aws::String &value)
Definition: RepublishAction.h:95
IoT_EXPORTS.h
Aws::IoT::Model::RepublishAction::WithRoleArn
RepublishAction & WithRoleArn(const Aws::String &value)
Definition: RepublishAction.h:69