AWS SDK for C++  1.9.125
AWS SDK for C++
KafkaAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
46 
50  inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
51 
55  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
56 
60  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
61 
65  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
66 
70  inline KafkaAction& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
71 
75  inline KafkaAction& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
76 
80  inline KafkaAction& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetTopic() const{ return m_topic; }
87 
91  inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
92 
96  inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
97 
101  inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
102 
106  inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
107 
111  inline KafkaAction& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
112 
116  inline KafkaAction& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
117 
121  inline KafkaAction& WithTopic(const char* value) { SetTopic(value); return *this;}
122 
123 
127  inline const Aws::String& GetKey() const{ return m_key; }
128 
132  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
133 
137  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
138 
142  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
143 
147  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
148 
152  inline KafkaAction& WithKey(const Aws::String& value) { SetKey(value); return *this;}
153 
157  inline KafkaAction& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
158 
162  inline KafkaAction& WithKey(const char* value) { SetKey(value); return *this;}
163 
164 
168  inline const Aws::String& GetPartition() const{ return m_partition; }
169 
173  inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
174 
178  inline void SetPartition(const Aws::String& value) { m_partitionHasBeenSet = true; m_partition = value; }
179 
183  inline void SetPartition(Aws::String&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); }
184 
188  inline void SetPartition(const char* value) { m_partitionHasBeenSet = true; m_partition.assign(value); }
189 
193  inline KafkaAction& WithPartition(const Aws::String& value) { SetPartition(value); return *this;}
194 
198  inline KafkaAction& WithPartition(Aws::String&& value) { SetPartition(std::move(value)); return *this;}
199 
203  inline KafkaAction& WithPartition(const char* value) { SetPartition(value); return *this;}
204 
205 
209  inline const Aws::Map<Aws::String, Aws::String>& GetClientProperties() const{ return m_clientProperties; }
210 
214  inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; }
215 
219  inline void SetClientProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = value; }
220 
224  inline void SetClientProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = std::move(value); }
225 
229  inline KafkaAction& WithClientProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetClientProperties(value); return *this;}
230 
234  inline KafkaAction& WithClientProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetClientProperties(std::move(value)); return *this;}
235 
239  inline KafkaAction& AddClientProperties(const Aws::String& key, const Aws::String& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, value); return *this; }
240 
244  inline KafkaAction& AddClientProperties(Aws::String&& key, const Aws::String& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), value); return *this; }
245 
249  inline KafkaAction& AddClientProperties(const Aws::String& key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, std::move(value)); return *this; }
250 
254  inline KafkaAction& AddClientProperties(Aws::String&& key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), std::move(value)); return *this; }
255 
259  inline KafkaAction& AddClientProperties(const char* key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, std::move(value)); return *this; }
260 
264  inline KafkaAction& AddClientProperties(Aws::String&& key, const char* value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), value); return *this; }
265 
269  inline KafkaAction& AddClientProperties(const char* key, const char* value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, value); return *this; }
270 
271  private:
272 
273  Aws::String m_destinationArn;
274  bool m_destinationArnHasBeenSet;
275 
276  Aws::String m_topic;
277  bool m_topicHasBeenSet;
278 
279  Aws::String m_key;
280  bool m_keyHasBeenSet;
281 
282  Aws::String m_partition;
283  bool m_partitionHasBeenSet;
284 
285  Aws::Map<Aws::String, Aws::String> m_clientProperties;
286  bool m_clientPropertiesHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace IoT
291 } // namespace Aws
Aws::IoT::Model::KafkaAction::GetKey
const Aws::String & GetKey() const
Definition: KafkaAction.h:127
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(Aws::String &&key, const Aws::String &value)
Definition: KafkaAction.h:244
Aws::IoT::Model::KafkaAction::WithKey
KafkaAction & WithKey(Aws::String &&value)
Definition: KafkaAction.h:157
Aws::IoT::Model::KafkaAction::WithPartition
KafkaAction & WithPartition(const Aws::String &value)
Definition: KafkaAction.h:193
Aws::IoT::Model::KafkaAction::KafkaAction
KafkaAction()
Aws::IoT::Model::KafkaAction::SetPartition
void SetPartition(Aws::String &&value)
Definition: KafkaAction.h:183
Aws::IoT::Model::KafkaAction::SetKey
void SetKey(Aws::String &&value)
Definition: KafkaAction.h:142
Aws::IoT::Model::KafkaAction::GetPartition
const Aws::String & GetPartition() const
Definition: KafkaAction.h:168
Aws::IoT::Model::KafkaAction::GetDestinationArn
const Aws::String & GetDestinationArn() const
Definition: KafkaAction.h:45
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(Aws::String &&key, const char *value)
Definition: KafkaAction.h:264
Aws::IoT::Model::KafkaAction::SetKey
void SetKey(const char *value)
Definition: KafkaAction.h:147
Aws::IoT::Model::KafkaAction::KafkaAction
KafkaAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::KafkaAction::SetTopic
void SetTopic(const Aws::String &value)
Definition: KafkaAction.h:96
Aws::IoT::Model::KafkaAction::SetTopic
void SetTopic(Aws::String &&value)
Definition: KafkaAction.h:101
Aws::IoT::Model::KafkaAction::WithClientProperties
KafkaAction & WithClientProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: KafkaAction.h:234
Aws::IoT::Model::KafkaAction::SetTopic
void SetTopic(const char *value)
Definition: KafkaAction.h:106
Aws::IoT::Model::KafkaAction::TopicHasBeenSet
bool TopicHasBeenSet() const
Definition: KafkaAction.h:91
Aws::IoT::Model::KafkaAction::SetPartition
void SetPartition(const Aws::String &value)
Definition: KafkaAction.h:178
Aws::IoT::Model::KafkaAction::WithDestinationArn
KafkaAction & WithDestinationArn(const Aws::String &value)
Definition: KafkaAction.h:70
Aws::IoT::Model::KafkaAction::WithKey
KafkaAction & WithKey(const Aws::String &value)
Definition: KafkaAction.h:152
Aws::IoT::Model::KafkaAction::WithPartition
KafkaAction & WithPartition(const char *value)
Definition: KafkaAction.h:203
Aws::IoT::Model::KafkaAction::WithClientProperties
KafkaAction & WithClientProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: KafkaAction.h:229
Aws::IoT::Model::KafkaAction::WithTopic
KafkaAction & WithTopic(const char *value)
Definition: KafkaAction.h:121
Aws::IoT::Model::KafkaAction::WithDestinationArn
KafkaAction & WithDestinationArn(Aws::String &&value)
Definition: KafkaAction.h:75
Aws::IoT::Model::KafkaAction::PartitionHasBeenSet
bool PartitionHasBeenSet() const
Definition: KafkaAction.h:173
Aws::IoT::Model::KafkaAction::SetClientProperties
void SetClientProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: KafkaAction.h:224
Aws::IoT::Model::KafkaAction::GetTopic
const Aws::String & GetTopic() const
Definition: KafkaAction.h:86
Aws::IoT::Model::KafkaAction
Definition: KafkaAction.h:34
Aws::IoT::Model::KafkaAction::SetPartition
void SetPartition(const char *value)
Definition: KafkaAction.h:188
Aws::IoT::Model::KafkaAction::SetDestinationArn
void SetDestinationArn(const Aws::String &value)
Definition: KafkaAction.h:55
Aws::IoT::Model::KafkaAction::WithPartition
KafkaAction & WithPartition(Aws::String &&value)
Definition: KafkaAction.h:198
Aws::IoT::Model::KafkaAction::SetDestinationArn
void SetDestinationArn(const char *value)
Definition: KafkaAction.h:65
Aws::IoT::Model::KafkaAction::SetKey
void SetKey(const Aws::String &value)
Definition: KafkaAction.h:137
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::KafkaAction::SetDestinationArn
void SetDestinationArn(Aws::String &&value)
Definition: KafkaAction.h:60
Aws::IoT::Model::KafkaAction::GetClientProperties
const Aws::Map< Aws::String, Aws::String > & GetClientProperties() const
Definition: KafkaAction.h:209
Aws::IoT::Model::KafkaAction::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: KafkaAction.h:132
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(const char *key, Aws::String &&value)
Definition: KafkaAction.h:259
Aws::IoT::Model::KafkaAction::WithTopic
KafkaAction & WithTopic(const Aws::String &value)
Definition: KafkaAction.h:111
Aws::IoT::Model::KafkaAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::KafkaAction::operator=
KafkaAction & operator=(Aws::Utils::Json::JsonView jsonValue)
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::KafkaAction::WithKey
KafkaAction & WithKey(const char *value)
Definition: KafkaAction.h:162
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(const char *key, const char *value)
Definition: KafkaAction.h:269
Aws::IoT::Model::KafkaAction::WithDestinationArn
KafkaAction & WithDestinationArn(const char *value)
Definition: KafkaAction.h:80
Aws::IoT::Model::KafkaAction::WithTopic
KafkaAction & WithTopic(Aws::String &&value)
Definition: KafkaAction.h:116
Aws::IoT::Model::KafkaAction::DestinationArnHasBeenSet
bool DestinationArnHasBeenSet() const
Definition: KafkaAction.h:50
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(const Aws::String &key, const Aws::String &value)
Definition: KafkaAction.h:239
AWSMap.h
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(Aws::String &&key, Aws::String &&value)
Definition: KafkaAction.h:254
Aws::IoT::Model::KafkaAction::AddClientProperties
KafkaAction & AddClientProperties(const Aws::String &key, Aws::String &&value)
Definition: KafkaAction.h:249
Aws::IoT::Model::KafkaAction::SetClientProperties
void SetClientProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: KafkaAction.h:219
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h
Aws::IoT::Model::KafkaAction::ClientPropertiesHasBeenSet
bool ClientPropertiesHasBeenSet() const
Definition: KafkaAction.h:214