AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobFlowDetail.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/JobFlowExecutionStatusDetail.h>
10#include <aws/elasticmapreduce/model/JobFlowInstancesDetail.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/ScaleDownBehavior.h>
13#include <aws/elasticmapreduce/model/StepDetail.h>
14#include <aws/elasticmapreduce/model/BootstrapActionDetail.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EMR
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_EMR_API JobFlowDetail();
44
45
47
50 inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
51 inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
52 inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
53 inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); }
54 inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
55 inline JobFlowDetail& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
56 inline JobFlowDetail& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;}
57 inline JobFlowDetail& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline JobFlowDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline JobFlowDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline JobFlowDetail& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::String& GetLogUri() const{ return m_logUri; }
79 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
80 inline void SetLogUri(const Aws::String& value) { m_logUriHasBeenSet = true; m_logUri = value; }
81 inline void SetLogUri(Aws::String&& value) { m_logUriHasBeenSet = true; m_logUri = std::move(value); }
82 inline void SetLogUri(const char* value) { m_logUriHasBeenSet = true; m_logUri.assign(value); }
83 inline JobFlowDetail& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;}
84 inline JobFlowDetail& WithLogUri(Aws::String&& value) { SetLogUri(std::move(value)); return *this;}
85 inline JobFlowDetail& WithLogUri(const char* value) { SetLogUri(value); return *this;}
87
89
93 inline const Aws::String& GetLogEncryptionKmsKeyId() const{ return m_logEncryptionKmsKeyId; }
94 inline bool LogEncryptionKmsKeyIdHasBeenSet() const { return m_logEncryptionKmsKeyIdHasBeenSet; }
95 inline void SetLogEncryptionKmsKeyId(const Aws::String& value) { m_logEncryptionKmsKeyIdHasBeenSet = true; m_logEncryptionKmsKeyId = value; }
96 inline void SetLogEncryptionKmsKeyId(Aws::String&& value) { m_logEncryptionKmsKeyIdHasBeenSet = true; m_logEncryptionKmsKeyId = std::move(value); }
97 inline void SetLogEncryptionKmsKeyId(const char* value) { m_logEncryptionKmsKeyIdHasBeenSet = true; m_logEncryptionKmsKeyId.assign(value); }
98 inline JobFlowDetail& WithLogEncryptionKmsKeyId(const Aws::String& value) { SetLogEncryptionKmsKeyId(value); return *this;}
99 inline JobFlowDetail& WithLogEncryptionKmsKeyId(Aws::String&& value) { SetLogEncryptionKmsKeyId(std::move(value)); return *this;}
100 inline JobFlowDetail& WithLogEncryptionKmsKeyId(const char* value) { SetLogEncryptionKmsKeyId(value); return *this;}
102
104
109 inline const Aws::String& GetAmiVersion() const{ return m_amiVersion; }
110 inline bool AmiVersionHasBeenSet() const { return m_amiVersionHasBeenSet; }
111 inline void SetAmiVersion(const Aws::String& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
112 inline void SetAmiVersion(Aws::String&& value) { m_amiVersionHasBeenSet = true; m_amiVersion = std::move(value); }
113 inline void SetAmiVersion(const char* value) { m_amiVersionHasBeenSet = true; m_amiVersion.assign(value); }
114 inline JobFlowDetail& WithAmiVersion(const Aws::String& value) { SetAmiVersion(value); return *this;}
115 inline JobFlowDetail& WithAmiVersion(Aws::String&& value) { SetAmiVersion(std::move(value)); return *this;}
116 inline JobFlowDetail& WithAmiVersion(const char* value) { SetAmiVersion(value); return *this;}
118
120
123 inline const JobFlowExecutionStatusDetail& GetExecutionStatusDetail() const{ return m_executionStatusDetail; }
124 inline bool ExecutionStatusDetailHasBeenSet() const { return m_executionStatusDetailHasBeenSet; }
125 inline void SetExecutionStatusDetail(const JobFlowExecutionStatusDetail& value) { m_executionStatusDetailHasBeenSet = true; m_executionStatusDetail = value; }
126 inline void SetExecutionStatusDetail(JobFlowExecutionStatusDetail&& value) { m_executionStatusDetailHasBeenSet = true; m_executionStatusDetail = std::move(value); }
130
132
135 inline const JobFlowInstancesDetail& GetInstances() const{ return m_instances; }
136 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
137 inline void SetInstances(const JobFlowInstancesDetail& value) { m_instancesHasBeenSet = true; m_instances = value; }
138 inline void SetInstances(JobFlowInstancesDetail&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
139 inline JobFlowDetail& WithInstances(const JobFlowInstancesDetail& value) { SetInstances(value); return *this;}
140 inline JobFlowDetail& WithInstances(JobFlowInstancesDetail&& value) { SetInstances(std::move(value)); return *this;}
142
144
147 inline const Aws::Vector<StepDetail>& GetSteps() const{ return m_steps; }
148 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
149 inline void SetSteps(const Aws::Vector<StepDetail>& value) { m_stepsHasBeenSet = true; m_steps = value; }
150 inline void SetSteps(Aws::Vector<StepDetail>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
151 inline JobFlowDetail& WithSteps(const Aws::Vector<StepDetail>& value) { SetSteps(value); return *this;}
152 inline JobFlowDetail& WithSteps(Aws::Vector<StepDetail>&& value) { SetSteps(std::move(value)); return *this;}
153 inline JobFlowDetail& AddSteps(const StepDetail& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
154 inline JobFlowDetail& AddSteps(StepDetail&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; }
156
158
161 inline const Aws::Vector<BootstrapActionDetail>& GetBootstrapActions() const{ return m_bootstrapActions; }
162 inline bool BootstrapActionsHasBeenSet() const { return m_bootstrapActionsHasBeenSet; }
163 inline void SetBootstrapActions(const Aws::Vector<BootstrapActionDetail>& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
164 inline void SetBootstrapActions(Aws::Vector<BootstrapActionDetail>&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = std::move(value); }
167 inline JobFlowDetail& AddBootstrapActions(const BootstrapActionDetail& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
168 inline JobFlowDetail& AddBootstrapActions(BootstrapActionDetail&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(std::move(value)); return *this; }
170
172
177 inline const Aws::Vector<Aws::String>& GetSupportedProducts() const{ return m_supportedProducts; }
178 inline bool SupportedProductsHasBeenSet() const { return m_supportedProductsHasBeenSet; }
179 inline void SetSupportedProducts(const Aws::Vector<Aws::String>& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
180 inline void SetSupportedProducts(Aws::Vector<Aws::String>&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = std::move(value); }
182 inline JobFlowDetail& WithSupportedProducts(Aws::Vector<Aws::String>&& value) { SetSupportedProducts(std::move(value)); return *this;}
183 inline JobFlowDetail& AddSupportedProducts(const Aws::String& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
184 inline JobFlowDetail& AddSupportedProducts(Aws::String&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(std::move(value)); return *this; }
185 inline JobFlowDetail& AddSupportedProducts(const char* value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
187
189
202 inline bool GetVisibleToAllUsers() const{ return m_visibleToAllUsers; }
203 inline bool VisibleToAllUsersHasBeenSet() const { return m_visibleToAllUsersHasBeenSet; }
204 inline void SetVisibleToAllUsers(bool value) { m_visibleToAllUsersHasBeenSet = true; m_visibleToAllUsers = value; }
205 inline JobFlowDetail& WithVisibleToAllUsers(bool value) { SetVisibleToAllUsers(value); return *this;}
207
209
213 inline const Aws::String& GetJobFlowRole() const{ return m_jobFlowRole; }
214 inline bool JobFlowRoleHasBeenSet() const { return m_jobFlowRoleHasBeenSet; }
215 inline void SetJobFlowRole(const Aws::String& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
216 inline void SetJobFlowRole(Aws::String&& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = std::move(value); }
217 inline void SetJobFlowRole(const char* value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole.assign(value); }
218 inline JobFlowDetail& WithJobFlowRole(const Aws::String& value) { SetJobFlowRole(value); return *this;}
219 inline JobFlowDetail& WithJobFlowRole(Aws::String&& value) { SetJobFlowRole(std::move(value)); return *this;}
220 inline JobFlowDetail& WithJobFlowRole(const char* value) { SetJobFlowRole(value); return *this;}
222
224
228 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
229 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
230 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
231 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
232 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
233 inline JobFlowDetail& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
234 inline JobFlowDetail& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
235 inline JobFlowDetail& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
237
239
245 inline const Aws::String& GetAutoScalingRole() const{ return m_autoScalingRole; }
246 inline bool AutoScalingRoleHasBeenSet() const { return m_autoScalingRoleHasBeenSet; }
247 inline void SetAutoScalingRole(const Aws::String& value) { m_autoScalingRoleHasBeenSet = true; m_autoScalingRole = value; }
248 inline void SetAutoScalingRole(Aws::String&& value) { m_autoScalingRoleHasBeenSet = true; m_autoScalingRole = std::move(value); }
249 inline void SetAutoScalingRole(const char* value) { m_autoScalingRoleHasBeenSet = true; m_autoScalingRole.assign(value); }
250 inline JobFlowDetail& WithAutoScalingRole(const Aws::String& value) { SetAutoScalingRole(value); return *this;}
251 inline JobFlowDetail& WithAutoScalingRole(Aws::String&& value) { SetAutoScalingRole(std::move(value)); return *this;}
252 inline JobFlowDetail& WithAutoScalingRole(const char* value) { SetAutoScalingRole(value); return *this;}
254
256
271 inline const ScaleDownBehavior& GetScaleDownBehavior() const{ return m_scaleDownBehavior; }
272 inline bool ScaleDownBehaviorHasBeenSet() const { return m_scaleDownBehaviorHasBeenSet; }
273 inline void SetScaleDownBehavior(const ScaleDownBehavior& value) { m_scaleDownBehaviorHasBeenSet = true; m_scaleDownBehavior = value; }
274 inline void SetScaleDownBehavior(ScaleDownBehavior&& value) { m_scaleDownBehaviorHasBeenSet = true; m_scaleDownBehavior = std::move(value); }
275 inline JobFlowDetail& WithScaleDownBehavior(const ScaleDownBehavior& value) { SetScaleDownBehavior(value); return *this;}
276 inline JobFlowDetail& WithScaleDownBehavior(ScaleDownBehavior&& value) { SetScaleDownBehavior(std::move(value)); return *this;}
278 private:
279
280 Aws::String m_jobFlowId;
281 bool m_jobFlowIdHasBeenSet = false;
282
283 Aws::String m_name;
284 bool m_nameHasBeenSet = false;
285
286 Aws::String m_logUri;
287 bool m_logUriHasBeenSet = false;
288
289 Aws::String m_logEncryptionKmsKeyId;
290 bool m_logEncryptionKmsKeyIdHasBeenSet = false;
291
292 Aws::String m_amiVersion;
293 bool m_amiVersionHasBeenSet = false;
294
295 JobFlowExecutionStatusDetail m_executionStatusDetail;
296 bool m_executionStatusDetailHasBeenSet = false;
297
298 JobFlowInstancesDetail m_instances;
299 bool m_instancesHasBeenSet = false;
300
302 bool m_stepsHasBeenSet = false;
303
304 Aws::Vector<BootstrapActionDetail> m_bootstrapActions;
305 bool m_bootstrapActionsHasBeenSet = false;
306
307 Aws::Vector<Aws::String> m_supportedProducts;
308 bool m_supportedProductsHasBeenSet = false;
309
310 bool m_visibleToAllUsers;
311 bool m_visibleToAllUsersHasBeenSet = false;
312
313 Aws::String m_jobFlowRole;
314 bool m_jobFlowRoleHasBeenSet = false;
315
316 Aws::String m_serviceRole;
317 bool m_serviceRoleHasBeenSet = false;
318
319 Aws::String m_autoScalingRole;
320 bool m_autoScalingRoleHasBeenSet = false;
321
322 ScaleDownBehavior m_scaleDownBehavior;
323 bool m_scaleDownBehaviorHasBeenSet = false;
324 };
325
326} // namespace Model
327} // namespace EMR
328} // namespace Aws
void SetJobFlowId(const char *value)
JobFlowDetail & WithSteps(Aws::Vector< StepDetail > &&value)
JobFlowDetail & WithSupportedProducts(const Aws::Vector< Aws::String > &value)
void SetExecutionStatusDetail(const JobFlowExecutionStatusDetail &value)
JobFlowDetail & WithJobFlowRole(const char *value)
const ScaleDownBehavior & GetScaleDownBehavior() const
JobFlowDetail & WithLogEncryptionKmsKeyId(const Aws::String &value)
void SetAutoScalingRole(const Aws::String &value)
void SetLogEncryptionKmsKeyId(const char *value)
JobFlowDetail & WithAmiVersion(const Aws::String &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
JobFlowDetail & WithSupportedProducts(Aws::Vector< Aws::String > &&value)
JobFlowDetail & WithInstances(const JobFlowInstancesDetail &value)
void SetInstances(JobFlowInstancesDetail &&value)
void SetBootstrapActions(const Aws::Vector< BootstrapActionDetail > &value)
void SetJobFlowRole(const char *value)
bool LogEncryptionKmsKeyIdHasBeenSet() const
void SetSupportedProducts(Aws::Vector< Aws::String > &&value)
const JobFlowInstancesDetail & GetInstances() const
JobFlowDetail & WithName(Aws::String &&value)
void SetAutoScalingRole(const char *value)
JobFlowDetail & WithLogEncryptionKmsKeyId(Aws::String &&value)
void SetJobFlowId(const Aws::String &value)
void SetServiceRole(const Aws::String &value)
void SetServiceRole(Aws::String &&value)
void SetSteps(const Aws::Vector< StepDetail > &value)
void SetInstances(const JobFlowInstancesDetail &value)
const Aws::String & GetName() const
JobFlowDetail & WithScaleDownBehavior(ScaleDownBehavior &&value)
const Aws::Vector< BootstrapActionDetail > & GetBootstrapActions() const
void SetJobFlowId(Aws::String &&value)
const Aws::String & GetLogUri() const
JobFlowDetail & WithServiceRole(const Aws::String &value)
void SetServiceRole(const char *value)
void SetScaleDownBehavior(const ScaleDownBehavior &value)
void SetScaleDownBehavior(ScaleDownBehavior &&value)
JobFlowDetail & WithAmiVersion(const char *value)
void SetName(Aws::String &&value)
void SetAmiVersion(Aws::String &&value)
void SetLogEncryptionKmsKeyId(const Aws::String &value)
JobFlowDetail & WithAmiVersion(Aws::String &&value)
JobFlowDetail & WithJobFlowId(const Aws::String &value)
const Aws::String & GetJobFlowId() const
void SetBootstrapActions(Aws::Vector< BootstrapActionDetail > &&value)
void SetVisibleToAllUsers(bool value)
JobFlowDetail & WithName(const Aws::String &value)
JobFlowDetail & WithBootstrapActions(const Aws::Vector< BootstrapActionDetail > &value)
void SetExecutionStatusDetail(JobFlowExecutionStatusDetail &&value)
JobFlowDetail & WithLogUri(Aws::String &&value)
JobFlowDetail & WithName(const char *value)
JobFlowDetail & WithJobFlowId(const char *value)
JobFlowDetail & WithJobFlowId(Aws::String &&value)
void SetAutoScalingRole(Aws::String &&value)
JobFlowDetail & WithAutoScalingRole(const char *value)
void SetSteps(Aws::Vector< StepDetail > &&value)
JobFlowDetail & WithScaleDownBehavior(const ScaleDownBehavior &value)
JobFlowDetail & WithAutoScalingRole(Aws::String &&value)
JobFlowDetail & WithBootstrapActions(Aws::Vector< BootstrapActionDetail > &&value)
const JobFlowExecutionStatusDetail & GetExecutionStatusDetail() const
const Aws::Vector< StepDetail > & GetSteps() const
JobFlowDetail & AddBootstrapActions(const BootstrapActionDetail &value)
JobFlowDetail & AddSupportedProducts(const char *value)
JobFlowDetail & WithInstances(JobFlowInstancesDetail &&value)
JobFlowDetail & WithJobFlowRole(Aws::String &&value)
void SetLogUri(const char *value)
AWS_EMR_API JobFlowDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobFlowRole() const
void SetAmiVersion(const Aws::String &value)
void SetJobFlowRole(const Aws::String &value)
JobFlowDetail & AddSupportedProducts(Aws::String &&value)
AWS_EMR_API JobFlowDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
JobFlowDetail & WithServiceRole(const char *value)
void SetAmiVersion(const char *value)
JobFlowDetail & AddBootstrapActions(BootstrapActionDetail &&value)
JobFlowDetail & WithLogUri(const char *value)
JobFlowDetail & WithExecutionStatusDetail(const JobFlowExecutionStatusDetail &value)
void SetName(const Aws::String &value)
JobFlowDetail & WithServiceRole(Aws::String &&value)
void SetLogUri(const Aws::String &value)
JobFlowDetail & AddSupportedProducts(const Aws::String &value)
void SetName(const char *value)
const Aws::String & GetAutoScalingRole() const
void SetLogUri(Aws::String &&value)
JobFlowDetail & WithLogEncryptionKmsKeyId(const char *value)
const Aws::String & GetServiceRole() const
const Aws::Vector< Aws::String > & GetSupportedProducts() const
const Aws::String & GetLogEncryptionKmsKeyId() const
JobFlowDetail & WithExecutionStatusDetail(JobFlowExecutionStatusDetail &&value)
JobFlowDetail & WithLogUri(const Aws::String &value)
bool ExecutionStatusDetailHasBeenSet() const
JobFlowDetail & AddSteps(const StepDetail &value)
JobFlowDetail & WithAutoScalingRole(const Aws::String &value)
JobFlowDetail & WithSteps(const Aws::Vector< StepDetail > &value)
JobFlowDetail & WithJobFlowRole(const Aws::String &value)
void SetLogEncryptionKmsKeyId(Aws::String &&value)
const Aws::String & GetAmiVersion() const
JobFlowDetail & WithVisibleToAllUsers(bool value)
void SetSupportedProducts(const Aws::Vector< Aws::String > &value)
JobFlowDetail & AddSteps(StepDetail &&value)
void SetJobFlowRole(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue