AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConsumerGroupReplication.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
33 {
34 public:
35 AWS_KAFKA_API ConsumerGroupReplication() = default;
38 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<Aws::String>& GetConsumerGroupsToExclude() const { return m_consumerGroupsToExclude; }
47 inline bool ConsumerGroupsToExcludeHasBeenSet() const { return m_consumerGroupsToExcludeHasBeenSet; }
48 template<typename ConsumerGroupsToExcludeT = Aws::Vector<Aws::String>>
49 void SetConsumerGroupsToExclude(ConsumerGroupsToExcludeT&& value) { m_consumerGroupsToExcludeHasBeenSet = true; m_consumerGroupsToExclude = std::forward<ConsumerGroupsToExcludeT>(value); }
50 template<typename ConsumerGroupsToExcludeT = Aws::Vector<Aws::String>>
51 ConsumerGroupReplication& WithConsumerGroupsToExclude(ConsumerGroupsToExcludeT&& value) { SetConsumerGroupsToExclude(std::forward<ConsumerGroupsToExcludeT>(value)); return *this;}
52 template<typename ConsumerGroupsToExcludeT = Aws::String>
53 ConsumerGroupReplication& AddConsumerGroupsToExclude(ConsumerGroupsToExcludeT&& value) { m_consumerGroupsToExcludeHasBeenSet = true; m_consumerGroupsToExclude.emplace_back(std::forward<ConsumerGroupsToExcludeT>(value)); return *this; }
55
57
61 inline const Aws::Vector<Aws::String>& GetConsumerGroupsToReplicate() const { return m_consumerGroupsToReplicate; }
62 inline bool ConsumerGroupsToReplicateHasBeenSet() const { return m_consumerGroupsToReplicateHasBeenSet; }
63 template<typename ConsumerGroupsToReplicateT = Aws::Vector<Aws::String>>
64 void SetConsumerGroupsToReplicate(ConsumerGroupsToReplicateT&& value) { m_consumerGroupsToReplicateHasBeenSet = true; m_consumerGroupsToReplicate = std::forward<ConsumerGroupsToReplicateT>(value); }
65 template<typename ConsumerGroupsToReplicateT = Aws::Vector<Aws::String>>
66 ConsumerGroupReplication& WithConsumerGroupsToReplicate(ConsumerGroupsToReplicateT&& value) { SetConsumerGroupsToReplicate(std::forward<ConsumerGroupsToReplicateT>(value)); return *this;}
67 template<typename ConsumerGroupsToReplicateT = Aws::String>
68 ConsumerGroupReplication& AddConsumerGroupsToReplicate(ConsumerGroupsToReplicateT&& value) { m_consumerGroupsToReplicateHasBeenSet = true; m_consumerGroupsToReplicate.emplace_back(std::forward<ConsumerGroupsToReplicateT>(value)); return *this; }
70
72
75 inline bool GetDetectAndCopyNewConsumerGroups() const { return m_detectAndCopyNewConsumerGroups; }
76 inline bool DetectAndCopyNewConsumerGroupsHasBeenSet() const { return m_detectAndCopyNewConsumerGroupsHasBeenSet; }
77 inline void SetDetectAndCopyNewConsumerGroups(bool value) { m_detectAndCopyNewConsumerGroupsHasBeenSet = true; m_detectAndCopyNewConsumerGroups = value; }
80
82
86 inline bool GetSynchroniseConsumerGroupOffsets() const { return m_synchroniseConsumerGroupOffsets; }
87 inline bool SynchroniseConsumerGroupOffsetsHasBeenSet() const { return m_synchroniseConsumerGroupOffsetsHasBeenSet; }
88 inline void SetSynchroniseConsumerGroupOffsets(bool value) { m_synchroniseConsumerGroupOffsetsHasBeenSet = true; m_synchroniseConsumerGroupOffsets = value; }
91 private:
92
93 Aws::Vector<Aws::String> m_consumerGroupsToExclude;
94 bool m_consumerGroupsToExcludeHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_consumerGroupsToReplicate;
97 bool m_consumerGroupsToReplicateHasBeenSet = false;
98
99 bool m_detectAndCopyNewConsumerGroups{false};
100 bool m_detectAndCopyNewConsumerGroupsHasBeenSet = false;
101
102 bool m_synchroniseConsumerGroupOffsets{false};
103 bool m_synchroniseConsumerGroupOffsetsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Kafka
108} // namespace Aws
ConsumerGroupReplication & WithConsumerGroupsToExclude(ConsumerGroupsToExcludeT &&value)
ConsumerGroupReplication & AddConsumerGroupsToReplicate(ConsumerGroupsToReplicateT &&value)
void SetConsumerGroupsToReplicate(ConsumerGroupsToReplicateT &&value)
ConsumerGroupReplication & WithSynchroniseConsumerGroupOffsets(bool value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API ConsumerGroupReplication & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API ConsumerGroupReplication(Aws::Utils::Json::JsonView jsonValue)
ConsumerGroupReplication & WithConsumerGroupsToReplicate(ConsumerGroupsToReplicateT &&value)
AWS_KAFKA_API ConsumerGroupReplication()=default
ConsumerGroupReplication & WithDetectAndCopyNewConsumerGroups(bool value)
const Aws::Vector< Aws::String > & GetConsumerGroupsToExclude() const
void SetConsumerGroupsToExclude(ConsumerGroupsToExcludeT &&value)
ConsumerGroupReplication & AddConsumerGroupsToExclude(ConsumerGroupsToExcludeT &&value)
const Aws::Vector< Aws::String > & GetConsumerGroupsToReplicate() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue