AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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/pcs/PCS_EXPORTS.h>
10#include <aws/pcs/model/ClusterSummary.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 PCS {
24namespace Model {
26 public:
27 AWS_PCS_API ListClustersResult() = default;
30
32
35 inline const Aws::Vector<ClusterSummary>& GetClusters() const { return m_clusters; }
36 template <typename ClustersT = Aws::Vector<ClusterSummary>>
37 void SetClusters(ClustersT&& value) {
38 m_clustersHasBeenSet = true;
39 m_clusters = std::forward<ClustersT>(value);
40 }
41 template <typename ClustersT = Aws::Vector<ClusterSummary>>
42 ListClustersResult& WithClusters(ClustersT&& value) {
43 SetClusters(std::forward<ClustersT>(value));
44 return *this;
45 }
46 template <typename ClustersT = ClusterSummary>
47 ListClustersResult& AddClusters(ClustersT&& value) {
48 m_clustersHasBeenSet = true;
49 m_clusters.emplace_back(std::forward<ClustersT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListClustersResult& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 ListClustersResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 bool m_clustersHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace PCS
103} // namespace Aws
ListClustersResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< ClusterSummary > & GetClusters() const
const Aws::String & GetRequestId() const
void SetNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
AWS_PCS_API ListClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListClustersResult & WithClusters(ClustersT &&value)
void SetRequestId(RequestIdT &&value)
ListClustersResult & WithRequestId(RequestIdT &&value)
AWS_PCS_API ListClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListClustersResult & AddClusters(ClustersT &&value)
AWS_PCS_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