AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
ListClustersResult.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/ClusterInfo.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 ListClustersResult() = default;
31
33
39 inline const Aws::Vector<ClusterInfo>& GetClusterInfoList() const { return m_clusterInfoList; }
40 template <typename ClusterInfoListT = Aws::Vector<ClusterInfo>>
41 void SetClusterInfoList(ClusterInfoListT&& value) {
42 m_clusterInfoListHasBeenSet = true;
43 m_clusterInfoList = std::forward<ClusterInfoListT>(value);
44 }
45 template <typename ClusterInfoListT = Aws::Vector<ClusterInfo>>
46 ListClustersResult& WithClusterInfoList(ClusterInfoListT&& value) {
47 SetClusterInfoList(std::forward<ClusterInfoListT>(value));
48 return *this;
49 }
50 template <typename ClusterInfoListT = ClusterInfo>
51 ListClustersResult& AddClusterInfoList(ClusterInfoListT&& value) {
52 m_clusterInfoListHasBeenSet = true;
53 m_clusterInfoList.emplace_back(std::forward<ClusterInfoListT>(value));
54 return *this;
55 }
57
59
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 template <typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) {
71 m_nextTokenHasBeenSet = true;
72 m_nextToken = std::forward<NextTokenT>(value);
73 }
74 template <typename NextTokenT = Aws::String>
75 ListClustersResult& WithNextToken(NextTokenT&& value) {
76 SetNextToken(std::forward<NextTokenT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 ListClustersResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::Vector<ClusterInfo> m_clusterInfoList;
99
100 Aws::String m_nextToken;
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_clusterInfoListHasBeenSet = false;
105 bool m_nextTokenHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Kafka
111} // namespace Aws
AWS_KAFKA_API ListClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ClusterInfo > & GetClusterInfoList() const
ListClustersResult & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_KAFKA_API ListClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetClusterInfoList(ClusterInfoListT &&value)
ListClustersResult & AddClusterInfoList(ClusterInfoListT &&value)
ListClustersResult & WithRequestId(RequestIdT &&value)
ListClustersResult & WithClusterInfoList(ClusterInfoListT &&value)
AWS_KAFKA_API ListClustersResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue