AWS SDK for C++  1.9.21
AWS SDK for C++
ListClustersResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace EMR
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<ClusterSummary>& GetClusters() const{ return m_clusters; }
47 
51  inline void SetClusters(const Aws::Vector<ClusterSummary>& value) { m_clusters = value; }
52 
56  inline void SetClusters(Aws::Vector<ClusterSummary>&& value) { m_clusters = std::move(value); }
57 
61  inline ListClustersResult& WithClusters(const Aws::Vector<ClusterSummary>& value) { SetClusters(value); return *this;}
62 
66  inline ListClustersResult& WithClusters(Aws::Vector<ClusterSummary>&& value) { SetClusters(std::move(value)); return *this;}
67 
71  inline ListClustersResult& AddClusters(const ClusterSummary& value) { m_clusters.push_back(value); return *this; }
72 
76  inline ListClustersResult& AddClusters(ClusterSummary&& value) { m_clusters.push_back(std::move(value)); return *this; }
77 
78 
82  inline const Aws::String& GetMarker() const{ return m_marker; }
83 
87  inline void SetMarker(const Aws::String& value) { m_marker = value; }
88 
92  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
93 
97  inline void SetMarker(const char* value) { m_marker.assign(value); }
98 
102  inline ListClustersResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
103 
107  inline ListClustersResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
108 
112  inline ListClustersResult& WithMarker(const char* value) { SetMarker(value); return *this;}
113 
114  private:
115 
116  Aws::Vector<ClusterSummary> m_clusters;
117 
118  Aws::String m_marker;
119  };
120 
121 } // namespace Model
122 } // namespace EMR
123 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EMR::Model::ListClustersResult
Definition: ListClustersResult.h:36
Aws::EMR::Model::ListClustersResult::GetClusters
const Aws::Vector< ClusterSummary > & GetClusters() const
Definition: ListClustersResult.h:46
Aws::EMR::Model::ListClustersResult::GetMarker
const Aws::String & GetMarker() const
Definition: ListClustersResult.h:82
Aws::EMR::Model::ListClustersResult::SetClusters
void SetClusters(Aws::Vector< ClusterSummary > &&value)
Definition: ListClustersResult.h:56
Aws::EMR::Model::ListClustersResult::AddClusters
ListClustersResult & AddClusters(const ClusterSummary &value)
Definition: ListClustersResult.h:71
EMR_EXPORTS.h
Aws::EMR::Model::ListClustersResult::ListClustersResult
ListClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EMR::Model::ListClustersResult::ListClustersResult
ListClustersResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::ListClustersResult::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListClustersResult.h:92
Aws::EMR::Model::ListClustersResult::WithClusters
ListClustersResult & WithClusters(const Aws::Vector< ClusterSummary > &value)
Definition: ListClustersResult.h:61
AWSVector.h
Aws::EMR::Model::ListClustersResult::AddClusters
ListClustersResult & AddClusters(ClusterSummary &&value)
Definition: ListClustersResult.h:76
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::ListClustersResult::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListClustersResult.h:87
Aws::EMR::Model::ListClustersResult::SetClusters
void SetClusters(const Aws::Vector< ClusterSummary > &value)
Definition: ListClustersResult.h:51
Aws::EMR::Model::ListClustersResult::WithMarker
ListClustersResult & WithMarker(const Aws::String &value)
Definition: ListClustersResult.h:102
Aws::EMR::Model::ListClustersResult::WithMarker
ListClustersResult & WithMarker(Aws::String &&value)
Definition: ListClustersResult.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ListClustersResult::SetMarker
void SetMarker(const char *value)
Definition: ListClustersResult.h:97
ClusterSummary.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ClusterSummary
Definition: ClusterSummary.h:33
Aws::EMR::Model::ListClustersResult::WithClusters
ListClustersResult & WithClusters(Aws::Vector< ClusterSummary > &&value)
Definition: ListClustersResult.h:66
Aws::EMR::Model::ListClustersResult::WithMarker
ListClustersResult & WithMarker(const char *value)
Definition: ListClustersResult.h:112
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ListClustersResult::operator=
ListClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)