AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListClustersResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ClusterInfo.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 ListClustersResult() = default;
30
32
38 inline const Aws::Vector<ClusterInfo>& GetClusterInfoList() const { return m_clusterInfoList; }
39 template <typename ClusterInfoListT = Aws::Vector<ClusterInfo>>
40 void SetClusterInfoList(ClusterInfoListT&& value) {
41 m_clusterInfoListHasBeenSet = true;
42 m_clusterInfoList = std::forward<ClusterInfoListT>(value);
43 }
44 template <typename ClusterInfoListT = Aws::Vector<ClusterInfo>>
45 ListClustersResult& WithClusterInfoList(ClusterInfoListT&& value) {
46 SetClusterInfoList(std::forward<ClusterInfoListT>(value));
47 return *this;
48 }
49 template <typename ClusterInfoListT = ClusterInfo>
50 ListClustersResult& AddClusterInfoList(ClusterInfoListT&& value) {
51 m_clusterInfoListHasBeenSet = true;
52 m_clusterInfoList.emplace_back(std::forward<ClusterInfoListT>(value));
53 return *this;
54 }
56
58
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 ListClustersResult& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(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 ListClustersResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<ClusterInfo> m_clusterInfoList;
96
97 Aws::String m_nextToken;
98
99 Aws::String m_requestId;
100 bool m_clusterInfoListHasBeenSet = false;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Kafka
107} // 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_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