AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/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 EMR {
24namespace Model {
32 public:
33 AWS_EMR_API ListClustersResult() = default;
36
38
41 inline const Aws::Vector<ClusterSummary>& GetClusters() const { return m_clusters; }
42 template <typename ClustersT = Aws::Vector<ClusterSummary>>
43 void SetClusters(ClustersT&& value) {
44 m_clustersHasBeenSet = true;
45 m_clusters = std::forward<ClustersT>(value);
46 }
47 template <typename ClustersT = Aws::Vector<ClusterSummary>>
48 ListClustersResult& WithClusters(ClustersT&& value) {
49 SetClusters(std::forward<ClustersT>(value));
50 return *this;
51 }
52 template <typename ClustersT = ClusterSummary>
53 ListClustersResult& AddClusters(ClustersT&& value) {
54 m_clustersHasBeenSet = true;
55 m_clusters.emplace_back(std::forward<ClustersT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetMarker() const { return m_marker; }
65 template <typename MarkerT = Aws::String>
66 void SetMarker(MarkerT&& value) {
67 m_markerHasBeenSet = true;
68 m_marker = std::forward<MarkerT>(value);
69 }
70 template <typename MarkerT = Aws::String>
71 ListClustersResult& WithMarker(MarkerT&& value) {
72 SetMarker(std::forward<MarkerT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
86 ListClustersResult& WithRequestId(RequestIdT&& value) {
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_marker;
95
96 Aws::String m_requestId;
97 bool m_clustersHasBeenSet = false;
98 bool m_markerHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EMR
104} // namespace Aws
AWS_EMR_API ListClustersResult()=default
const Aws::String & GetMarker() const
ListClustersResult & WithMarker(MarkerT &&value)
void SetRequestId(RequestIdT &&value)
ListClustersResult & WithClusters(ClustersT &&value)
ListClustersResult & WithRequestId(RequestIdT &&value)
AWS_EMR_API ListClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EMR_API ListClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListClustersResult & AddClusters(ClustersT &&value)
const Aws::String & GetRequestId() const
const Aws::Vector< ClusterSummary > & GetClusters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue