AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeTopicResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/TopicState.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Kafka {
23namespace Model {
25 public:
26 AWS_KAFKA_API DescribeTopicResult() = default;
29
31
36 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
37 template <typename TopicArnT = Aws::String>
38 void SetTopicArn(TopicArnT&& value) {
39 m_topicArnHasBeenSet = true;
40 m_topicArn = std::forward<TopicArnT>(value);
41 }
42 template <typename TopicArnT = Aws::String>
43 DescribeTopicResult& WithTopicArn(TopicArnT&& value) {
44 SetTopicArn(std::forward<TopicArnT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetTopicName() const { return m_topicName; }
55 template <typename TopicNameT = Aws::String>
56 void SetTopicName(TopicNameT&& value) {
57 m_topicNameHasBeenSet = true;
58 m_topicName = std::forward<TopicNameT>(value);
59 }
60 template <typename TopicNameT = Aws::String>
61 DescribeTopicResult& WithTopicName(TopicNameT&& value) {
62 SetTopicName(std::forward<TopicNameT>(value));
63 return *this;
64 }
66
68
72 inline int GetReplicationFactor() const { return m_replicationFactor; }
73 inline void SetReplicationFactor(int value) {
74 m_replicationFactorHasBeenSet = true;
75 m_replicationFactor = value;
76 }
79 return *this;
80 }
82
84
88 inline int GetPartitionCount() const { return m_partitionCount; }
89 inline void SetPartitionCount(int value) {
90 m_partitionCountHasBeenSet = true;
91 m_partitionCount = value;
92 }
94 SetPartitionCount(value);
95 return *this;
96 }
98
100
104 inline const Aws::String& GetConfigs() const { return m_configs; }
105 template <typename ConfigsT = Aws::String>
106 void SetConfigs(ConfigsT&& value) {
107 m_configsHasBeenSet = true;
108 m_configs = std::forward<ConfigsT>(value);
109 }
110 template <typename ConfigsT = Aws::String>
111 DescribeTopicResult& WithConfigs(ConfigsT&& value) {
112 SetConfigs(std::forward<ConfigsT>(value));
113 return *this;
114 }
116
118
123 inline TopicState GetStatus() const { return m_status; }
124 inline void SetStatus(TopicState value) {
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
136 inline const Aws::String& GetRequestId() const { return m_requestId; }
137 template <typename RequestIdT = Aws::String>
138 void SetRequestId(RequestIdT&& value) {
139 m_requestIdHasBeenSet = true;
140 m_requestId = std::forward<RequestIdT>(value);
141 }
142 template <typename RequestIdT = Aws::String>
143 DescribeTopicResult& WithRequestId(RequestIdT&& value) {
144 SetRequestId(std::forward<RequestIdT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_topicArn;
150
151 Aws::String m_topicName;
152
153 int m_replicationFactor{0};
154
155 int m_partitionCount{0};
156
157 Aws::String m_configs;
158
160
161 Aws::String m_requestId;
162 bool m_topicArnHasBeenSet = false;
163 bool m_topicNameHasBeenSet = false;
164 bool m_replicationFactorHasBeenSet = false;
165 bool m_partitionCountHasBeenSet = false;
166 bool m_configsHasBeenSet = false;
167 bool m_statusHasBeenSet = false;
168 bool m_requestIdHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Kafka
173} // namespace Aws
DescribeTopicResult & WithTopicArn(TopicArnT &&value)
AWS_KAFKA_API DescribeTopicResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTopicResult & WithRequestId(RequestIdT &&value)
AWS_KAFKA_API DescribeTopicResult()=default
DescribeTopicResult & WithStatus(TopicState value)
AWS_KAFKA_API DescribeTopicResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetTopicArn() const
const Aws::String & GetTopicName() const
DescribeTopicResult & WithTopicName(TopicNameT &&value)
DescribeTopicResult & WithConfigs(ConfigsT &&value)
DescribeTopicResult & WithReplicationFactor(int value)
DescribeTopicResult & WithPartitionCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue