AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
44
45
47
50 inline const Aws::String& GetJobFlowId() const { return m_jobFlowId; }
51 inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
52 template<typename JobFlowIdT = Aws::String>
53 void SetJobFlowId(JobFlowIdT&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::forward<JobFlowIdT>(value); }
54 template<typename JobFlowIdT = Aws::String>
55 JobFlowDetail& WithJobFlowId(JobFlowIdT&& value) { SetJobFlowId(std::forward<JobFlowIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 JobFlowDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetLogUri() const { return m_logUri; }
75 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
76 template<typename LogUriT = Aws::String>
77 void SetLogUri(LogUriT&& value) { m_logUriHasBeenSet = true; m_logUri = std::forward<LogUriT>(value); }
78 template<typename LogUriT = Aws::String>
79 JobFlowDetail& WithLogUri(LogUriT&& value) { SetLogUri(std::forward<LogUriT>(value)); return *this;}
81
83
87 inline const Aws::String& GetLogEncryptionKmsKeyId() const { return m_logEncryptionKmsKeyId; }
88 inline bool LogEncryptionKmsKeyIdHasBeenSet() const { return m_logEncryptionKmsKeyIdHasBeenSet; }
89 template<typename LogEncryptionKmsKeyIdT = Aws::String>
90 void SetLogEncryptionKmsKeyId(LogEncryptionKmsKeyIdT&& value) { m_logEncryptionKmsKeyIdHasBeenSet = true; m_logEncryptionKmsKeyId = std::forward<LogEncryptionKmsKeyIdT>(value); }
91 template<typename LogEncryptionKmsKeyIdT = Aws::String>
92 JobFlowDetail& WithLogEncryptionKmsKeyId(LogEncryptionKmsKeyIdT&& value) { SetLogEncryptionKmsKeyId(std::forward<LogEncryptionKmsKeyIdT>(value)); return *this;}
94
96
101 inline const Aws::String& GetAmiVersion() const { return m_amiVersion; }
102 inline bool AmiVersionHasBeenSet() const { return m_amiVersionHasBeenSet; }
103 template<typename AmiVersionT = Aws::String>
104 void SetAmiVersion(AmiVersionT&& value) { m_amiVersionHasBeenSet = true; m_amiVersion = std::forward<AmiVersionT>(value); }
105 template<typename AmiVersionT = Aws::String>
106 JobFlowDetail& WithAmiVersion(AmiVersionT&& value) { SetAmiVersion(std::forward<AmiVersionT>(value)); return *this;}
108
110
113 inline const JobFlowExecutionStatusDetail& GetExecutionStatusDetail() const { return m_executionStatusDetail; }
114 inline bool ExecutionStatusDetailHasBeenSet() const { return m_executionStatusDetailHasBeenSet; }
115 template<typename ExecutionStatusDetailT = JobFlowExecutionStatusDetail>
116 void SetExecutionStatusDetail(ExecutionStatusDetailT&& value) { m_executionStatusDetailHasBeenSet = true; m_executionStatusDetail = std::forward<ExecutionStatusDetailT>(value); }
117 template<typename ExecutionStatusDetailT = JobFlowExecutionStatusDetail>
118 JobFlowDetail& WithExecutionStatusDetail(ExecutionStatusDetailT&& value) { SetExecutionStatusDetail(std::forward<ExecutionStatusDetailT>(value)); return *this;}
120
122
125 inline const JobFlowInstancesDetail& GetInstances() const { return m_instances; }
126 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
127 template<typename InstancesT = JobFlowInstancesDetail>
128 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances = std::forward<InstancesT>(value); }
129 template<typename InstancesT = JobFlowInstancesDetail>
130 JobFlowDetail& WithInstances(InstancesT&& value) { SetInstances(std::forward<InstancesT>(value)); return *this;}
132
134
137 inline const Aws::Vector<StepDetail>& GetSteps() const { return m_steps; }
138 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
139 template<typename StepsT = Aws::Vector<StepDetail>>
140 void SetSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps = std::forward<StepsT>(value); }
141 template<typename StepsT = Aws::Vector<StepDetail>>
142 JobFlowDetail& WithSteps(StepsT&& value) { SetSteps(std::forward<StepsT>(value)); return *this;}
143 template<typename StepsT = StepDetail>
144 JobFlowDetail& AddSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps.emplace_back(std::forward<StepsT>(value)); return *this; }
146
148
151 inline const Aws::Vector<BootstrapActionDetail>& GetBootstrapActions() const { return m_bootstrapActions; }
152 inline bool BootstrapActionsHasBeenSet() const { return m_bootstrapActionsHasBeenSet; }
153 template<typename BootstrapActionsT = Aws::Vector<BootstrapActionDetail>>
154 void SetBootstrapActions(BootstrapActionsT&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = std::forward<BootstrapActionsT>(value); }
155 template<typename BootstrapActionsT = Aws::Vector<BootstrapActionDetail>>
156 JobFlowDetail& WithBootstrapActions(BootstrapActionsT&& value) { SetBootstrapActions(std::forward<BootstrapActionsT>(value)); return *this;}
157 template<typename BootstrapActionsT = BootstrapActionDetail>
158 JobFlowDetail& AddBootstrapActions(BootstrapActionsT&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.emplace_back(std::forward<BootstrapActionsT>(value)); return *this; }
160
162
167 inline const Aws::Vector<Aws::String>& GetSupportedProducts() const { return m_supportedProducts; }
168 inline bool SupportedProductsHasBeenSet() const { return m_supportedProductsHasBeenSet; }
169 template<typename SupportedProductsT = Aws::Vector<Aws::String>>
170 void SetSupportedProducts(SupportedProductsT&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = std::forward<SupportedProductsT>(value); }
171 template<typename SupportedProductsT = Aws::Vector<Aws::String>>
172 JobFlowDetail& WithSupportedProducts(SupportedProductsT&& value) { SetSupportedProducts(std::forward<SupportedProductsT>(value)); return *this;}
173 template<typename SupportedProductsT = Aws::String>
174 JobFlowDetail& AddSupportedProducts(SupportedProductsT&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.emplace_back(std::forward<SupportedProductsT>(value)); return *this; }
176
178
191 inline bool GetVisibleToAllUsers() const { return m_visibleToAllUsers; }
192 inline bool VisibleToAllUsersHasBeenSet() const { return m_visibleToAllUsersHasBeenSet; }
193 inline void SetVisibleToAllUsers(bool value) { m_visibleToAllUsersHasBeenSet = true; m_visibleToAllUsers = value; }
194 inline JobFlowDetail& WithVisibleToAllUsers(bool value) { SetVisibleToAllUsers(value); return *this;}
196
198
202 inline const Aws::String& GetJobFlowRole() const { return m_jobFlowRole; }
203 inline bool JobFlowRoleHasBeenSet() const { return m_jobFlowRoleHasBeenSet; }
204 template<typename JobFlowRoleT = Aws::String>
205 void SetJobFlowRole(JobFlowRoleT&& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = std::forward<JobFlowRoleT>(value); }
206 template<typename JobFlowRoleT = Aws::String>
207 JobFlowDetail& WithJobFlowRole(JobFlowRoleT&& value) { SetJobFlowRole(std::forward<JobFlowRoleT>(value)); return *this;}
209
211
215 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
216 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
217 template<typename ServiceRoleT = Aws::String>
218 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
219 template<typename ServiceRoleT = Aws::String>
220 JobFlowDetail& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
222
224
230 inline const Aws::String& GetAutoScalingRole() const { return m_autoScalingRole; }
231 inline bool AutoScalingRoleHasBeenSet() const { return m_autoScalingRoleHasBeenSet; }
232 template<typename AutoScalingRoleT = Aws::String>
233 void SetAutoScalingRole(AutoScalingRoleT&& value) { m_autoScalingRoleHasBeenSet = true; m_autoScalingRole = std::forward<AutoScalingRoleT>(value); }
234 template<typename AutoScalingRoleT = Aws::String>
235 JobFlowDetail& WithAutoScalingRole(AutoScalingRoleT&& value) { SetAutoScalingRole(std::forward<AutoScalingRoleT>(value)); return *this;}
237
239
254 inline ScaleDownBehavior GetScaleDownBehavior() const { return m_scaleDownBehavior; }
255 inline bool ScaleDownBehaviorHasBeenSet() const { return m_scaleDownBehaviorHasBeenSet; }
256 inline void SetScaleDownBehavior(ScaleDownBehavior value) { m_scaleDownBehaviorHasBeenSet = true; m_scaleDownBehavior = value; }
259 private:
260
261 Aws::String m_jobFlowId;
262 bool m_jobFlowIdHasBeenSet = false;
263
264 Aws::String m_name;
265 bool m_nameHasBeenSet = false;
266
267 Aws::String m_logUri;
268 bool m_logUriHasBeenSet = false;
269
270 Aws::String m_logEncryptionKmsKeyId;
271 bool m_logEncryptionKmsKeyIdHasBeenSet = false;
272
273 Aws::String m_amiVersion;
274 bool m_amiVersionHasBeenSet = false;
275
276 JobFlowExecutionStatusDetail m_executionStatusDetail;
277 bool m_executionStatusDetailHasBeenSet = false;
278
279 JobFlowInstancesDetail m_instances;
280 bool m_instancesHasBeenSet = false;
281
283 bool m_stepsHasBeenSet = false;
284
285 Aws::Vector<BootstrapActionDetail> m_bootstrapActions;
286 bool m_bootstrapActionsHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_supportedProducts;
289 bool m_supportedProductsHasBeenSet = false;
290
291 bool m_visibleToAllUsers{false};
292 bool m_visibleToAllUsersHasBeenSet = false;
293
294 Aws::String m_jobFlowRole;
295 bool m_jobFlowRoleHasBeenSet = false;
296
297 Aws::String m_serviceRole;
298 bool m_serviceRoleHasBeenSet = false;
299
300 Aws::String m_autoScalingRole;
301 bool m_autoScalingRoleHasBeenSet = false;
302
304 bool m_scaleDownBehaviorHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace EMR
309} // namespace Aws
void SetInstances(InstancesT &&value)
JobFlowDetail & WithServiceRole(ServiceRoleT &&value)
void SetSupportedProducts(SupportedProductsT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
JobFlowDetail & WithLogEncryptionKmsKeyId(LogEncryptionKmsKeyIdT &&value)
void SetScaleDownBehavior(ScaleDownBehavior value)
bool LogEncryptionKmsKeyIdHasBeenSet() const
JobFlowDetail & WithAutoScalingRole(AutoScalingRoleT &&value)
void SetExecutionStatusDetail(ExecutionStatusDetailT &&value)
const JobFlowInstancesDetail & GetInstances() const
void SetServiceRole(ServiceRoleT &&value)
JobFlowDetail & WithExecutionStatusDetail(ExecutionStatusDetailT &&value)
void SetName(NameT &&value)
JobFlowDetail & WithBootstrapActions(BootstrapActionsT &&value)
JobFlowDetail & AddBootstrapActions(BootstrapActionsT &&value)
void SetLogUri(LogUriT &&value)
void SetJobFlowId(JobFlowIdT &&value)
void SetLogEncryptionKmsKeyId(LogEncryptionKmsKeyIdT &&value)
const Aws::String & GetName() const
const Aws::Vector< BootstrapActionDetail > & GetBootstrapActions() const
JobFlowDetail & WithScaleDownBehavior(ScaleDownBehavior value)
JobFlowDetail & WithSteps(StepsT &&value)
const Aws::String & GetLogUri() const
JobFlowDetail & AddSteps(StepsT &&value)
JobFlowDetail & WithSupportedProducts(SupportedProductsT &&value)
AWS_EMR_API JobFlowDetail()=default
const Aws::String & GetJobFlowId() const
void SetVisibleToAllUsers(bool value)
JobFlowDetail & WithLogUri(LogUriT &&value)
JobFlowDetail & WithJobFlowRole(JobFlowRoleT &&value)
void SetAutoScalingRole(AutoScalingRoleT &&value)
const JobFlowExecutionStatusDetail & GetExecutionStatusDetail() const
const Aws::Vector< StepDetail > & GetSteps() const
JobFlowDetail & WithJobFlowId(JobFlowIdT &&value)
AWS_EMR_API JobFlowDetail(Aws::Utils::Json::JsonView jsonValue)
void SetJobFlowRole(JobFlowRoleT &&value)
const Aws::String & GetJobFlowRole() const
JobFlowDetail & WithInstances(InstancesT &&value)
AWS_EMR_API JobFlowDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ScaleDownBehavior GetScaleDownBehavior() const
JobFlowDetail & WithAmiVersion(AmiVersionT &&value)
JobFlowDetail & WithName(NameT &&value)
const Aws::String & GetAutoScalingRole() const
void SetAmiVersion(AmiVersionT &&value)
const Aws::String & GetServiceRole() const
const Aws::Vector< Aws::String > & GetSupportedProducts() const
const Aws::String & GetLogEncryptionKmsKeyId() const
bool ExecutionStatusDetailHasBeenSet() const
const Aws::String & GetAmiVersion() const
void SetSteps(StepsT &&value)
JobFlowDetail & WithVisibleToAllUsers(bool value)
JobFlowDetail & AddSupportedProducts(SupportedProductsT &&value)
void SetBootstrapActions(BootstrapActionsT &&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