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>
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>
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>
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>
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>
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>>
102 template<
typename ClientPropertiesKeyT = Aws::String,
typename ClientPropertiesValueT = Aws::String>
104 m_clientPropertiesHasBeenSet =
true; m_clientProperties.emplace(std::forward<ClientPropertiesKeyT>(key), std::forward<ClientPropertiesValueT>(value));
return *
this;
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>>
118 template<
typename HeadersT = KafkaActionHeader>
119 KafkaAction&
AddHeaders(HeadersT&& value) { m_headersHasBeenSet =
true; m_headers.emplace_back(std::forward<HeadersT>(value));
return *
this; }
124 bool m_destinationArnHasBeenSet =
false;
127 bool m_topicHasBeenSet =
false;
130 bool m_keyHasBeenSet =
false;
133 bool m_partitionHasBeenSet =
false;
136 bool m_clientPropertiesHasBeenSet =
false;
139 bool m_headersHasBeenSet =
false;
const Aws::String & GetTopic() const
KafkaAction & WithHeaders(HeadersT &&value)
bool DestinationArnHasBeenSet() const
KafkaAction & WithClientProperties(ClientPropertiesT &&value)
AWS_IOT_API KafkaAction(Aws::Utils::Json::JsonView jsonValue)
void SetKey(KeyT &&value)
KafkaAction & WithDestinationArn(DestinationArnT &&value)
void SetHeaders(HeadersT &&value)
bool HeadersHasBeenSet() const
void SetDestinationArn(DestinationArnT &&value)
bool ClientPropertiesHasBeenSet() const
KafkaAction & WithPartition(PartitionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientProperties() const
const Aws::String & GetKey() const
void SetTopic(TopicT &&value)
const Aws::String & GetDestinationArn() const
const Aws::String & GetPartition() const
void SetPartition(PartitionT &&value)
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
bool PartitionHasBeenSet() const
bool TopicHasBeenSet() const
KafkaAction & WithTopic(TopicT &&value)
AWS_IOT_API KafkaAction & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaAction & WithKey(KeyT &&value)
bool KeyHasBeenSet() const
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