AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TopicInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Kafka {
20namespace Model {
21
30class TopicInfo {
31 public:
32 AWS_KAFKA_API TopicInfo() = default;
33 AWS_KAFKA_API TopicInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
44 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
45 template <typename TopicArnT = Aws::String>
46 void SetTopicArn(TopicArnT&& value) {
47 m_topicArnHasBeenSet = true;
48 m_topicArn = std::forward<TopicArnT>(value);
49 }
50 template <typename TopicArnT = Aws::String>
51 TopicInfo& WithTopicArn(TopicArnT&& value) {
52 SetTopicArn(std::forward<TopicArnT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetTopicName() const { return m_topicName; }
64 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
65 template <typename TopicNameT = Aws::String>
66 void SetTopicName(TopicNameT&& value) {
67 m_topicNameHasBeenSet = true;
68 m_topicName = std::forward<TopicNameT>(value);
69 }
70 template <typename TopicNameT = Aws::String>
71 TopicInfo& WithTopicName(TopicNameT&& value) {
72 SetTopicName(std::forward<TopicNameT>(value));
73 return *this;
74 }
76
78
83 inline int GetReplicationFactor() const { return m_replicationFactor; }
84 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
85 inline void SetReplicationFactor(int value) {
86 m_replicationFactorHasBeenSet = true;
87 m_replicationFactor = value;
88 }
89 inline TopicInfo& WithReplicationFactor(int value) {
91 return *this;
92 }
94
96
101 inline int GetPartitionCount() const { return m_partitionCount; }
102 inline bool PartitionCountHasBeenSet() const { return m_partitionCountHasBeenSet; }
103 inline void SetPartitionCount(int value) {
104 m_partitionCountHasBeenSet = true;
105 m_partitionCount = value;
106 }
107 inline TopicInfo& WithPartitionCount(int value) {
108 SetPartitionCount(value);
109 return *this;
110 }
112
114
119 inline int GetOutOfSyncReplicaCount() const { return m_outOfSyncReplicaCount; }
120 inline bool OutOfSyncReplicaCountHasBeenSet() const { return m_outOfSyncReplicaCountHasBeenSet; }
121 inline void SetOutOfSyncReplicaCount(int value) {
122 m_outOfSyncReplicaCountHasBeenSet = true;
123 m_outOfSyncReplicaCount = value;
124 }
127 return *this;
128 }
130 private:
131 Aws::String m_topicArn;
132
133 Aws::String m_topicName;
134
135 int m_replicationFactor{0};
136
137 int m_partitionCount{0};
138
139 int m_outOfSyncReplicaCount{0};
140 bool m_topicArnHasBeenSet = false;
141 bool m_topicNameHasBeenSet = false;
142 bool m_replicationFactorHasBeenSet = false;
143 bool m_partitionCountHasBeenSet = false;
144 bool m_outOfSyncReplicaCountHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Kafka
149} // namespace Aws
bool TopicArnHasBeenSet() const
Definition TopicInfo.h:44
bool PartitionCountHasBeenSet() const
Definition TopicInfo.h:102
TopicInfo & WithPartitionCount(int value)
Definition TopicInfo.h:107
AWS_KAFKA_API TopicInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool OutOfSyncReplicaCountHasBeenSet() const
Definition TopicInfo.h:120
int GetReplicationFactor() const
Definition TopicInfo.h:83
void SetTopicName(TopicNameT &&value)
Definition TopicInfo.h:66
TopicInfo & WithTopicArn(TopicArnT &&value)
Definition TopicInfo.h:51
TopicInfo & WithReplicationFactor(int value)
Definition TopicInfo.h:89
int GetOutOfSyncReplicaCount() const
Definition TopicInfo.h:119
bool TopicNameHasBeenSet() const
Definition TopicInfo.h:64
void SetOutOfSyncReplicaCount(int value)
Definition TopicInfo.h:121
void SetTopicArn(TopicArnT &&value)
Definition TopicInfo.h:46
TopicInfo & WithOutOfSyncReplicaCount(int value)
Definition TopicInfo.h:125
void SetReplicationFactor(int value)
Definition TopicInfo.h:85
AWS_KAFKA_API TopicInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API TopicInfo()=default
const Aws::String & GetTopicArn() const
Definition TopicInfo.h:43
TopicInfo & WithTopicName(TopicNameT &&value)
Definition TopicInfo.h:71
void SetPartitionCount(int value)
Definition TopicInfo.h:103
const Aws::String & GetTopicName() const
Definition TopicInfo.h:63
bool ReplicationFactorHasBeenSet() const
Definition TopicInfo.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue