AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
UpdateReplicationInfoRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ConsumerGroupReplicationUpdate.h>
11#include <aws/kafka/model/LogDelivery.h>
12#include <aws/kafka/model/TopicReplicationUpdate.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Kafka {
18namespace Model {
19
27 public:
28 AWS_KAFKA_API UpdateReplicationInfoRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateReplicationInfo"; }
35
36 AWS_KAFKA_API Aws::String SerializePayload() const override;
37
39
42 inline const ConsumerGroupReplicationUpdate& GetConsumerGroupReplication() const { return m_consumerGroupReplication; }
43 inline bool ConsumerGroupReplicationHasBeenSet() const { return m_consumerGroupReplicationHasBeenSet; }
44 template <typename ConsumerGroupReplicationT = ConsumerGroupReplicationUpdate>
45 void SetConsumerGroupReplication(ConsumerGroupReplicationT&& value) {
46 m_consumerGroupReplicationHasBeenSet = true;
47 m_consumerGroupReplication = std::forward<ConsumerGroupReplicationT>(value);
48 }
49 template <typename ConsumerGroupReplicationT = ConsumerGroupReplicationUpdate>
50 UpdateReplicationInfoRequest& WithConsumerGroupReplication(ConsumerGroupReplicationT&& value) {
51 SetConsumerGroupReplication(std::forward<ConsumerGroupReplicationT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
61 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
62 template <typename CurrentVersionT = Aws::String>
63 void SetCurrentVersion(CurrentVersionT&& value) {
64 m_currentVersionHasBeenSet = true;
65 m_currentVersion = std::forward<CurrentVersionT>(value);
66 }
67 template <typename CurrentVersionT = Aws::String>
69 SetCurrentVersion(std::forward<CurrentVersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
79 inline bool ReplicatorArnHasBeenSet() const { return m_replicatorArnHasBeenSet; }
80 template <typename ReplicatorArnT = Aws::String>
81 void SetReplicatorArn(ReplicatorArnT&& value) {
82 m_replicatorArnHasBeenSet = true;
83 m_replicatorArn = std::forward<ReplicatorArnT>(value);
84 }
85 template <typename ReplicatorArnT = Aws::String>
87 SetReplicatorArn(std::forward<ReplicatorArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSourceKafkaClusterArn() const { return m_sourceKafkaClusterArn; }
97 inline bool SourceKafkaClusterArnHasBeenSet() const { return m_sourceKafkaClusterArnHasBeenSet; }
98 template <typename SourceKafkaClusterArnT = Aws::String>
99 void SetSourceKafkaClusterArn(SourceKafkaClusterArnT&& value) {
100 m_sourceKafkaClusterArnHasBeenSet = true;
101 m_sourceKafkaClusterArn = std::forward<SourceKafkaClusterArnT>(value);
102 }
103 template <typename SourceKafkaClusterArnT = Aws::String>
105 SetSourceKafkaClusterArn(std::forward<SourceKafkaClusterArnT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetSourceKafkaClusterId() const { return m_sourceKafkaClusterId; }
115 inline bool SourceKafkaClusterIdHasBeenSet() const { return m_sourceKafkaClusterIdHasBeenSet; }
116 template <typename SourceKafkaClusterIdT = Aws::String>
117 void SetSourceKafkaClusterId(SourceKafkaClusterIdT&& value) {
118 m_sourceKafkaClusterIdHasBeenSet = true;
119 m_sourceKafkaClusterId = std::forward<SourceKafkaClusterIdT>(value);
120 }
121 template <typename SourceKafkaClusterIdT = Aws::String>
123 SetSourceKafkaClusterId(std::forward<SourceKafkaClusterIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetTargetKafkaClusterArn() const { return m_targetKafkaClusterArn; }
133 inline bool TargetKafkaClusterArnHasBeenSet() const { return m_targetKafkaClusterArnHasBeenSet; }
134 template <typename TargetKafkaClusterArnT = Aws::String>
135 void SetTargetKafkaClusterArn(TargetKafkaClusterArnT&& value) {
136 m_targetKafkaClusterArnHasBeenSet = true;
137 m_targetKafkaClusterArn = std::forward<TargetKafkaClusterArnT>(value);
138 }
139 template <typename TargetKafkaClusterArnT = Aws::String>
141 SetTargetKafkaClusterArn(std::forward<TargetKafkaClusterArnT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetTargetKafkaClusterId() const { return m_targetKafkaClusterId; }
151 inline bool TargetKafkaClusterIdHasBeenSet() const { return m_targetKafkaClusterIdHasBeenSet; }
152 template <typename TargetKafkaClusterIdT = Aws::String>
153 void SetTargetKafkaClusterId(TargetKafkaClusterIdT&& value) {
154 m_targetKafkaClusterIdHasBeenSet = true;
155 m_targetKafkaClusterId = std::forward<TargetKafkaClusterIdT>(value);
156 }
157 template <typename TargetKafkaClusterIdT = Aws::String>
159 SetTargetKafkaClusterId(std::forward<TargetKafkaClusterIdT>(value));
160 return *this;
161 }
163
165
168 inline const TopicReplicationUpdate& GetTopicReplication() const { return m_topicReplication; }
169 inline bool TopicReplicationHasBeenSet() const { return m_topicReplicationHasBeenSet; }
170 template <typename TopicReplicationT = TopicReplicationUpdate>
171 void SetTopicReplication(TopicReplicationT&& value) {
172 m_topicReplicationHasBeenSet = true;
173 m_topicReplication = std::forward<TopicReplicationT>(value);
174 }
175 template <typename TopicReplicationT = TopicReplicationUpdate>
177 SetTopicReplication(std::forward<TopicReplicationT>(value));
178 return *this;
179 }
181
183
186 inline const LogDelivery& GetLogDelivery() const { return m_logDelivery; }
187 inline bool LogDeliveryHasBeenSet() const { return m_logDeliveryHasBeenSet; }
188 template <typename LogDeliveryT = LogDelivery>
189 void SetLogDelivery(LogDeliveryT&& value) {
190 m_logDeliveryHasBeenSet = true;
191 m_logDelivery = std::forward<LogDeliveryT>(value);
192 }
193 template <typename LogDeliveryT = LogDelivery>
195 SetLogDelivery(std::forward<LogDeliveryT>(value));
196 return *this;
197 }
199 private:
200 ConsumerGroupReplicationUpdate m_consumerGroupReplication;
201
202 Aws::String m_currentVersion;
203
204 Aws::String m_replicatorArn;
205
206 Aws::String m_sourceKafkaClusterArn;
207
208 Aws::String m_sourceKafkaClusterId;
209
210 Aws::String m_targetKafkaClusterArn;
211
212 Aws::String m_targetKafkaClusterId;
213
214 TopicReplicationUpdate m_topicReplication;
215
216 LogDelivery m_logDelivery;
217 bool m_consumerGroupReplicationHasBeenSet = false;
218 bool m_currentVersionHasBeenSet = false;
219 bool m_replicatorArnHasBeenSet = false;
220 bool m_sourceKafkaClusterArnHasBeenSet = false;
221 bool m_sourceKafkaClusterIdHasBeenSet = false;
222 bool m_targetKafkaClusterArnHasBeenSet = false;
223 bool m_targetKafkaClusterIdHasBeenSet = false;
224 bool m_topicReplicationHasBeenSet = false;
225 bool m_logDeliveryHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace Kafka
230} // namespace Aws
UpdateReplicationInfoRequest & WithConsumerGroupReplication(ConsumerGroupReplicationT &&value)
const TopicReplicationUpdate & GetTopicReplication() const
void SetSourceKafkaClusterArn(SourceKafkaClusterArnT &&value)
UpdateReplicationInfoRequest & WithSourceKafkaClusterArn(SourceKafkaClusterArnT &&value)
UpdateReplicationInfoRequest & WithTopicReplication(TopicReplicationT &&value)
UpdateReplicationInfoRequest & WithCurrentVersion(CurrentVersionT &&value)
const ConsumerGroupReplicationUpdate & GetConsumerGroupReplication() const
UpdateReplicationInfoRequest & WithReplicatorArn(ReplicatorArnT &&value)
void SetConsumerGroupReplication(ConsumerGroupReplicationT &&value)
UpdateReplicationInfoRequest & WithTargetKafkaClusterId(TargetKafkaClusterIdT &&value)
UpdateReplicationInfoRequest & WithSourceKafkaClusterId(SourceKafkaClusterIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateReplicationInfoRequest & WithLogDelivery(LogDeliveryT &&value)
AWS_KAFKA_API UpdateReplicationInfoRequest()=default
void SetTargetKafkaClusterArn(TargetKafkaClusterArnT &&value)
UpdateReplicationInfoRequest & WithTargetKafkaClusterArn(TargetKafkaClusterArnT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String