AWS SDK for C++  1.9.19
AWS SDK for C++
ListInstancesResult.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 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
46 
50  inline void SetInstances(const Aws::Vector<Instance>& value) { m_instances = value; }
51 
55  inline void SetInstances(Aws::Vector<Instance>&& value) { m_instances = std::move(value); }
56 
60  inline ListInstancesResult& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
61 
65  inline ListInstancesResult& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
66 
70  inline ListInstancesResult& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
71 
75  inline ListInstancesResult& AddInstances(Instance&& value) { m_instances.push_back(std::move(value)); return *this; }
76 
77 
81  inline const Aws::String& GetMarker() const{ return m_marker; }
82 
86  inline void SetMarker(const Aws::String& value) { m_marker = value; }
87 
91  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
92 
96  inline void SetMarker(const char* value) { m_marker.assign(value); }
97 
101  inline ListInstancesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
102 
106  inline ListInstancesResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
107 
111  inline ListInstancesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
112 
113  private:
114 
115  Aws::Vector<Instance> m_instances;
116 
117  Aws::String m_marker;
118  };
119 
120 } // namespace Model
121 } // namespace EMR
122 } // namespace Aws
Aws::EMR::Model::ListInstancesResult::ListInstancesResult
ListInstancesResult()
Aws::EMR::Model::ListInstancesResult::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListInstancesResult.h:86
Aws::EMR::Model::ListInstancesResult
Definition: ListInstancesResult.h:35
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EMR::Model::ListInstancesResult::WithMarker
ListInstancesResult & WithMarker(const Aws::String &value)
Definition: ListInstancesResult.h:101
Aws::EMR::Model::ListInstancesResult::WithMarker
ListInstancesResult & WithMarker(Aws::String &&value)
Definition: ListInstancesResult.h:106
Aws::EMR::Model::ListInstancesResult::operator=
ListInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EMR::Model::Instance
Definition: Instance.h:37
EMR_EXPORTS.h
Instance.h
Aws::EMR::Model::ListInstancesResult::GetMarker
const Aws::String & GetMarker() const
Definition: ListInstancesResult.h:81
Aws::EMR::Model::ListInstancesResult::AddInstances
ListInstancesResult & AddInstances(Instance &&value)
Definition: ListInstancesResult.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::ListInstancesResult::WithInstances
ListInstancesResult & WithInstances(Aws::Vector< Instance > &&value)
Definition: ListInstancesResult.h:65
AWSVector.h
Aws::EMR::Model::ListInstancesResult::SetInstances
void SetInstances(Aws::Vector< Instance > &&value)
Definition: ListInstancesResult.h:55
Aws::EMR::Model::ListInstancesResult::GetInstances
const Aws::Vector< Instance > & GetInstances() const
Definition: ListInstancesResult.h:45
Aws::EMR::Model::ListInstancesResult::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListInstancesResult.h:91
Aws::EMR::Model::ListInstancesResult::SetInstances
void SetInstances(const Aws::Vector< Instance > &value)
Definition: ListInstancesResult.h:50
Aws::EMR::Model::ListInstancesResult::SetMarker
void SetMarker(const char *value)
Definition: ListInstancesResult.h:96
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::ListInstancesResult::AddInstances
ListInstancesResult & AddInstances(const Instance &value)
Definition: ListInstancesResult.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ListInstancesResult::WithMarker
ListInstancesResult & WithMarker(const char *value)
Definition: ListInstancesResult.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ListInstancesResult::ListInstancesResult
ListInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ListInstancesResult::WithInstances
ListInstancesResult & WithInstances(const Aws::Vector< Instance > &value)
Definition: ListInstancesResult.h:60