AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
KafkaAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/KafkaActionHeader.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
32 public:
33 AWS_IOT_API KafkaAction() = default;
37
39
42 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
43 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
44 template <typename DestinationArnT = Aws::String>
45 void SetDestinationArn(DestinationArnT&& value) {
46 m_destinationArnHasBeenSet = true;
47 m_destinationArn = std::forward<DestinationArnT>(value);
48 }
49 template <typename DestinationArnT = Aws::String>
50 KafkaAction& WithDestinationArn(DestinationArnT&& value) {
51 SetDestinationArn(std::forward<DestinationArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTopic() const { return m_topic; }
61 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
62 template <typename TopicT = Aws::String>
63 void SetTopic(TopicT&& value) {
64 m_topicHasBeenSet = true;
65 m_topic = std::forward<TopicT>(value);
66 }
67 template <typename TopicT = Aws::String>
68 KafkaAction& WithTopic(TopicT&& value) {
69 SetTopic(std::forward<TopicT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetKey() const { return m_key; }
79 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
80 template <typename KeyT = Aws::String>
81 void SetKey(KeyT&& value) {
82 m_keyHasBeenSet = true;
83 m_key = std::forward<KeyT>(value);
84 }
85 template <typename KeyT = Aws::String>
86 KafkaAction& WithKey(KeyT&& value) {
87 SetKey(std::forward<KeyT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPartition() const { return m_partition; }
97 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
98 template <typename PartitionT = Aws::String>
99 void SetPartition(PartitionT&& value) {
100 m_partitionHasBeenSet = true;
101 m_partition = std::forward<PartitionT>(value);
102 }
103 template <typename PartitionT = Aws::String>
104 KafkaAction& WithPartition(PartitionT&& value) {
105 SetPartition(std::forward<PartitionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetClientProperties() const { return m_clientProperties; }
115 inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; }
116 template <typename ClientPropertiesT = Aws::Map<Aws::String, Aws::String>>
117 void SetClientProperties(ClientPropertiesT&& value) {
118 m_clientPropertiesHasBeenSet = true;
119 m_clientProperties = std::forward<ClientPropertiesT>(value);
120 }
121 template <typename ClientPropertiesT = Aws::Map<Aws::String, Aws::String>>
122 KafkaAction& WithClientProperties(ClientPropertiesT&& value) {
123 SetClientProperties(std::forward<ClientPropertiesT>(value));
124 return *this;
125 }
126 template <typename ClientPropertiesKeyT = Aws::String, typename ClientPropertiesValueT = Aws::String>
127 KafkaAction& AddClientProperties(ClientPropertiesKeyT&& key, ClientPropertiesValueT&& value) {
128 m_clientPropertiesHasBeenSet = true;
129 m_clientProperties.emplace(std::forward<ClientPropertiesKeyT>(key), std::forward<ClientPropertiesValueT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<KafkaActionHeader>& GetHeaders() const { return m_headers; }
139 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
140 template <typename HeadersT = Aws::Vector<KafkaActionHeader>>
141 void SetHeaders(HeadersT&& value) {
142 m_headersHasBeenSet = true;
143 m_headers = std::forward<HeadersT>(value);
144 }
145 template <typename HeadersT = Aws::Vector<KafkaActionHeader>>
146 KafkaAction& WithHeaders(HeadersT&& value) {
147 SetHeaders(std::forward<HeadersT>(value));
148 return *this;
149 }
150 template <typename HeadersT = KafkaActionHeader>
151 KafkaAction& AddHeaders(HeadersT&& value) {
152 m_headersHasBeenSet = true;
153 m_headers.emplace_back(std::forward<HeadersT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_destinationArn;
159
160 Aws::String m_topic;
161
162 Aws::String m_key;
163
164 Aws::String m_partition;
165
166 Aws::Map<Aws::String, Aws::String> m_clientProperties;
167
169 bool m_destinationArnHasBeenSet = false;
170 bool m_topicHasBeenSet = false;
171 bool m_keyHasBeenSet = false;
172 bool m_partitionHasBeenSet = false;
173 bool m_clientPropertiesHasBeenSet = false;
174 bool m_headersHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace IoT
179} // namespace Aws
const Aws::String & GetTopic() const
Definition KafkaAction.h:60
KafkaAction & WithHeaders(HeadersT &&value)
bool DestinationArnHasBeenSet() const
Definition KafkaAction.h:43
KafkaAction & WithClientProperties(ClientPropertiesT &&value)
AWS_IOT_API KafkaAction(Aws::Utils::Json::JsonView jsonValue)
void SetKey(KeyT &&value)
Definition KafkaAction.h:81
KafkaAction & WithDestinationArn(DestinationArnT &&value)
Definition KafkaAction.h:50
void SetHeaders(HeadersT &&value)
void SetDestinationArn(DestinationArnT &&value)
Definition KafkaAction.h:45
bool ClientPropertiesHasBeenSet() const
KafkaAction & WithPartition(PartitionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientProperties() const
const Aws::String & GetKey() const
Definition KafkaAction.h:78
void SetTopic(TopicT &&value)
Definition KafkaAction.h:63
const Aws::String & GetDestinationArn() const
Definition KafkaAction.h:42
const Aws::String & GetPartition() const
Definition KafkaAction.h:96
void SetPartition(PartitionT &&value)
Definition KafkaAction.h:99
const Aws::Vector< KafkaActionHeader > & GetHeaders() const
void SetClientProperties(ClientPropertiesT &&value)
KafkaAction & AddClientProperties(ClientPropertiesKeyT &&key, ClientPropertiesValueT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaAction & WithTopic(TopicT &&value)
Definition KafkaAction.h:68
AWS_IOT_API KafkaAction & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaAction & WithKey(KeyT &&value)
Definition KafkaAction.h:86
AWS_IOT_API KafkaAction()=default
KafkaAction & AddHeaders(HeadersT &&value)
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