AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
UpdateTopicResult.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 UpdateTopicResult() = 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 UpdateTopicResult& WithTopicArn(TopicArnT&& value) {
45 SetTopicArn(std::forward<TopicArnT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::String& GetTopicName() const { return m_topicName; }
58 template <typename TopicNameT = Aws::String>
59 void SetTopicName(TopicNameT&& value) {
60 m_topicNameHasBeenSet = true;
61 m_topicName = std::forward<TopicNameT>(value);
62 }
63 template <typename TopicNameT = Aws::String>
64 UpdateTopicResult& WithTopicName(TopicNameT&& value) {
65 SetTopicName(std::forward<TopicNameT>(value));
66 return *this;
67 }
69
71
76 inline TopicState GetStatus() const { return m_status; }
77 inline void SetStatus(TopicState value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
96 UpdateTopicResult& WithRequestId(RequestIdT&& value) {
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
102
103 private:
104 Aws::String m_topicArn;
105
106 Aws::String m_topicName;
107
109
110 Aws::String m_requestId;
111 Aws::Http::HttpResponseCode m_HttpResponseCode;
112 bool m_topicArnHasBeenSet = false;
113 bool m_topicNameHasBeenSet = false;
114 bool m_statusHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Kafka
120} // namespace Aws
UpdateTopicResult & WithTopicArn(TopicArnT &&value)
const Aws::String & GetTopicArn() const
UpdateTopicResult & WithStatus(TopicState value)
UpdateTopicResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetTopicName() const
AWS_KAFKA_API UpdateTopicResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTopicName(TopicNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateTopicResult & WithTopicName(TopicNameT &&value)
void SetRequestId(RequestIdT &&value)
AWS_KAFKA_API UpdateTopicResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KAFKA_API UpdateTopicResult()=default
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue