AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TopicReplicationUpdate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
30 public:
31 AWS_KAFKA_API TopicReplicationUpdate() = default;
34 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetCopyAccessControlListsForTopics() const { return m_copyAccessControlListsForTopics; }
42 inline bool CopyAccessControlListsForTopicsHasBeenSet() const { return m_copyAccessControlListsForTopicsHasBeenSet; }
43 inline void SetCopyAccessControlListsForTopics(bool value) {
44 m_copyAccessControlListsForTopicsHasBeenSet = true;
45 m_copyAccessControlListsForTopics = value;
46 }
49 return *this;
50 }
52
54
58 inline bool GetCopyTopicConfigurations() const { return m_copyTopicConfigurations; }
59 inline bool CopyTopicConfigurationsHasBeenSet() const { return m_copyTopicConfigurationsHasBeenSet; }
60 inline void SetCopyTopicConfigurations(bool value) {
61 m_copyTopicConfigurationsHasBeenSet = true;
62 m_copyTopicConfigurations = value;
63 }
66 return *this;
67 }
69
71
74 inline bool GetDetectAndCopyNewTopics() const { return m_detectAndCopyNewTopics; }
75 inline bool DetectAndCopyNewTopicsHasBeenSet() const { return m_detectAndCopyNewTopicsHasBeenSet; }
76 inline void SetDetectAndCopyNewTopics(bool value) {
77 m_detectAndCopyNewTopicsHasBeenSet = true;
78 m_detectAndCopyNewTopics = value;
79 }
82 return *this;
83 }
85
87
91 inline const Aws::Vector<Aws::String>& GetTopicsToExclude() const { return m_topicsToExclude; }
92 inline bool TopicsToExcludeHasBeenSet() const { return m_topicsToExcludeHasBeenSet; }
93 template <typename TopicsToExcludeT = Aws::Vector<Aws::String>>
94 void SetTopicsToExclude(TopicsToExcludeT&& value) {
95 m_topicsToExcludeHasBeenSet = true;
96 m_topicsToExclude = std::forward<TopicsToExcludeT>(value);
97 }
98 template <typename TopicsToExcludeT = Aws::Vector<Aws::String>>
99 TopicReplicationUpdate& WithTopicsToExclude(TopicsToExcludeT&& value) {
100 SetTopicsToExclude(std::forward<TopicsToExcludeT>(value));
101 return *this;
102 }
103 template <typename TopicsToExcludeT = Aws::String>
104 TopicReplicationUpdate& AddTopicsToExclude(TopicsToExcludeT&& value) {
105 m_topicsToExcludeHasBeenSet = true;
106 m_topicsToExclude.emplace_back(std::forward<TopicsToExcludeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<Aws::String>& GetTopicsToReplicate() const { return m_topicsToReplicate; }
116 inline bool TopicsToReplicateHasBeenSet() const { return m_topicsToReplicateHasBeenSet; }
117 template <typename TopicsToReplicateT = Aws::Vector<Aws::String>>
118 void SetTopicsToReplicate(TopicsToReplicateT&& value) {
119 m_topicsToReplicateHasBeenSet = true;
120 m_topicsToReplicate = std::forward<TopicsToReplicateT>(value);
121 }
122 template <typename TopicsToReplicateT = Aws::Vector<Aws::String>>
123 TopicReplicationUpdate& WithTopicsToReplicate(TopicsToReplicateT&& value) {
124 SetTopicsToReplicate(std::forward<TopicsToReplicateT>(value));
125 return *this;
126 }
127 template <typename TopicsToReplicateT = Aws::String>
128 TopicReplicationUpdate& AddTopicsToReplicate(TopicsToReplicateT&& value) {
129 m_topicsToReplicateHasBeenSet = true;
130 m_topicsToReplicate.emplace_back(std::forward<TopicsToReplicateT>(value));
131 return *this;
132 }
134 private:
135 bool m_copyAccessControlListsForTopics{false};
136
137 bool m_copyTopicConfigurations{false};
138
139 bool m_detectAndCopyNewTopics{false};
140
141 Aws::Vector<Aws::String> m_topicsToExclude;
142
143 Aws::Vector<Aws::String> m_topicsToReplicate;
144 bool m_copyAccessControlListsForTopicsHasBeenSet = false;
145 bool m_copyTopicConfigurationsHasBeenSet = false;
146 bool m_detectAndCopyNewTopicsHasBeenSet = false;
147 bool m_topicsToExcludeHasBeenSet = false;
148 bool m_topicsToReplicateHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace Kafka
153} // namespace Aws
TopicReplicationUpdate & AddTopicsToReplicate(TopicsToReplicateT &&value)
TopicReplicationUpdate & WithTopicsToReplicate(TopicsToReplicateT &&value)
TopicReplicationUpdate & AddTopicsToExclude(TopicsToExcludeT &&value)
TopicReplicationUpdate & WithDetectAndCopyNewTopics(bool value)
void SetTopicsToReplicate(TopicsToReplicateT &&value)
TopicReplicationUpdate & WithCopyTopicConfigurations(bool value)
TopicReplicationUpdate & WithTopicsToExclude(TopicsToExcludeT &&value)
const Aws::Vector< Aws::String > & GetTopicsToExclude() const
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTopicsToExclude(TopicsToExcludeT &&value)
AWS_KAFKA_API TopicReplicationUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API TopicReplicationUpdate()=default
const Aws::Vector< Aws::String > & GetTopicsToReplicate() const
TopicReplicationUpdate & WithCopyAccessControlListsForTopics(bool value)
AWS_KAFKA_API TopicReplicationUpdate(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue