AWS SDK for C++

AWS SDK for C++ Version 1.11.769

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