AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicReplication.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/ReplicationStartingPosition.h>
9#include <aws/kafka/model/ReplicationTopicNameConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.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
35 {
36 public:
37 AWS_KAFKA_API TopicReplication();
40 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetCopyAccessControlListsForTopics() const{ return m_copyAccessControlListsForTopics; }
49 inline bool CopyAccessControlListsForTopicsHasBeenSet() const { return m_copyAccessControlListsForTopicsHasBeenSet; }
50 inline void SetCopyAccessControlListsForTopics(bool value) { m_copyAccessControlListsForTopicsHasBeenSet = true; m_copyAccessControlListsForTopics = value; }
53
55
59 inline bool GetCopyTopicConfigurations() const{ return m_copyTopicConfigurations; }
60 inline bool CopyTopicConfigurationsHasBeenSet() const { return m_copyTopicConfigurationsHasBeenSet; }
61 inline void SetCopyTopicConfigurations(bool value) { m_copyTopicConfigurationsHasBeenSet = true; m_copyTopicConfigurations = value; }
62 inline TopicReplication& WithCopyTopicConfigurations(bool value) { SetCopyTopicConfigurations(value); return *this;}
64
66
69 inline bool GetDetectAndCopyNewTopics() const{ return m_detectAndCopyNewTopics; }
70 inline bool DetectAndCopyNewTopicsHasBeenSet() const { return m_detectAndCopyNewTopicsHasBeenSet; }
71 inline void SetDetectAndCopyNewTopics(bool value) { m_detectAndCopyNewTopicsHasBeenSet = true; m_detectAndCopyNewTopics = value; }
72 inline TopicReplication& WithDetectAndCopyNewTopics(bool value) { SetDetectAndCopyNewTopics(value); return *this;}
74
76
80 inline const ReplicationStartingPosition& GetStartingPosition() const{ return m_startingPosition; }
81 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
82 inline void SetStartingPosition(const ReplicationStartingPosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
83 inline void SetStartingPosition(ReplicationStartingPosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
85 inline TopicReplication& WithStartingPosition(ReplicationStartingPosition&& value) { SetStartingPosition(std::move(value)); return *this;}
87
89
93 inline const ReplicationTopicNameConfiguration& GetTopicNameConfiguration() const{ return m_topicNameConfiguration; }
94 inline bool TopicNameConfigurationHasBeenSet() const { return m_topicNameConfigurationHasBeenSet; }
95 inline void SetTopicNameConfiguration(const ReplicationTopicNameConfiguration& value) { m_topicNameConfigurationHasBeenSet = true; m_topicNameConfiguration = value; }
96 inline void SetTopicNameConfiguration(ReplicationTopicNameConfiguration&& value) { m_topicNameConfigurationHasBeenSet = true; m_topicNameConfiguration = std::move(value); }
100
102
106 inline const Aws::Vector<Aws::String>& GetTopicsToExclude() const{ return m_topicsToExclude; }
107 inline bool TopicsToExcludeHasBeenSet() const { return m_topicsToExcludeHasBeenSet; }
108 inline void SetTopicsToExclude(const Aws::Vector<Aws::String>& value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude = value; }
109 inline void SetTopicsToExclude(Aws::Vector<Aws::String>&& value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude = std::move(value); }
111 inline TopicReplication& WithTopicsToExclude(Aws::Vector<Aws::String>&& value) { SetTopicsToExclude(std::move(value)); return *this;}
112 inline TopicReplication& AddTopicsToExclude(const Aws::String& value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude.push_back(value); return *this; }
113 inline TopicReplication& AddTopicsToExclude(Aws::String&& value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude.push_back(std::move(value)); return *this; }
114 inline TopicReplication& AddTopicsToExclude(const char* value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude.push_back(value); return *this; }
116
118
121 inline const Aws::Vector<Aws::String>& GetTopicsToReplicate() const{ return m_topicsToReplicate; }
122 inline bool TopicsToReplicateHasBeenSet() const { return m_topicsToReplicateHasBeenSet; }
123 inline void SetTopicsToReplicate(const Aws::Vector<Aws::String>& value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate = value; }
124 inline void SetTopicsToReplicate(Aws::Vector<Aws::String>&& value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate = std::move(value); }
126 inline TopicReplication& WithTopicsToReplicate(Aws::Vector<Aws::String>&& value) { SetTopicsToReplicate(std::move(value)); return *this;}
127 inline TopicReplication& AddTopicsToReplicate(const Aws::String& value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate.push_back(value); return *this; }
128 inline TopicReplication& AddTopicsToReplicate(Aws::String&& value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate.push_back(std::move(value)); return *this; }
129 inline TopicReplication& AddTopicsToReplicate(const char* value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate.push_back(value); return *this; }
131 private:
132
133 bool m_copyAccessControlListsForTopics;
134 bool m_copyAccessControlListsForTopicsHasBeenSet = false;
135
136 bool m_copyTopicConfigurations;
137 bool m_copyTopicConfigurationsHasBeenSet = false;
138
139 bool m_detectAndCopyNewTopics;
140 bool m_detectAndCopyNewTopicsHasBeenSet = false;
141
142 ReplicationStartingPosition m_startingPosition;
143 bool m_startingPositionHasBeenSet = false;
144
145 ReplicationTopicNameConfiguration m_topicNameConfiguration;
146 bool m_topicNameConfigurationHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_topicsToExclude;
149 bool m_topicsToExcludeHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_topicsToReplicate;
152 bool m_topicsToReplicateHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Kafka
157} // namespace Aws
TopicReplication & WithTopicsToExclude(Aws::Vector< Aws::String > &&value)
void SetStartingPosition(const ReplicationStartingPosition &value)
TopicReplication & WithDetectAndCopyNewTopics(bool value)
TopicReplication & WithTopicsToReplicate(const Aws::Vector< Aws::String > &value)
TopicReplication & AddTopicsToReplicate(Aws::String &&value)
TopicReplication & AddTopicsToExclude(Aws::String &&value)
void SetTopicsToReplicate(const Aws::Vector< Aws::String > &value)
void SetTopicsToExclude(Aws::Vector< Aws::String > &&value)
TopicReplication & AddTopicsToReplicate(const Aws::String &value)
TopicReplication & AddTopicsToExclude(const Aws::String &value)
const Aws::Vector< Aws::String > & GetTopicsToReplicate() const
TopicReplication & WithTopicNameConfiguration(ReplicationTopicNameConfiguration &&value)
void SetTopicsToExclude(const Aws::Vector< Aws::String > &value)
void SetTopicsToReplicate(Aws::Vector< Aws::String > &&value)
void SetTopicNameConfiguration(const ReplicationTopicNameConfiguration &value)
void SetTopicNameConfiguration(ReplicationTopicNameConfiguration &&value)
AWS_KAFKA_API TopicReplication(Aws::Utils::Json::JsonView jsonValue)
TopicReplication & WithTopicsToReplicate(Aws::Vector< Aws::String > &&value)
void SetCopyAccessControlListsForTopics(bool value)
TopicReplication & WithCopyAccessControlListsForTopics(bool value)
TopicReplication & WithTopicsToExclude(const Aws::Vector< Aws::String > &value)
TopicReplication & WithCopyTopicConfigurations(bool value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
TopicReplication & AddTopicsToReplicate(const char *value)
TopicReplication & WithStartingPosition(const ReplicationStartingPosition &value)
const ReplicationTopicNameConfiguration & GetTopicNameConfiguration() const
TopicReplication & WithTopicNameConfiguration(const ReplicationTopicNameConfiguration &value)
const Aws::Vector< Aws::String > & GetTopicsToExclude() const
void SetStartingPosition(ReplicationStartingPosition &&value)
TopicReplication & WithStartingPosition(ReplicationStartingPosition &&value)
const ReplicationStartingPosition & GetStartingPosition() const
AWS_KAFKA_API TopicReplication & operator=(Aws::Utils::Json::JsonView jsonValue)
TopicReplication & AddTopicsToExclude(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue