AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
ReplicationInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/ConsumerGroupReplication.h>
10#include <aws/kafka/model/TargetCompressionType.h>
11#include <aws/kafka/model/TopicReplication.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kafka {
23namespace Model {
24
32 public:
33 AWS_KAFKA_API ReplicationInfo() = default;
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ConsumerGroupReplication& GetConsumerGroupReplication() const { return m_consumerGroupReplication; }
43 inline bool ConsumerGroupReplicationHasBeenSet() const { return m_consumerGroupReplicationHasBeenSet; }
44 template <typename ConsumerGroupReplicationT = ConsumerGroupReplication>
45 void SetConsumerGroupReplication(ConsumerGroupReplicationT&& value) {
46 m_consumerGroupReplicationHasBeenSet = true;
47 m_consumerGroupReplication = std::forward<ConsumerGroupReplicationT>(value);
48 }
49 template <typename ConsumerGroupReplicationT = ConsumerGroupReplication>
50 ReplicationInfo& WithConsumerGroupReplication(ConsumerGroupReplicationT&& value) {
51 SetConsumerGroupReplication(std::forward<ConsumerGroupReplicationT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSourceKafkaClusterArn() const { return m_sourceKafkaClusterArn; }
61 inline bool SourceKafkaClusterArnHasBeenSet() const { return m_sourceKafkaClusterArnHasBeenSet; }
62 template <typename SourceKafkaClusterArnT = Aws::String>
63 void SetSourceKafkaClusterArn(SourceKafkaClusterArnT&& value) {
64 m_sourceKafkaClusterArnHasBeenSet = true;
65 m_sourceKafkaClusterArn = std::forward<SourceKafkaClusterArnT>(value);
66 }
67 template <typename SourceKafkaClusterArnT = Aws::String>
68 ReplicationInfo& WithSourceKafkaClusterArn(SourceKafkaClusterArnT&& value) {
69 SetSourceKafkaClusterArn(std::forward<SourceKafkaClusterArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSourceKafkaClusterId() const { return m_sourceKafkaClusterId; }
79 inline bool SourceKafkaClusterIdHasBeenSet() const { return m_sourceKafkaClusterIdHasBeenSet; }
80 template <typename SourceKafkaClusterIdT = Aws::String>
81 void SetSourceKafkaClusterId(SourceKafkaClusterIdT&& value) {
82 m_sourceKafkaClusterIdHasBeenSet = true;
83 m_sourceKafkaClusterId = std::forward<SourceKafkaClusterIdT>(value);
84 }
85 template <typename SourceKafkaClusterIdT = Aws::String>
86 ReplicationInfo& WithSourceKafkaClusterId(SourceKafkaClusterIdT&& value) {
87 SetSourceKafkaClusterId(std::forward<SourceKafkaClusterIdT>(value));
88 return *this;
89 }
91
93
96 inline TargetCompressionType GetTargetCompressionType() const { return m_targetCompressionType; }
97 inline bool TargetCompressionTypeHasBeenSet() const { return m_targetCompressionTypeHasBeenSet; }
99 m_targetCompressionTypeHasBeenSet = true;
100 m_targetCompressionType = value;
101 }
104 return *this;
105 }
107
109
112 inline const Aws::String& GetTargetKafkaClusterArn() const { return m_targetKafkaClusterArn; }
113 inline bool TargetKafkaClusterArnHasBeenSet() const { return m_targetKafkaClusterArnHasBeenSet; }
114 template <typename TargetKafkaClusterArnT = Aws::String>
115 void SetTargetKafkaClusterArn(TargetKafkaClusterArnT&& value) {
116 m_targetKafkaClusterArnHasBeenSet = true;
117 m_targetKafkaClusterArn = std::forward<TargetKafkaClusterArnT>(value);
118 }
119 template <typename TargetKafkaClusterArnT = Aws::String>
120 ReplicationInfo& WithTargetKafkaClusterArn(TargetKafkaClusterArnT&& value) {
121 SetTargetKafkaClusterArn(std::forward<TargetKafkaClusterArnT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetTargetKafkaClusterId() const { return m_targetKafkaClusterId; }
131 inline bool TargetKafkaClusterIdHasBeenSet() const { return m_targetKafkaClusterIdHasBeenSet; }
132 template <typename TargetKafkaClusterIdT = Aws::String>
133 void SetTargetKafkaClusterId(TargetKafkaClusterIdT&& value) {
134 m_targetKafkaClusterIdHasBeenSet = true;
135 m_targetKafkaClusterId = std::forward<TargetKafkaClusterIdT>(value);
136 }
137 template <typename TargetKafkaClusterIdT = Aws::String>
138 ReplicationInfo& WithTargetKafkaClusterId(TargetKafkaClusterIdT&& value) {
139 SetTargetKafkaClusterId(std::forward<TargetKafkaClusterIdT>(value));
140 return *this;
141 }
143
145
148 inline const TopicReplication& GetTopicReplication() const { return m_topicReplication; }
149 inline bool TopicReplicationHasBeenSet() const { return m_topicReplicationHasBeenSet; }
150 template <typename TopicReplicationT = TopicReplication>
151 void SetTopicReplication(TopicReplicationT&& value) {
152 m_topicReplicationHasBeenSet = true;
153 m_topicReplication = std::forward<TopicReplicationT>(value);
154 }
155 template <typename TopicReplicationT = TopicReplication>
156 ReplicationInfo& WithTopicReplication(TopicReplicationT&& value) {
157 SetTopicReplication(std::forward<TopicReplicationT>(value));
158 return *this;
159 }
161 private:
162 ConsumerGroupReplication m_consumerGroupReplication;
163
164 Aws::String m_sourceKafkaClusterArn;
165
166 Aws::String m_sourceKafkaClusterId;
167
169
170 Aws::String m_targetKafkaClusterArn;
171
172 Aws::String m_targetKafkaClusterId;
173
174 TopicReplication m_topicReplication;
175 bool m_consumerGroupReplicationHasBeenSet = false;
176 bool m_sourceKafkaClusterArnHasBeenSet = false;
177 bool m_sourceKafkaClusterIdHasBeenSet = false;
178 bool m_targetCompressionTypeHasBeenSet = false;
179 bool m_targetKafkaClusterArnHasBeenSet = false;
180 bool m_targetKafkaClusterIdHasBeenSet = false;
181 bool m_topicReplicationHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Kafka
186} // namespace Aws
ReplicationInfo & WithTargetKafkaClusterArn(TargetKafkaClusterArnT &&value)
void SetTargetKafkaClusterId(TargetKafkaClusterIdT &&value)
AWS_KAFKA_API ReplicationInfo()=default
ReplicationInfo & WithTargetCompressionType(TargetCompressionType value)
ReplicationInfo & WithTopicReplication(TopicReplicationT &&value)
TargetCompressionType GetTargetCompressionType() const
const ConsumerGroupReplication & GetConsumerGroupReplication() const
void SetTargetCompressionType(TargetCompressionType value)
const TopicReplication & GetTopicReplication() const
void SetSourceKafkaClusterId(SourceKafkaClusterIdT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTargetKafkaClusterId() const
void SetTopicReplication(TopicReplicationT &&value)
void SetSourceKafkaClusterArn(SourceKafkaClusterArnT &&value)
AWS_KAFKA_API ReplicationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetKafkaClusterArn(TargetKafkaClusterArnT &&value)
const Aws::String & GetSourceKafkaClusterId() const
ReplicationInfo & WithConsumerGroupReplication(ConsumerGroupReplicationT &&value)
void SetConsumerGroupReplication(ConsumerGroupReplicationT &&value)
ReplicationInfo & WithTargetKafkaClusterId(TargetKafkaClusterIdT &&value)
ReplicationInfo & WithSourceKafkaClusterArn(SourceKafkaClusterArnT &&value)
const Aws::String & GetSourceKafkaClusterArn() const
const Aws::String & GetTargetKafkaClusterArn() const
AWS_KAFKA_API ReplicationInfo(Aws::Utils::Json::JsonView jsonValue)
ReplicationInfo & WithSourceKafkaClusterId(SourceKafkaClusterIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue