AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeTopicResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/TopicState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Kafka {
24namespace Model {
26 public:
27 AWS_KAFKA_API DescribeTopicResult() = default;
30
32
37 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
38 template <typename TopicArnT = Aws::String>
39 void SetTopicArn(TopicArnT&& value) {
40 m_topicArnHasBeenSet = true;
41 m_topicArn = std::forward<TopicArnT>(value);
42 }
43 template <typename TopicArnT = Aws::String>
44 DescribeTopicResult& WithTopicArn(TopicArnT&& value) {
45 SetTopicArn(std::forward<TopicArnT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetTopicName() const { return m_topicName; }
56 template <typename TopicNameT = Aws::String>
57 void SetTopicName(TopicNameT&& value) {
58 m_topicNameHasBeenSet = true;
59 m_topicName = std::forward<TopicNameT>(value);
60 }
61 template <typename TopicNameT = Aws::String>
62 DescribeTopicResult& WithTopicName(TopicNameT&& value) {
63 SetTopicName(std::forward<TopicNameT>(value));
64 return *this;
65 }
67
69
73 inline int GetReplicationFactor() const { return m_replicationFactor; }
74 inline void SetReplicationFactor(int value) {
75 m_replicationFactorHasBeenSet = true;
76 m_replicationFactor = value;
77 }
80 return *this;
81 }
83
85
89 inline int GetPartitionCount() const { return m_partitionCount; }
90 inline void SetPartitionCount(int value) {
91 m_partitionCountHasBeenSet = true;
92 m_partitionCount = value;
93 }
95 SetPartitionCount(value);
96 return *this;
97 }
99
101
105 inline const Aws::String& GetConfigs() const { return m_configs; }
106 template <typename ConfigsT = Aws::String>
107 void SetConfigs(ConfigsT&& value) {
108 m_configsHasBeenSet = true;
109 m_configs = std::forward<ConfigsT>(value);
110 }
111 template <typename ConfigsT = Aws::String>
112 DescribeTopicResult& WithConfigs(ConfigsT&& value) {
113 SetConfigs(std::forward<ConfigsT>(value));
114 return *this;
115 }
117
119
124 inline TopicState GetStatus() const { return m_status; }
125 inline void SetStatus(TopicState value) {
126 m_statusHasBeenSet = true;
127 m_status = value;
128 }
130 SetStatus(value);
131 return *this;
132 }
134
136
137 inline const Aws::String& GetRequestId() const { return m_requestId; }
138 template <typename RequestIdT = Aws::String>
139 void SetRequestId(RequestIdT&& value) {
140 m_requestIdHasBeenSet = true;
141 m_requestId = std::forward<RequestIdT>(value);
142 }
143 template <typename RequestIdT = Aws::String>
144 DescribeTopicResult& WithRequestId(RequestIdT&& value) {
145 SetRequestId(std::forward<RequestIdT>(value));
146 return *this;
147 }
149 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
150
151 private:
152 Aws::String m_topicArn;
153
154 Aws::String m_topicName;
155
156 int m_replicationFactor{0};
157
158 int m_partitionCount{0};
159
160 Aws::String m_configs;
161
163
164 Aws::String m_requestId;
165 Aws::Http::HttpResponseCode m_HttpResponseCode;
166 bool m_topicArnHasBeenSet = false;
167 bool m_topicNameHasBeenSet = false;
168 bool m_replicationFactorHasBeenSet = false;
169 bool m_partitionCountHasBeenSet = false;
170 bool m_configsHasBeenSet = false;
171 bool m_statusHasBeenSet = false;
172 bool m_requestIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Kafka
177} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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