AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationInfo.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/ConsumerGroupReplication.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kafka/model/TargetCompressionType.h>
11#include <aws/kafka/model/TopicReplication.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Kafka
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_KAFKA_API ReplicationInfo();
41 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ConsumerGroupReplication& GetConsumerGroupReplication() const{ return m_consumerGroupReplication; }
49 inline bool ConsumerGroupReplicationHasBeenSet() const { return m_consumerGroupReplicationHasBeenSet; }
50 inline void SetConsumerGroupReplication(const ConsumerGroupReplication& value) { m_consumerGroupReplicationHasBeenSet = true; m_consumerGroupReplication = value; }
51 inline void SetConsumerGroupReplication(ConsumerGroupReplication&& value) { m_consumerGroupReplicationHasBeenSet = true; m_consumerGroupReplication = std::move(value); }
55
57
60 inline const Aws::String& GetSourceKafkaClusterArn() const{ return m_sourceKafkaClusterArn; }
61 inline bool SourceKafkaClusterArnHasBeenSet() const { return m_sourceKafkaClusterArnHasBeenSet; }
62 inline void SetSourceKafkaClusterArn(const Aws::String& value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn = value; }
63 inline void SetSourceKafkaClusterArn(Aws::String&& value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn = std::move(value); }
64 inline void SetSourceKafkaClusterArn(const char* value) { m_sourceKafkaClusterArnHasBeenSet = true; m_sourceKafkaClusterArn.assign(value); }
66 inline ReplicationInfo& WithSourceKafkaClusterArn(Aws::String&& value) { SetSourceKafkaClusterArn(std::move(value)); return *this;}
67 inline ReplicationInfo& WithSourceKafkaClusterArn(const char* value) { SetSourceKafkaClusterArn(value); return *this;}
69
71
74 inline const TargetCompressionType& GetTargetCompressionType() const{ return m_targetCompressionType; }
75 inline bool TargetCompressionTypeHasBeenSet() const { return m_targetCompressionTypeHasBeenSet; }
76 inline void SetTargetCompressionType(const TargetCompressionType& value) { m_targetCompressionTypeHasBeenSet = true; m_targetCompressionType = value; }
77 inline void SetTargetCompressionType(TargetCompressionType&& value) { m_targetCompressionTypeHasBeenSet = true; m_targetCompressionType = std::move(value); }
81
83
86 inline const Aws::String& GetTargetKafkaClusterArn() const{ return m_targetKafkaClusterArn; }
87 inline bool TargetKafkaClusterArnHasBeenSet() const { return m_targetKafkaClusterArnHasBeenSet; }
88 inline void SetTargetKafkaClusterArn(const Aws::String& value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn = value; }
89 inline void SetTargetKafkaClusterArn(Aws::String&& value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn = std::move(value); }
90 inline void SetTargetKafkaClusterArn(const char* value) { m_targetKafkaClusterArnHasBeenSet = true; m_targetKafkaClusterArn.assign(value); }
92 inline ReplicationInfo& WithTargetKafkaClusterArn(Aws::String&& value) { SetTargetKafkaClusterArn(std::move(value)); return *this;}
93 inline ReplicationInfo& WithTargetKafkaClusterArn(const char* value) { SetTargetKafkaClusterArn(value); return *this;}
95
97
100 inline const TopicReplication& GetTopicReplication() const{ return m_topicReplication; }
101 inline bool TopicReplicationHasBeenSet() const { return m_topicReplicationHasBeenSet; }
102 inline void SetTopicReplication(const TopicReplication& value) { m_topicReplicationHasBeenSet = true; m_topicReplication = value; }
103 inline void SetTopicReplication(TopicReplication&& value) { m_topicReplicationHasBeenSet = true; m_topicReplication = std::move(value); }
104 inline ReplicationInfo& WithTopicReplication(const TopicReplication& value) { SetTopicReplication(value); return *this;}
105 inline ReplicationInfo& WithTopicReplication(TopicReplication&& value) { SetTopicReplication(std::move(value)); return *this;}
107 private:
108
109 ConsumerGroupReplication m_consumerGroupReplication;
110 bool m_consumerGroupReplicationHasBeenSet = false;
111
112 Aws::String m_sourceKafkaClusterArn;
113 bool m_sourceKafkaClusterArnHasBeenSet = false;
114
115 TargetCompressionType m_targetCompressionType;
116 bool m_targetCompressionTypeHasBeenSet = false;
117
118 Aws::String m_targetKafkaClusterArn;
119 bool m_targetKafkaClusterArnHasBeenSet = false;
120
121 TopicReplication m_topicReplication;
122 bool m_topicReplicationHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Kafka
127} // namespace Aws
void SetTopicReplication(TopicReplication &&value)
ReplicationInfo & WithSourceKafkaClusterArn(const char *value)
ReplicationInfo & WithSourceKafkaClusterArn(Aws::String &&value)
const ConsumerGroupReplication & GetConsumerGroupReplication() const
void SetTargetKafkaClusterArn(const char *value)
void SetTopicReplication(const TopicReplication &value)
const TopicReplication & GetTopicReplication() const
void SetSourceKafkaClusterArn(const char *value)
ReplicationInfo & WithTargetKafkaClusterArn(const Aws::String &value)
ReplicationInfo & WithTargetKafkaClusterArn(Aws::String &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const TargetCompressionType & GetTargetCompressionType() const
ReplicationInfo & WithTopicReplication(const TopicReplication &value)
ReplicationInfo & WithTargetCompressionType(TargetCompressionType &&value)
ReplicationInfo & WithConsumerGroupReplication(ConsumerGroupReplication &&value)
ReplicationInfo & WithTopicReplication(TopicReplication &&value)
AWS_KAFKA_API ReplicationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConsumerGroupReplication(const ConsumerGroupReplication &value)
void SetTargetCompressionType(const TargetCompressionType &value)
void SetTargetCompressionType(TargetCompressionType &&value)
void SetSourceKafkaClusterArn(const Aws::String &value)
ReplicationInfo & WithSourceKafkaClusterArn(const Aws::String &value)
ReplicationInfo & WithTargetCompressionType(const TargetCompressionType &value)
void SetTargetKafkaClusterArn(const Aws::String &value)
ReplicationInfo & WithTargetKafkaClusterArn(const char *value)
ReplicationInfo & WithConsumerGroupReplication(const ConsumerGroupReplication &value)
const Aws::String & GetSourceKafkaClusterArn() const
void SetTargetKafkaClusterArn(Aws::String &&value)
const Aws::String & GetTargetKafkaClusterArn() const
void SetConsumerGroupReplication(ConsumerGroupReplication &&value)
AWS_KAFKA_API ReplicationInfo(Aws::Utils::Json::JsonView jsonValue)
void SetSourceKafkaClusterArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue