AWS SDK for C++  0.14.3
AWS SDK for C++
JobFlowDetail.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace EMR
34 {
35 namespace Model
36 {
37 
42  {
43  public:
44  JobFlowDetail();
46  JobFlowDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
53 
57  inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
58 
62  inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
63 
67  inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
68 
72  inline JobFlowDetail& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
73 
77  inline JobFlowDetail& WithJobFlowId(Aws::String&& value) { SetJobFlowId(value); return *this;}
78 
82  inline JobFlowDetail& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 
97  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 
107  inline JobFlowDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
108 
112  inline JobFlowDetail& WithName(Aws::String&& value) { SetName(value); return *this;}
113 
117  inline JobFlowDetail& WithName(const char* value) { SetName(value); return *this;}
118 
122  inline const Aws::String& GetLogUri() const{ return m_logUri; }
123 
127  inline void SetLogUri(const Aws::String& value) { m_logUriHasBeenSet = true; m_logUri = value; }
128 
132  inline void SetLogUri(Aws::String&& value) { m_logUriHasBeenSet = true; m_logUri = value; }
133 
137  inline void SetLogUri(const char* value) { m_logUriHasBeenSet = true; m_logUri.assign(value); }
138 
142  inline JobFlowDetail& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;}
143 
147  inline JobFlowDetail& WithLogUri(Aws::String&& value) { SetLogUri(value); return *this;}
148 
152  inline JobFlowDetail& WithLogUri(const char* value) { SetLogUri(value); return *this;}
153 
162  inline const Aws::String& GetAmiVersion() const{ return m_amiVersion; }
163 
172  inline void SetAmiVersion(const Aws::String& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
173 
182  inline void SetAmiVersion(Aws::String&& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
183 
192  inline void SetAmiVersion(const char* value) { m_amiVersionHasBeenSet = true; m_amiVersion.assign(value); }
193 
202  inline JobFlowDetail& WithAmiVersion(const Aws::String& value) { SetAmiVersion(value); return *this;}
203 
212  inline JobFlowDetail& WithAmiVersion(Aws::String&& value) { SetAmiVersion(value); return *this;}
213 
222  inline JobFlowDetail& WithAmiVersion(const char* value) { SetAmiVersion(value); return *this;}
223 
227  inline const JobFlowExecutionStatusDetail& GetExecutionStatusDetail() const{ return m_executionStatusDetail; }
228 
232  inline void SetExecutionStatusDetail(const JobFlowExecutionStatusDetail& value) { m_executionStatusDetailHasBeenSet = true; m_executionStatusDetail = value; }
233 
237  inline void SetExecutionStatusDetail(JobFlowExecutionStatusDetail&& value) { m_executionStatusDetailHasBeenSet = true; m_executionStatusDetail = value; }
238 
242  inline JobFlowDetail& WithExecutionStatusDetail(const JobFlowExecutionStatusDetail& value) { SetExecutionStatusDetail(value); return *this;}
243 
247  inline JobFlowDetail& WithExecutionStatusDetail(JobFlowExecutionStatusDetail&& value) { SetExecutionStatusDetail(value); return *this;}
248 
252  inline const JobFlowInstancesDetail& GetInstances() const{ return m_instances; }
253 
257  inline void SetInstances(const JobFlowInstancesDetail& value) { m_instancesHasBeenSet = true; m_instances = value; }
258 
262  inline void SetInstances(JobFlowInstancesDetail&& value) { m_instancesHasBeenSet = true; m_instances = value; }
263 
267  inline JobFlowDetail& WithInstances(const JobFlowInstancesDetail& value) { SetInstances(value); return *this;}
268 
272  inline JobFlowDetail& WithInstances(JobFlowInstancesDetail&& value) { SetInstances(value); return *this;}
273 
277  inline const Aws::Vector<StepDetail>& GetSteps() const{ return m_steps; }
278 
282  inline void SetSteps(const Aws::Vector<StepDetail>& value) { m_stepsHasBeenSet = true; m_steps = value; }
283 
287  inline void SetSteps(Aws::Vector<StepDetail>&& value) { m_stepsHasBeenSet = true; m_steps = value; }
288 
292  inline JobFlowDetail& WithSteps(const Aws::Vector<StepDetail>& value) { SetSteps(value); return *this;}
293 
297  inline JobFlowDetail& WithSteps(Aws::Vector<StepDetail>&& value) { SetSteps(value); return *this;}
298 
302  inline JobFlowDetail& AddSteps(const StepDetail& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
303 
307  inline JobFlowDetail& AddSteps(StepDetail&& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
308 
312  inline const Aws::Vector<BootstrapActionDetail>& GetBootstrapActions() const{ return m_bootstrapActions; }
313 
317  inline void SetBootstrapActions(const Aws::Vector<BootstrapActionDetail>& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
318 
322  inline void SetBootstrapActions(Aws::Vector<BootstrapActionDetail>&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
323 
327  inline JobFlowDetail& WithBootstrapActions(const Aws::Vector<BootstrapActionDetail>& value) { SetBootstrapActions(value); return *this;}
328 
332  inline JobFlowDetail& WithBootstrapActions(Aws::Vector<BootstrapActionDetail>&& value) { SetBootstrapActions(value); return *this;}
333 
337  inline JobFlowDetail& AddBootstrapActions(const BootstrapActionDetail& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
338 
342  inline JobFlowDetail& AddBootstrapActions(BootstrapActionDetail&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
343 
349  inline const Aws::Vector<Aws::String>& GetSupportedProducts() const{ return m_supportedProducts; }
350 
356  inline void SetSupportedProducts(const Aws::Vector<Aws::String>& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
357 
363  inline void SetSupportedProducts(Aws::Vector<Aws::String>&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
364 
370  inline JobFlowDetail& WithSupportedProducts(const Aws::Vector<Aws::String>& value) { SetSupportedProducts(value); return *this;}
371 
377  inline JobFlowDetail& WithSupportedProducts(Aws::Vector<Aws::String>&& value) { SetSupportedProducts(value); return *this;}
378 
384  inline JobFlowDetail& AddSupportedProducts(const Aws::String& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
385 
391  inline JobFlowDetail& AddSupportedProducts(Aws::String&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
392 
398  inline JobFlowDetail& AddSupportedProducts(const char* value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
399 
408  inline bool GetVisibleToAllUsers() const{ return m_visibleToAllUsers; }
409 
418  inline void SetVisibleToAllUsers(bool value) { m_visibleToAllUsersHasBeenSet = true; m_visibleToAllUsers = value; }
419 
428  inline JobFlowDetail& WithVisibleToAllUsers(bool value) { SetVisibleToAllUsers(value); return *this;}
429 
434  inline const Aws::String& GetJobFlowRole() const{ return m_jobFlowRole; }
435 
440  inline void SetJobFlowRole(const Aws::String& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
441 
446  inline void SetJobFlowRole(Aws::String&& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
447 
452  inline void SetJobFlowRole(const char* value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole.assign(value); }
453 
458  inline JobFlowDetail& WithJobFlowRole(const Aws::String& value) { SetJobFlowRole(value); return *this;}
459 
464  inline JobFlowDetail& WithJobFlowRole(Aws::String&& value) { SetJobFlowRole(value); return *this;}
465 
470  inline JobFlowDetail& WithJobFlowRole(const char* value) { SetJobFlowRole(value); return *this;}
471 
476  inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
477 
482  inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
483 
488  inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
489 
494  inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
495 
500  inline JobFlowDetail& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
501 
506  inline JobFlowDetail& WithServiceRole(Aws::String&& value) { SetServiceRole(value); return *this;}
507 
512  inline JobFlowDetail& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
513 
514  private:
515  Aws::String m_jobFlowId;
516  bool m_jobFlowIdHasBeenSet;
517  Aws::String m_name;
518  bool m_nameHasBeenSet;
519  Aws::String m_logUri;
520  bool m_logUriHasBeenSet;
521  Aws::String m_amiVersion;
522  bool m_amiVersionHasBeenSet;
523  JobFlowExecutionStatusDetail m_executionStatusDetail;
524  bool m_executionStatusDetailHasBeenSet;
525  JobFlowInstancesDetail m_instances;
526  bool m_instancesHasBeenSet;
527  Aws::Vector<StepDetail> m_steps;
528  bool m_stepsHasBeenSet;
529  Aws::Vector<BootstrapActionDetail> m_bootstrapActions;
530  bool m_bootstrapActionsHasBeenSet;
531  Aws::Vector<Aws::String> m_supportedProducts;
532  bool m_supportedProductsHasBeenSet;
533  bool m_visibleToAllUsers;
534  bool m_visibleToAllUsersHasBeenSet;
535  Aws::String m_jobFlowRole;
536  bool m_jobFlowRoleHasBeenSet;
537  Aws::String m_serviceRole;
538  bool m_serviceRoleHasBeenSet;
539  };
540 
541 } // namespace Model
542 } // namespace EMR
543 } // namespace Aws
JobFlowDetail & WithVisibleToAllUsers(bool value)
JobFlowDetail & WithSupportedProducts(const Aws::Vector< Aws::String > &value)
void SetBootstrapActions(Aws::Vector< BootstrapActionDetail > &&value)
const Aws::String & GetJobFlowRole() const
JobFlowDetail & WithBootstrapActions(const Aws::Vector< BootstrapActionDetail > &value)
void SetLogUri(const Aws::String &value)
JobFlowDetail & WithJobFlowRole(const Aws::String &value)
JobFlowDetail & WithJobFlowRole(const char *value)
JobFlowDetail & WithJobFlowId(Aws::String &&value)
Definition: JobFlowDetail.h:77
void SetServiceRole(const Aws::String &value)
void SetServiceRole(const char *value)
void SetName(const char *value)
void SetSupportedProducts(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSupportedProducts() const
JobFlowDetail & AddBootstrapActions(const BootstrapActionDetail &value)
JobFlowDetail & WithSteps(const Aws::Vector< StepDetail > &value)
void SetAmiVersion(const char *value)
void SetJobFlowRole(const char *value)
const Aws::String & GetName() const
Definition: JobFlowDetail.h:87
JobFlowDetail & WithLogUri(const Aws::String &value)
JobFlowDetail & WithAmiVersion(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
JobFlowDetail & WithLogUri(const char *value)
void SetName(const Aws::String &value)
Definition: JobFlowDetail.h:92
JobFlowDetail & WithServiceRole(const Aws::String &value)
JobFlowDetail & WithName(const Aws::String &value)
void SetAmiVersion(Aws::String &&value)
JobFlowDetail & WithSupportedProducts(Aws::Vector< Aws::String > &&value)
void SetSteps(Aws::Vector< StepDetail > &&value)
JobFlowDetail & AddSteps(const StepDetail &value)
JobFlowDetail & WithInstances(JobFlowInstancesDetail &&value)
JobFlowDetail & WithJobFlowId(const char *value)
Definition: JobFlowDetail.h:82
void SetAmiVersion(const Aws::String &value)
JobFlowDetail & WithJobFlowRole(Aws::String &&value)
JobFlowDetail & AddBootstrapActions(BootstrapActionDetail &&value)
void SetSupportedProducts(Aws::Vector< Aws::String > &&value)
JobFlowDetail & AddSupportedProducts(const char *value)
JobFlowDetail & WithSteps(Aws::Vector< StepDetail > &&value)
JobFlowDetail & WithAmiVersion(const Aws::String &value)
JobFlowDetail & WithExecutionStatusDetail(const JobFlowExecutionStatusDetail &value)
const Aws::Vector< BootstrapActionDetail > & GetBootstrapActions() const
void SetServiceRole(Aws::String &&value)
JobFlowDetail & AddSteps(StepDetail &&value)
const Aws::Vector< StepDetail > & GetSteps() const
JobFlowDetail & AddSupportedProducts(const Aws::String &value)
JobFlowDetail & WithInstances(const JobFlowInstancesDetail &value)
void SetName(Aws::String &&value)
Definition: JobFlowDetail.h:97
void SetSteps(const Aws::Vector< StepDetail > &value)
void SetLogUri(const char *value)
JobFlowDetail & WithLogUri(Aws::String &&value)
void SetJobFlowRole(const Aws::String &value)
void SetExecutionStatusDetail(const JobFlowExecutionStatusDetail &value)
JobFlowDetail & WithServiceRole(const char *value)
JobFlowDetail & WithBootstrapActions(Aws::Vector< BootstrapActionDetail > &&value)
void SetInstances(JobFlowInstancesDetail &&value)
JobFlowDetail & WithExecutionStatusDetail(JobFlowExecutionStatusDetail &&value)
void SetLogUri(Aws::String &&value)
void SetBootstrapActions(const Aws::Vector< BootstrapActionDetail > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetServiceRole() const
void SetJobFlowRole(Aws::String &&value)
void SetVisibleToAllUsers(bool value)
void SetJobFlowId(const Aws::String &value)
Definition: JobFlowDetail.h:57
JobFlowDetail & WithName(Aws::String &&value)
JobFlowDetail & WithAmiVersion(const char *value)
const JobFlowExecutionStatusDetail & GetExecutionStatusDetail() const
const Aws::String & GetLogUri() const
void SetJobFlowId(const char *value)
Definition: JobFlowDetail.h:67
JobFlowDetail & WithName(const char *value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
const JobFlowInstancesDetail & GetInstances() const
JobFlowDetail & AddSupportedProducts(Aws::String &&value)
void SetJobFlowId(Aws::String &&value)
Definition: JobFlowDetail.h:62
const Aws::String & GetJobFlowId() const
Definition: JobFlowDetail.h:52
const Aws::String & GetAmiVersion() const
JobFlowDetail & WithServiceRole(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetInstances(const JobFlowInstancesDetail &value)
void SetExecutionStatusDetail(JobFlowExecutionStatusDetail &&value)
JobFlowDetail & WithJobFlowId(const Aws::String &value)
Definition: JobFlowDetail.h:72