AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KafkaAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/KafkaActionHeader.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOT_API KafkaAction();
42
43
45
48 inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
49 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
50 inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
51 inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
52 inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
53 inline KafkaAction& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
54 inline KafkaAction& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
55 inline KafkaAction& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
57
59
62 inline const Aws::String& GetTopic() const{ return m_topic; }
63 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
64 inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
65 inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
66 inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
67 inline KafkaAction& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
68 inline KafkaAction& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
69 inline KafkaAction& WithTopic(const char* value) { SetTopic(value); return *this;}
71
73
76 inline const Aws::String& GetKey() const{ return m_key; }
77 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
78 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
79 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
80 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
81 inline KafkaAction& WithKey(const Aws::String& value) { SetKey(value); return *this;}
82 inline KafkaAction& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
83 inline KafkaAction& WithKey(const char* value) { SetKey(value); return *this;}
85
87
90 inline const Aws::String& GetPartition() const{ return m_partition; }
91 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
92 inline void SetPartition(const Aws::String& value) { m_partitionHasBeenSet = true; m_partition = value; }
93 inline void SetPartition(Aws::String&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); }
94 inline void SetPartition(const char* value) { m_partitionHasBeenSet = true; m_partition.assign(value); }
95 inline KafkaAction& WithPartition(const Aws::String& value) { SetPartition(value); return *this;}
96 inline KafkaAction& WithPartition(Aws::String&& value) { SetPartition(std::move(value)); return *this;}
97 inline KafkaAction& WithPartition(const char* value) { SetPartition(value); return *this;}
99
101
104 inline const Aws::Map<Aws::String, Aws::String>& GetClientProperties() const{ return m_clientProperties; }
105 inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; }
106 inline void SetClientProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = value; }
107 inline void SetClientProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = std::move(value); }
110 inline KafkaAction& AddClientProperties(const Aws::String& key, const Aws::String& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, value); return *this; }
111 inline KafkaAction& AddClientProperties(Aws::String&& key, const Aws::String& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), value); return *this; }
112 inline KafkaAction& AddClientProperties(const Aws::String& key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, std::move(value)); return *this; }
113 inline KafkaAction& AddClientProperties(Aws::String&& key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), std::move(value)); return *this; }
114 inline KafkaAction& AddClientProperties(const char* key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, std::move(value)); return *this; }
115 inline KafkaAction& AddClientProperties(Aws::String&& key, const char* value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), value); return *this; }
116 inline KafkaAction& AddClientProperties(const char* key, const char* value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, value); return *this; }
118
120
123 inline const Aws::Vector<KafkaActionHeader>& GetHeaders() const{ return m_headers; }
124 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
125 inline void SetHeaders(const Aws::Vector<KafkaActionHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
126 inline void SetHeaders(Aws::Vector<KafkaActionHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
127 inline KafkaAction& WithHeaders(const Aws::Vector<KafkaActionHeader>& value) { SetHeaders(value); return *this;}
128 inline KafkaAction& WithHeaders(Aws::Vector<KafkaActionHeader>&& value) { SetHeaders(std::move(value)); return *this;}
129 inline KafkaAction& AddHeaders(const KafkaActionHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
130 inline KafkaAction& AddHeaders(KafkaActionHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
132 private:
133
134 Aws::String m_destinationArn;
135 bool m_destinationArnHasBeenSet = false;
136
137 Aws::String m_topic;
138 bool m_topicHasBeenSet = false;
139
140 Aws::String m_key;
141 bool m_keyHasBeenSet = false;
142
143 Aws::String m_partition;
144 bool m_partitionHasBeenSet = false;
145
146 Aws::Map<Aws::String, Aws::String> m_clientProperties;
147 bool m_clientPropertiesHasBeenSet = false;
148
150 bool m_headersHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoT
155} // namespace Aws
void SetDestinationArn(const char *value)
Definition KafkaAction.h:52
KafkaAction & WithDestinationArn(const Aws::String &value)
Definition KafkaAction.h:53
KafkaAction & WithClientProperties(const Aws::Map< Aws::String, Aws::String > &value)
KafkaAction & AddClientProperties(Aws::String &&key, Aws::String &&value)
KafkaAction & WithPartition(const Aws::String &value)
Definition KafkaAction.h:95
const Aws::String & GetTopic() const
Definition KafkaAction.h:62
KafkaAction & WithTopic(const Aws::String &value)
Definition KafkaAction.h:67
bool DestinationArnHasBeenSet() const
Definition KafkaAction.h:49
KafkaAction & AddHeaders(const KafkaActionHeader &value)
AWS_IOT_API KafkaAction(Aws::Utils::Json::JsonView jsonValue)
KafkaAction & WithKey(Aws::String &&value)
Definition KafkaAction.h:82
KafkaAction & WithTopic(Aws::String &&value)
Definition KafkaAction.h:68
KafkaAction & WithPartition(Aws::String &&value)
Definition KafkaAction.h:96
KafkaAction & WithDestinationArn(Aws::String &&value)
Definition KafkaAction.h:54
KafkaAction & AddClientProperties(const Aws::String &key, const Aws::String &value)
void SetPartition(const Aws::String &value)
Definition KafkaAction.h:92
void SetHeaders(const Aws::Vector< KafkaActionHeader > &value)
void SetClientProperties(Aws::Map< Aws::String, Aws::String > &&value)
KafkaAction & AddHeaders(KafkaActionHeader &&value)
KafkaAction & WithKey(const char *value)
Definition KafkaAction.h:83
void SetClientProperties(const Aws::Map< Aws::String, Aws::String > &value)
bool ClientPropertiesHasBeenSet() const
void SetTopic(const char *value)
Definition KafkaAction.h:66
const Aws::Map< Aws::String, Aws::String > & GetClientProperties() const
KafkaAction & WithClientProperties(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetKey() const
Definition KafkaAction.h:76
void SetTopic(Aws::String &&value)
Definition KafkaAction.h:65
const Aws::String & GetDestinationArn() const
Definition KafkaAction.h:48
const Aws::String & GetPartition() const
Definition KafkaAction.h:90
const Aws::Vector< KafkaActionHeader > & GetHeaders() const
KafkaAction & AddClientProperties(Aws::String &&key, const char *value)
void SetHeaders(Aws::Vector< KafkaActionHeader > &&value)
void SetDestinationArn(Aws::String &&value)
Definition KafkaAction.h:51
KafkaAction & WithHeaders(Aws::Vector< KafkaActionHeader > &&value)
void SetPartition(Aws::String &&value)
Definition KafkaAction.h:93
KafkaAction & WithPartition(const char *value)
Definition KafkaAction.h:97
KafkaAction & AddClientProperties(const char *key, Aws::String &&value)
KafkaAction & WithDestinationArn(const char *value)
Definition KafkaAction.h:55
void SetTopic(const Aws::String &value)
Definition KafkaAction.h:64
KafkaAction & WithKey(const Aws::String &value)
Definition KafkaAction.h:81
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaAction & WithTopic(const char *value)
Definition KafkaAction.h:69
AWS_IOT_API KafkaAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKey(const Aws::String &value)
Definition KafkaAction.h:78
KafkaAction & WithHeaders(const Aws::Vector< KafkaActionHeader > &value)
void SetKey(Aws::String &&value)
Definition KafkaAction.h:79
void SetPartition(const char *value)
Definition KafkaAction.h:94
KafkaAction & AddClientProperties(const Aws::String &key, Aws::String &&value)
KafkaAction & AddClientProperties(Aws::String &&key, const Aws::String &value)
void SetKey(const char *value)
Definition KafkaAction.h:80
KafkaAction & AddClientProperties(const char *key, const char *value)
void SetDestinationArn(const Aws::String &value)
Definition KafkaAction.h:50
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue