AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/TopicReplicationUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Kafka {
17namespace Model {
18
26 public:
27 AWS_KAFKA_API UpdateReplicationInfoRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateReplicationInfo"; }
34
35 AWS_KAFKA_API Aws::String SerializePayload() const override;
36
38
41 inline const ConsumerGroupReplicationUpdate& GetConsumerGroupReplication() const { return m_consumerGroupReplication; }
42 inline bool ConsumerGroupReplicationHasBeenSet() const { return m_consumerGroupReplicationHasBeenSet; }
43 template <typename ConsumerGroupReplicationT = ConsumerGroupReplicationUpdate>
44 void SetConsumerGroupReplication(ConsumerGroupReplicationT&& value) {
45 m_consumerGroupReplicationHasBeenSet = true;
46 m_consumerGroupReplication = std::forward<ConsumerGroupReplicationT>(value);
47 }
48 template <typename ConsumerGroupReplicationT = ConsumerGroupReplicationUpdate>
49 UpdateReplicationInfoRequest& WithConsumerGroupReplication(ConsumerGroupReplicationT&& value) {
50 SetConsumerGroupReplication(std::forward<ConsumerGroupReplicationT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
60 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
61 template <typename CurrentVersionT = Aws::String>
62 void SetCurrentVersion(CurrentVersionT&& value) {
63 m_currentVersionHasBeenSet = true;
64 m_currentVersion = std::forward<CurrentVersionT>(value);
65 }
66 template <typename CurrentVersionT = Aws::String>
68 SetCurrentVersion(std::forward<CurrentVersionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
78 inline bool ReplicatorArnHasBeenSet() const { return m_replicatorArnHasBeenSet; }
79 template <typename ReplicatorArnT = Aws::String>
80 void SetReplicatorArn(ReplicatorArnT&& value) {
81 m_replicatorArnHasBeenSet = true;
82 m_replicatorArn = std::forward<ReplicatorArnT>(value);
83 }
84 template <typename ReplicatorArnT = Aws::String>
86 SetReplicatorArn(std::forward<ReplicatorArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetSourceKafkaClusterArn() const { return m_sourceKafkaClusterArn; }
96 inline bool SourceKafkaClusterArnHasBeenSet() const { return m_sourceKafkaClusterArnHasBeenSet; }
97 template <typename SourceKafkaClusterArnT = Aws::String>
98 void SetSourceKafkaClusterArn(SourceKafkaClusterArnT&& value) {
99 m_sourceKafkaClusterArnHasBeenSet = true;
100 m_sourceKafkaClusterArn = std::forward<SourceKafkaClusterArnT>(value);
101 }
102 template <typename SourceKafkaClusterArnT = Aws::String>
104 SetSourceKafkaClusterArn(std::forward<SourceKafkaClusterArnT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTargetKafkaClusterArn() const { return m_targetKafkaClusterArn; }
114 inline bool TargetKafkaClusterArnHasBeenSet() const { return m_targetKafkaClusterArnHasBeenSet; }
115 template <typename TargetKafkaClusterArnT = Aws::String>
116 void SetTargetKafkaClusterArn(TargetKafkaClusterArnT&& value) {
117 m_targetKafkaClusterArnHasBeenSet = true;
118 m_targetKafkaClusterArn = std::forward<TargetKafkaClusterArnT>(value);
119 }
120 template <typename TargetKafkaClusterArnT = Aws::String>
122 SetTargetKafkaClusterArn(std::forward<TargetKafkaClusterArnT>(value));
123 return *this;
124 }
126
128
131 inline const TopicReplicationUpdate& GetTopicReplication() const { return m_topicReplication; }
132 inline bool TopicReplicationHasBeenSet() const { return m_topicReplicationHasBeenSet; }
133 template <typename TopicReplicationT = TopicReplicationUpdate>
134 void SetTopicReplication(TopicReplicationT&& value) {
135 m_topicReplicationHasBeenSet = true;
136 m_topicReplication = std::forward<TopicReplicationT>(value);
137 }
138 template <typename TopicReplicationT = TopicReplicationUpdate>
140 SetTopicReplication(std::forward<TopicReplicationT>(value));
141 return *this;
142 }
144 private:
145 ConsumerGroupReplicationUpdate m_consumerGroupReplication;
146
147 Aws::String m_currentVersion;
148
149 Aws::String m_replicatorArn;
150
151 Aws::String m_sourceKafkaClusterArn;
152
153 Aws::String m_targetKafkaClusterArn;
154
155 TopicReplicationUpdate m_topicReplication;
156 bool m_consumerGroupReplicationHasBeenSet = false;
157 bool m_currentVersionHasBeenSet = false;
158 bool m_replicatorArnHasBeenSet = false;
159 bool m_sourceKafkaClusterArnHasBeenSet = false;
160 bool m_targetKafkaClusterArnHasBeenSet = false;
161 bool m_topicReplicationHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Kafka
166} // 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)
virtual const char * GetServiceRequestName() const override
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