AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ListNodesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/NodeInfo.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Kafka {
25namespace Model {
27 public:
28 AWS_KAFKA_API ListNodesResult() = default;
31
33
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 template <typename NextTokenT = Aws::String>
44 void SetNextToken(NextTokenT&& value) {
45 m_nextTokenHasBeenSet = true;
46 m_nextToken = std::forward<NextTokenT>(value);
47 }
48 template <typename NextTokenT = Aws::String>
49 ListNodesResult& WithNextToken(NextTokenT&& value) {
50 SetNextToken(std::forward<NextTokenT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<NodeInfo>& GetNodeInfoList() const { return m_nodeInfoList; }
62 template <typename NodeInfoListT = Aws::Vector<NodeInfo>>
63 void SetNodeInfoList(NodeInfoListT&& value) {
64 m_nodeInfoListHasBeenSet = true;
65 m_nodeInfoList = std::forward<NodeInfoListT>(value);
66 }
67 template <typename NodeInfoListT = Aws::Vector<NodeInfo>>
68 ListNodesResult& WithNodeInfoList(NodeInfoListT&& value) {
69 SetNodeInfoList(std::forward<NodeInfoListT>(value));
70 return *this;
71 }
72 template <typename NodeInfoListT = NodeInfo>
73 ListNodesResult& AddNodeInfoList(NodeInfoListT&& value) {
74 m_nodeInfoListHasBeenSet = true;
75 m_nodeInfoList.emplace_back(std::forward<NodeInfoListT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 ListNodesResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::String m_nextToken;
98
99 Aws::Vector<NodeInfo> m_nodeInfoList;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_nextTokenHasBeenSet = false;
104 bool m_nodeInfoListHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Kafka
110} // namespace Aws
ListNodesResult & AddNodeInfoList(NodeInfoListT &&value)
AWS_KAFKA_API ListNodesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KAFKA_API ListNodesResult()=default
void SetRequestId(RequestIdT &&value)
void SetNodeInfoList(NodeInfoListT &&value)
AWS_KAFKA_API ListNodesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListNodesResult & WithNodeInfoList(NodeInfoListT &&value)
const Aws::String & GetNextToken() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
ListNodesResult & WithRequestId(RequestIdT &&value)
void SetNextToken(NextTokenT &&value)
const Aws::Vector< NodeInfo > & GetNodeInfoList() const
ListNodesResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue