AWS SDK for C++  1.9.20
AWS SDK for C++
AddInstanceGroupsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace EMR
25 {
26 namespace Model
27 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
45 
49  inline void SetJobFlowId(const Aws::String& value) { m_jobFlowId = value; }
50 
54  inline void SetJobFlowId(Aws::String&& value) { m_jobFlowId = std::move(value); }
55 
59  inline void SetJobFlowId(const char* value) { m_jobFlowId.assign(value); }
60 
64  inline AddInstanceGroupsResult& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
65 
69  inline AddInstanceGroupsResult& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;}
70 
74  inline AddInstanceGroupsResult& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
75 
76 
80  inline const Aws::Vector<Aws::String>& GetInstanceGroupIds() const{ return m_instanceGroupIds; }
81 
85  inline void SetInstanceGroupIds(const Aws::Vector<Aws::String>& value) { m_instanceGroupIds = value; }
86 
90  inline void SetInstanceGroupIds(Aws::Vector<Aws::String>&& value) { m_instanceGroupIds = std::move(value); }
91 
95  inline AddInstanceGroupsResult& WithInstanceGroupIds(const Aws::Vector<Aws::String>& value) { SetInstanceGroupIds(value); return *this;}
96 
100  inline AddInstanceGroupsResult& WithInstanceGroupIds(Aws::Vector<Aws::String>&& value) { SetInstanceGroupIds(std::move(value)); return *this;}
101 
105  inline AddInstanceGroupsResult& AddInstanceGroupIds(const Aws::String& value) { m_instanceGroupIds.push_back(value); return *this; }
106 
110  inline AddInstanceGroupsResult& AddInstanceGroupIds(Aws::String&& value) { m_instanceGroupIds.push_back(std::move(value)); return *this; }
111 
115  inline AddInstanceGroupsResult& AddInstanceGroupIds(const char* value) { m_instanceGroupIds.push_back(value); return *this; }
116 
117 
121  inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
122 
126  inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; }
127 
131  inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); }
132 
136  inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); }
137 
141  inline AddInstanceGroupsResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
142 
146  inline AddInstanceGroupsResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
147 
151  inline AddInstanceGroupsResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
152 
153  private:
154 
155  Aws::String m_jobFlowId;
156 
157  Aws::Vector<Aws::String> m_instanceGroupIds;
158 
159  Aws::String m_clusterArn;
160  };
161 
162 } // namespace Model
163 } // namespace EMR
164 } // namespace Aws
Aws::EMR::Model::AddInstanceGroupsResult
Definition: AddInstanceGroupsResult.h:34
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EMR::Model::AddInstanceGroupsResult::AddInstanceGroupsResult
AddInstanceGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EMR::Model::AddInstanceGroupsResult::AddInstanceGroupIds
AddInstanceGroupsResult & AddInstanceGroupIds(const Aws::String &value)
Definition: AddInstanceGroupsResult.h:105
EMR_EXPORTS.h
Aws::EMR::Model::AddInstanceGroupsResult::SetClusterArn
void SetClusterArn(const Aws::String &value)
Definition: AddInstanceGroupsResult.h:126
Aws::EMR::Model::AddInstanceGroupsResult::SetJobFlowId
void SetJobFlowId(const Aws::String &value)
Definition: AddInstanceGroupsResult.h:49
Aws::EMR::Model::AddInstanceGroupsResult::WithClusterArn
AddInstanceGroupsResult & WithClusterArn(const Aws::String &value)
Definition: AddInstanceGroupsResult.h:141
Aws::EMR::Model::AddInstanceGroupsResult::AddInstanceGroupsResult
AddInstanceGroupsResult()
Aws::EMR::Model::AddInstanceGroupsResult::GetInstanceGroupIds
const Aws::Vector< Aws::String > & GetInstanceGroupIds() const
Definition: AddInstanceGroupsResult.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::AddInstanceGroupsResult::WithInstanceGroupIds
AddInstanceGroupsResult & WithInstanceGroupIds(Aws::Vector< Aws::String > &&value)
Definition: AddInstanceGroupsResult.h:100
Aws::EMR::Model::AddInstanceGroupsResult::GetClusterArn
const Aws::String & GetClusterArn() const
Definition: AddInstanceGroupsResult.h:121
AWSVector.h
Aws::EMR::Model::AddInstanceGroupsResult::AddInstanceGroupIds
AddInstanceGroupsResult & AddInstanceGroupIds(Aws::String &&value)
Definition: AddInstanceGroupsResult.h:110
Aws::EMR::Model::AddInstanceGroupsResult::SetClusterArn
void SetClusterArn(const char *value)
Definition: AddInstanceGroupsResult.h:136
Aws::EMR::Model::AddInstanceGroupsResult::SetInstanceGroupIds
void SetInstanceGroupIds(const Aws::Vector< Aws::String > &value)
Definition: AddInstanceGroupsResult.h:85
Aws::EMR::Model::AddInstanceGroupsResult::GetJobFlowId
const Aws::String & GetJobFlowId() const
Definition: AddInstanceGroupsResult.h:44
Aws::EMR::Model::AddInstanceGroupsResult::WithClusterArn
AddInstanceGroupsResult & WithClusterArn(Aws::String &&value)
Definition: AddInstanceGroupsResult.h:146
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::AddInstanceGroupsResult::WithInstanceGroupIds
AddInstanceGroupsResult & WithInstanceGroupIds(const Aws::Vector< Aws::String > &value)
Definition: AddInstanceGroupsResult.h:95
Aws::EMR::Model::AddInstanceGroupsResult::WithJobFlowId
AddInstanceGroupsResult & WithJobFlowId(const Aws::String &value)
Definition: AddInstanceGroupsResult.h:64
Aws::EMR::Model::AddInstanceGroupsResult::WithClusterArn
AddInstanceGroupsResult & WithClusterArn(const char *value)
Definition: AddInstanceGroupsResult.h:151
Aws::EMR::Model::AddInstanceGroupsResult::operator=
AddInstanceGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::AddInstanceGroupsResult::AddInstanceGroupIds
AddInstanceGroupsResult & AddInstanceGroupIds(const char *value)
Definition: AddInstanceGroupsResult.h:115
Aws::EMR::Model::AddInstanceGroupsResult::SetJobFlowId
void SetJobFlowId(Aws::String &&value)
Definition: AddInstanceGroupsResult.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::AddInstanceGroupsResult::WithJobFlowId
AddInstanceGroupsResult & WithJobFlowId(Aws::String &&value)
Definition: AddInstanceGroupsResult.h:69
Aws::EMR::Model::AddInstanceGroupsResult::SetInstanceGroupIds
void SetInstanceGroupIds(Aws::Vector< Aws::String > &&value)
Definition: AddInstanceGroupsResult.h:90
Aws::EMR::Model::AddInstanceGroupsResult::WithJobFlowId
AddInstanceGroupsResult & WithJobFlowId(const char *value)
Definition: AddInstanceGroupsResult.h:74
Aws::EMR::Model::AddInstanceGroupsResult::SetClusterArn
void SetClusterArn(Aws::String &&value)
Definition: AddInstanceGroupsResult.h:131
Aws::EMR::Model::AddInstanceGroupsResult::SetJobFlowId
void SetJobFlowId(const char *value)
Definition: AddInstanceGroupsResult.h:59
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28