AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
42
43
45
48 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
49 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
50 template<typename DestinationArnT = Aws::String>
51 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
52 template<typename DestinationArnT = Aws::String>
53 KafkaAction& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
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) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
64 template<typename TopicT = Aws::String>
65 KafkaAction& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
67
69
72 inline const Aws::String& GetKey() const { return m_key; }
73 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
74 template<typename KeyT = Aws::String>
75 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
76 template<typename KeyT = Aws::String>
77 KafkaAction& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
79
81
84 inline const Aws::String& GetPartition() const { return m_partition; }
85 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
86 template<typename PartitionT = Aws::String>
87 void SetPartition(PartitionT&& value) { m_partitionHasBeenSet = true; m_partition = std::forward<PartitionT>(value); }
88 template<typename PartitionT = Aws::String>
89 KafkaAction& WithPartition(PartitionT&& value) { SetPartition(std::forward<PartitionT>(value)); return *this;}
91
93
96 inline const Aws::Map<Aws::String, Aws::String>& GetClientProperties() const { return m_clientProperties; }
97 inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; }
98 template<typename ClientPropertiesT = Aws::Map<Aws::String, Aws::String>>
99 void SetClientProperties(ClientPropertiesT&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = std::forward<ClientPropertiesT>(value); }
100 template<typename ClientPropertiesT = Aws::Map<Aws::String, Aws::String>>
101 KafkaAction& WithClientProperties(ClientPropertiesT&& value) { SetClientProperties(std::forward<ClientPropertiesT>(value)); return *this;}
102 template<typename ClientPropertiesKeyT = Aws::String, typename ClientPropertiesValueT = Aws::String>
103 KafkaAction& AddClientProperties(ClientPropertiesKeyT&& key, ClientPropertiesValueT&& value) {
104 m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::forward<ClientPropertiesKeyT>(key), std::forward<ClientPropertiesValueT>(value)); return *this;
105 }
107
109
112 inline const Aws::Vector<KafkaActionHeader>& GetHeaders() const { return m_headers; }
113 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
114 template<typename HeadersT = Aws::Vector<KafkaActionHeader>>
115 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers = std::forward<HeadersT>(value); }
116 template<typename HeadersT = Aws::Vector<KafkaActionHeader>>
117 KafkaAction& WithHeaders(HeadersT&& value) { SetHeaders(std::forward<HeadersT>(value)); return *this;}
118 template<typename HeadersT = KafkaActionHeader>
119 KafkaAction& AddHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers.emplace_back(std::forward<HeadersT>(value)); return *this; }
121 private:
122
123 Aws::String m_destinationArn;
124 bool m_destinationArnHasBeenSet = false;
125
126 Aws::String m_topic;
127 bool m_topicHasBeenSet = false;
128
129 Aws::String m_key;
130 bool m_keyHasBeenSet = false;
131
132 Aws::String m_partition;
133 bool m_partitionHasBeenSet = false;
134
135 Aws::Map<Aws::String, Aws::String> m_clientProperties;
136 bool m_clientPropertiesHasBeenSet = false;
137
139 bool m_headersHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace IoT
144} // namespace Aws
const Aws::String & GetTopic() const
Definition KafkaAction.h:60
KafkaAction & WithHeaders(HeadersT &&value)
bool DestinationArnHasBeenSet() const
Definition KafkaAction.h:49
KafkaAction & WithClientProperties(ClientPropertiesT &&value)
AWS_IOT_API KafkaAction(Aws::Utils::Json::JsonView jsonValue)
void SetKey(KeyT &&value)
Definition KafkaAction.h:75
KafkaAction & WithDestinationArn(DestinationArnT &&value)
Definition KafkaAction.h:53
void SetHeaders(HeadersT &&value)
void SetDestinationArn(DestinationArnT &&value)
Definition KafkaAction.h:51
bool ClientPropertiesHasBeenSet() const
Definition KafkaAction.h:97
KafkaAction & WithPartition(PartitionT &&value)
Definition KafkaAction.h:89
const Aws::Map< Aws::String, Aws::String > & GetClientProperties() const
Definition KafkaAction.h:96
const Aws::String & GetKey() const
Definition KafkaAction.h:72
void SetTopic(TopicT &&value)
Definition KafkaAction.h:63
const Aws::String & GetDestinationArn() const
Definition KafkaAction.h:48
const Aws::String & GetPartition() const
Definition KafkaAction.h:84
void SetPartition(PartitionT &&value)
Definition KafkaAction.h:87
const Aws::Vector< KafkaActionHeader > & GetHeaders() const
void SetClientProperties(ClientPropertiesT &&value)
Definition KafkaAction.h:99
KafkaAction & AddClientProperties(ClientPropertiesKeyT &&key, ClientPropertiesValueT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaAction & WithTopic(TopicT &&value)
Definition KafkaAction.h:65
AWS_IOT_API KafkaAction & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaAction & WithKey(KeyT &&value)
Definition KafkaAction.h:77
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