AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TopicReplicationUpdate.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kafka
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_KAFKA_API TopicReplicationUpdate() = default;
39 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetCopyAccessControlListsForTopics() const { return m_copyAccessControlListsForTopics; }
48 inline bool CopyAccessControlListsForTopicsHasBeenSet() const { return m_copyAccessControlListsForTopicsHasBeenSet; }
49 inline void SetCopyAccessControlListsForTopics(bool value) { m_copyAccessControlListsForTopicsHasBeenSet = true; m_copyAccessControlListsForTopics = value; }
52
54
58 inline bool GetCopyTopicConfigurations() const { return m_copyTopicConfigurations; }
59 inline bool CopyTopicConfigurationsHasBeenSet() const { return m_copyTopicConfigurationsHasBeenSet; }
60 inline void SetCopyTopicConfigurations(bool value) { m_copyTopicConfigurationsHasBeenSet = true; m_copyTopicConfigurations = value; }
63
65
68 inline bool GetDetectAndCopyNewTopics() const { return m_detectAndCopyNewTopics; }
69 inline bool DetectAndCopyNewTopicsHasBeenSet() const { return m_detectAndCopyNewTopicsHasBeenSet; }
70 inline void SetDetectAndCopyNewTopics(bool value) { m_detectAndCopyNewTopicsHasBeenSet = true; m_detectAndCopyNewTopics = value; }
73
75
79 inline const Aws::Vector<Aws::String>& GetTopicsToExclude() const { return m_topicsToExclude; }
80 inline bool TopicsToExcludeHasBeenSet() const { return m_topicsToExcludeHasBeenSet; }
81 template<typename TopicsToExcludeT = Aws::Vector<Aws::String>>
82 void SetTopicsToExclude(TopicsToExcludeT&& value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude = std::forward<TopicsToExcludeT>(value); }
83 template<typename TopicsToExcludeT = Aws::Vector<Aws::String>>
84 TopicReplicationUpdate& WithTopicsToExclude(TopicsToExcludeT&& value) { SetTopicsToExclude(std::forward<TopicsToExcludeT>(value)); return *this;}
85 template<typename TopicsToExcludeT = Aws::String>
86 TopicReplicationUpdate& AddTopicsToExclude(TopicsToExcludeT&& value) { m_topicsToExcludeHasBeenSet = true; m_topicsToExclude.emplace_back(std::forward<TopicsToExcludeT>(value)); return *this; }
88
90
93 inline const Aws::Vector<Aws::String>& GetTopicsToReplicate() const { return m_topicsToReplicate; }
94 inline bool TopicsToReplicateHasBeenSet() const { return m_topicsToReplicateHasBeenSet; }
95 template<typename TopicsToReplicateT = Aws::Vector<Aws::String>>
96 void SetTopicsToReplicate(TopicsToReplicateT&& value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate = std::forward<TopicsToReplicateT>(value); }
97 template<typename TopicsToReplicateT = Aws::Vector<Aws::String>>
98 TopicReplicationUpdate& WithTopicsToReplicate(TopicsToReplicateT&& value) { SetTopicsToReplicate(std::forward<TopicsToReplicateT>(value)); return *this;}
99 template<typename TopicsToReplicateT = Aws::String>
100 TopicReplicationUpdate& AddTopicsToReplicate(TopicsToReplicateT&& value) { m_topicsToReplicateHasBeenSet = true; m_topicsToReplicate.emplace_back(std::forward<TopicsToReplicateT>(value)); return *this; }
102 private:
103
104 bool m_copyAccessControlListsForTopics{false};
105 bool m_copyAccessControlListsForTopicsHasBeenSet = false;
106
107 bool m_copyTopicConfigurations{false};
108 bool m_copyTopicConfigurationsHasBeenSet = false;
109
110 bool m_detectAndCopyNewTopics{false};
111 bool m_detectAndCopyNewTopicsHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_topicsToExclude;
114 bool m_topicsToExcludeHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_topicsToReplicate;
117 bool m_topicsToReplicateHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Kafka
122} // 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