AWS SDK for C++

AWS SDK for C++ Version 1.11.814

Loading...
Searching...
No Matches
CreateReplicatorRequest.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/kafka/KafkaRequest.h>
11#include <aws/kafka/Kafka_EXPORTS.h>
12#include <aws/kafka/model/KafkaCluster.h>
13#include <aws/kafka/model/LogDelivery.h>
14#include <aws/kafka/model/ReplicationInfo.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Kafka {
20namespace Model {
21
29 public:
30 AWS_KAFKA_API CreateReplicatorRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicator"; }
37
38 AWS_KAFKA_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetDescription() const { return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 template <typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) {
48 m_descriptionHasBeenSet = true;
49 m_description = std::forward<DescriptionT>(value);
50 }
51 template <typename DescriptionT = Aws::String>
53 SetDescription(std::forward<DescriptionT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<KafkaCluster>& GetKafkaClusters() const { return m_kafkaClusters; }
63 inline bool KafkaClustersHasBeenSet() const { return m_kafkaClustersHasBeenSet; }
64 template <typename KafkaClustersT = Aws::Vector<KafkaCluster>>
65 void SetKafkaClusters(KafkaClustersT&& value) {
66 m_kafkaClustersHasBeenSet = true;
67 m_kafkaClusters = std::forward<KafkaClustersT>(value);
68 }
69 template <typename KafkaClustersT = Aws::Vector<KafkaCluster>>
70 CreateReplicatorRequest& WithKafkaClusters(KafkaClustersT&& value) {
71 SetKafkaClusters(std::forward<KafkaClustersT>(value));
72 return *this;
73 }
74 template <typename KafkaClustersT = KafkaCluster>
75 CreateReplicatorRequest& AddKafkaClusters(KafkaClustersT&& value) {
76 m_kafkaClustersHasBeenSet = true;
77 m_kafkaClusters.emplace_back(std::forward<KafkaClustersT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<ReplicationInfo>& GetReplicationInfoList() const { return m_replicationInfoList; }
88 inline bool ReplicationInfoListHasBeenSet() const { return m_replicationInfoListHasBeenSet; }
89 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfo>>
90 void SetReplicationInfoList(ReplicationInfoListT&& value) {
91 m_replicationInfoListHasBeenSet = true;
92 m_replicationInfoList = std::forward<ReplicationInfoListT>(value);
93 }
94 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfo>>
95 CreateReplicatorRequest& WithReplicationInfoList(ReplicationInfoListT&& value) {
96 SetReplicationInfoList(std::forward<ReplicationInfoListT>(value));
97 return *this;
98 }
99 template <typename ReplicationInfoListT = ReplicationInfo>
100 CreateReplicatorRequest& AddReplicationInfoList(ReplicationInfoListT&& value) {
101 m_replicationInfoListHasBeenSet = true;
102 m_replicationInfoList.emplace_back(std::forward<ReplicationInfoListT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetReplicatorName() const { return m_replicatorName; }
113 inline bool ReplicatorNameHasBeenSet() const { return m_replicatorNameHasBeenSet; }
114 template <typename ReplicatorNameT = Aws::String>
115 void SetReplicatorName(ReplicatorNameT&& value) {
116 m_replicatorNameHasBeenSet = true;
117 m_replicatorName = std::forward<ReplicatorNameT>(value);
118 }
119 template <typename ReplicatorNameT = Aws::String>
120 CreateReplicatorRequest& WithReplicatorName(ReplicatorNameT&& value) {
121 SetReplicatorName(std::forward<ReplicatorNameT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
132 inline bool ServiceExecutionRoleArnHasBeenSet() const { return m_serviceExecutionRoleArnHasBeenSet; }
133 template <typename ServiceExecutionRoleArnT = Aws::String>
134 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
135 m_serviceExecutionRoleArnHasBeenSet = true;
136 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
137 }
138 template <typename ServiceExecutionRoleArnT = Aws::String>
139 CreateReplicatorRequest& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
140 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 CreateReplicatorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
168
170
173 inline const LogDelivery& GetLogDelivery() const { return m_logDelivery; }
174 inline bool LogDeliveryHasBeenSet() const { return m_logDeliveryHasBeenSet; }
175 template <typename LogDeliveryT = LogDelivery>
176 void SetLogDelivery(LogDeliveryT&& value) {
177 m_logDeliveryHasBeenSet = true;
178 m_logDelivery = std::forward<LogDeliveryT>(value);
179 }
180 template <typename LogDeliveryT = LogDelivery>
182 SetLogDelivery(std::forward<LogDeliveryT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_description;
188
189 Aws::Vector<KafkaCluster> m_kafkaClusters;
190
191 Aws::Vector<ReplicationInfo> m_replicationInfoList;
192
193 Aws::String m_replicatorName;
194
195 Aws::String m_serviceExecutionRoleArn;
196
198
199 LogDelivery m_logDelivery;
200 bool m_descriptionHasBeenSet = false;
201 bool m_kafkaClustersHasBeenSet = false;
202 bool m_replicationInfoListHasBeenSet = false;
203 bool m_replicatorNameHasBeenSet = false;
204 bool m_serviceExecutionRoleArnHasBeenSet = false;
205 bool m_tagsHasBeenSet = false;
206 bool m_logDeliveryHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace Kafka
211} // namespace Aws
const Aws::Vector< KafkaCluster > & GetKafkaClusters() const
CreateReplicatorRequest & WithDescription(DescriptionT &&value)
CreateReplicatorRequest & WithLogDelivery(LogDeliveryT &&value)
CreateReplicatorRequest & AddReplicationInfoList(ReplicationInfoListT &&value)
CreateReplicatorRequest & WithReplicatorName(ReplicatorNameT &&value)
void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
AWS_KAFKA_API CreateReplicatorRequest()=default
CreateReplicatorRequest & AddKafkaClusters(KafkaClustersT &&value)
CreateReplicatorRequest & WithKafkaClusters(KafkaClustersT &&value)
void SetReplicationInfoList(ReplicationInfoListT &&value)
CreateReplicatorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< ReplicationInfo > & GetReplicationInfoList() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateReplicatorRequest & WithServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
CreateReplicatorRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateReplicatorRequest & WithReplicationInfoList(ReplicationInfoListT &&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