AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobFlowInstancesDetail.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/model/PlacementType.h>
11#include <aws/elasticmapreduce/model/InstanceGroupDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMR
25{
26namespace Model
27{
28
36 {
37 public:
42
43
45
48 inline const Aws::String& GetMasterInstanceType() const{ return m_masterInstanceType; }
49 inline bool MasterInstanceTypeHasBeenSet() const { return m_masterInstanceTypeHasBeenSet; }
50 inline void SetMasterInstanceType(const Aws::String& value) { m_masterInstanceTypeHasBeenSet = true; m_masterInstanceType = value; }
51 inline void SetMasterInstanceType(Aws::String&& value) { m_masterInstanceTypeHasBeenSet = true; m_masterInstanceType = std::move(value); }
52 inline void SetMasterInstanceType(const char* value) { m_masterInstanceTypeHasBeenSet = true; m_masterInstanceType.assign(value); }
54 inline JobFlowInstancesDetail& WithMasterInstanceType(Aws::String&& value) { SetMasterInstanceType(std::move(value)); return *this;}
55 inline JobFlowInstancesDetail& WithMasterInstanceType(const char* value) { SetMasterInstanceType(value); return *this;}
57
59
63 inline const Aws::String& GetMasterPublicDnsName() const{ return m_masterPublicDnsName; }
64 inline bool MasterPublicDnsNameHasBeenSet() const { return m_masterPublicDnsNameHasBeenSet; }
65 inline void SetMasterPublicDnsName(const Aws::String& value) { m_masterPublicDnsNameHasBeenSet = true; m_masterPublicDnsName = value; }
66 inline void SetMasterPublicDnsName(Aws::String&& value) { m_masterPublicDnsNameHasBeenSet = true; m_masterPublicDnsName = std::move(value); }
67 inline void SetMasterPublicDnsName(const char* value) { m_masterPublicDnsNameHasBeenSet = true; m_masterPublicDnsName.assign(value); }
69 inline JobFlowInstancesDetail& WithMasterPublicDnsName(Aws::String&& value) { SetMasterPublicDnsName(std::move(value)); return *this;}
70 inline JobFlowInstancesDetail& WithMasterPublicDnsName(const char* value) { SetMasterPublicDnsName(value); return *this;}
72
74
77 inline const Aws::String& GetMasterInstanceId() const{ return m_masterInstanceId; }
78 inline bool MasterInstanceIdHasBeenSet() const { return m_masterInstanceIdHasBeenSet; }
79 inline void SetMasterInstanceId(const Aws::String& value) { m_masterInstanceIdHasBeenSet = true; m_masterInstanceId = value; }
80 inline void SetMasterInstanceId(Aws::String&& value) { m_masterInstanceIdHasBeenSet = true; m_masterInstanceId = std::move(value); }
81 inline void SetMasterInstanceId(const char* value) { m_masterInstanceIdHasBeenSet = true; m_masterInstanceId.assign(value); }
82 inline JobFlowInstancesDetail& WithMasterInstanceId(const Aws::String& value) { SetMasterInstanceId(value); return *this;}
83 inline JobFlowInstancesDetail& WithMasterInstanceId(Aws::String&& value) { SetMasterInstanceId(std::move(value)); return *this;}
84 inline JobFlowInstancesDetail& WithMasterInstanceId(const char* value) { SetMasterInstanceId(value); return *this;}
86
88
91 inline const Aws::String& GetSlaveInstanceType() const{ return m_slaveInstanceType; }
92 inline bool SlaveInstanceTypeHasBeenSet() const { return m_slaveInstanceTypeHasBeenSet; }
93 inline void SetSlaveInstanceType(const Aws::String& value) { m_slaveInstanceTypeHasBeenSet = true; m_slaveInstanceType = value; }
94 inline void SetSlaveInstanceType(Aws::String&& value) { m_slaveInstanceTypeHasBeenSet = true; m_slaveInstanceType = std::move(value); }
95 inline void SetSlaveInstanceType(const char* value) { m_slaveInstanceTypeHasBeenSet = true; m_slaveInstanceType.assign(value); }
97 inline JobFlowInstancesDetail& WithSlaveInstanceType(Aws::String&& value) { SetSlaveInstanceType(std::move(value)); return *this;}
98 inline JobFlowInstancesDetail& WithSlaveInstanceType(const char* value) { SetSlaveInstanceType(value); return *this;}
100
102
108 inline int GetInstanceCount() const{ return m_instanceCount; }
109 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
110 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
111 inline JobFlowInstancesDetail& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
113
115
118 inline const Aws::Vector<InstanceGroupDetail>& GetInstanceGroups() const{ return m_instanceGroups; }
119 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
120 inline void SetInstanceGroups(const Aws::Vector<InstanceGroupDetail>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
121 inline void SetInstanceGroups(Aws::Vector<InstanceGroupDetail>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
124 inline JobFlowInstancesDetail& AddInstanceGroups(const InstanceGroupDetail& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
125 inline JobFlowInstancesDetail& AddInstanceGroups(InstanceGroupDetail&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
127
129
137 inline int GetNormalizedInstanceHours() const{ return m_normalizedInstanceHours; }
138 inline bool NormalizedInstanceHoursHasBeenSet() const { return m_normalizedInstanceHoursHasBeenSet; }
139 inline void SetNormalizedInstanceHours(int value) { m_normalizedInstanceHoursHasBeenSet = true; m_normalizedInstanceHours = value; }
142
144
148 inline const Aws::String& GetEc2KeyName() const{ return m_ec2KeyName; }
149 inline bool Ec2KeyNameHasBeenSet() const { return m_ec2KeyNameHasBeenSet; }
150 inline void SetEc2KeyName(const Aws::String& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = value; }
151 inline void SetEc2KeyName(Aws::String&& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = std::move(value); }
152 inline void SetEc2KeyName(const char* value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName.assign(value); }
153 inline JobFlowInstancesDetail& WithEc2KeyName(const Aws::String& value) { SetEc2KeyName(value); return *this;}
154 inline JobFlowInstancesDetail& WithEc2KeyName(Aws::String&& value) { SetEc2KeyName(std::move(value)); return *this;}
155 inline JobFlowInstancesDetail& WithEc2KeyName(const char* value) { SetEc2KeyName(value); return *this;}
157
159
163 inline const Aws::String& GetEc2SubnetId() const{ return m_ec2SubnetId; }
164 inline bool Ec2SubnetIdHasBeenSet() const { return m_ec2SubnetIdHasBeenSet; }
165 inline void SetEc2SubnetId(const Aws::String& value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId = value; }
166 inline void SetEc2SubnetId(Aws::String&& value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId = std::move(value); }
167 inline void SetEc2SubnetId(const char* value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId.assign(value); }
168 inline JobFlowInstancesDetail& WithEc2SubnetId(const Aws::String& value) { SetEc2SubnetId(value); return *this;}
169 inline JobFlowInstancesDetail& WithEc2SubnetId(Aws::String&& value) { SetEc2SubnetId(std::move(value)); return *this;}
170 inline JobFlowInstancesDetail& WithEc2SubnetId(const char* value) { SetEc2SubnetId(value); return *this;}
172
174
177 inline const PlacementType& GetPlacement() const{ return m_placement; }
178 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
179 inline void SetPlacement(const PlacementType& value) { m_placementHasBeenSet = true; m_placement = value; }
180 inline void SetPlacement(PlacementType&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
181 inline JobFlowInstancesDetail& WithPlacement(const PlacementType& value) { SetPlacement(value); return *this;}
182 inline JobFlowInstancesDetail& WithPlacement(PlacementType&& value) { SetPlacement(std::move(value)); return *this;}
184
186
190 inline bool GetKeepJobFlowAliveWhenNoSteps() const{ return m_keepJobFlowAliveWhenNoSteps; }
191 inline bool KeepJobFlowAliveWhenNoStepsHasBeenSet() const { return m_keepJobFlowAliveWhenNoStepsHasBeenSet; }
192 inline void SetKeepJobFlowAliveWhenNoSteps(bool value) { m_keepJobFlowAliveWhenNoStepsHasBeenSet = true; m_keepJobFlowAliveWhenNoSteps = value; }
195
197
202 inline bool GetTerminationProtected() const{ return m_terminationProtected; }
203 inline bool TerminationProtectedHasBeenSet() const { return m_terminationProtectedHasBeenSet; }
204 inline void SetTerminationProtected(bool value) { m_terminationProtectedHasBeenSet = true; m_terminationProtected = value; }
207
209
213 inline bool GetUnhealthyNodeReplacement() const{ return m_unhealthyNodeReplacement; }
214 inline bool UnhealthyNodeReplacementHasBeenSet() const { return m_unhealthyNodeReplacementHasBeenSet; }
215 inline void SetUnhealthyNodeReplacement(bool value) { m_unhealthyNodeReplacementHasBeenSet = true; m_unhealthyNodeReplacement = value; }
218
220
223 inline const Aws::String& GetHadoopVersion() const{ return m_hadoopVersion; }
224 inline bool HadoopVersionHasBeenSet() const { return m_hadoopVersionHasBeenSet; }
225 inline void SetHadoopVersion(const Aws::String& value) { m_hadoopVersionHasBeenSet = true; m_hadoopVersion = value; }
226 inline void SetHadoopVersion(Aws::String&& value) { m_hadoopVersionHasBeenSet = true; m_hadoopVersion = std::move(value); }
227 inline void SetHadoopVersion(const char* value) { m_hadoopVersionHasBeenSet = true; m_hadoopVersion.assign(value); }
228 inline JobFlowInstancesDetail& WithHadoopVersion(const Aws::String& value) { SetHadoopVersion(value); return *this;}
229 inline JobFlowInstancesDetail& WithHadoopVersion(Aws::String&& value) { SetHadoopVersion(std::move(value)); return *this;}
230 inline JobFlowInstancesDetail& WithHadoopVersion(const char* value) { SetHadoopVersion(value); return *this;}
232 private:
233
234 Aws::String m_masterInstanceType;
235 bool m_masterInstanceTypeHasBeenSet = false;
236
237 Aws::String m_masterPublicDnsName;
238 bool m_masterPublicDnsNameHasBeenSet = false;
239
240 Aws::String m_masterInstanceId;
241 bool m_masterInstanceIdHasBeenSet = false;
242
243 Aws::String m_slaveInstanceType;
244 bool m_slaveInstanceTypeHasBeenSet = false;
245
246 int m_instanceCount;
247 bool m_instanceCountHasBeenSet = false;
248
249 Aws::Vector<InstanceGroupDetail> m_instanceGroups;
250 bool m_instanceGroupsHasBeenSet = false;
251
252 int m_normalizedInstanceHours;
253 bool m_normalizedInstanceHoursHasBeenSet = false;
254
255 Aws::String m_ec2KeyName;
256 bool m_ec2KeyNameHasBeenSet = false;
257
258 Aws::String m_ec2SubnetId;
259 bool m_ec2SubnetIdHasBeenSet = false;
260
261 PlacementType m_placement;
262 bool m_placementHasBeenSet = false;
263
264 bool m_keepJobFlowAliveWhenNoSteps;
265 bool m_keepJobFlowAliveWhenNoStepsHasBeenSet = false;
266
267 bool m_terminationProtected;
268 bool m_terminationProtectedHasBeenSet = false;
269
270 bool m_unhealthyNodeReplacement;
271 bool m_unhealthyNodeReplacementHasBeenSet = false;
272
273 Aws::String m_hadoopVersion;
274 bool m_hadoopVersionHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace EMR
279} // namespace Aws
JobFlowInstancesDetail & WithMasterInstanceType(const Aws::String &value)
JobFlowInstancesDetail & WithHadoopVersion(const Aws::String &value)
void SetHadoopVersion(const Aws::String &value)
JobFlowInstancesDetail & WithMasterPublicDnsName(const Aws::String &value)
JobFlowInstancesDetail & WithSlaveInstanceType(const Aws::String &value)
JobFlowInstancesDetail & WithMasterInstanceId(const char *value)
JobFlowInstancesDetail & WithTerminationProtected(bool value)
JobFlowInstancesDetail & WithMasterInstanceId(const Aws::String &value)
void SetSlaveInstanceType(const Aws::String &value)
JobFlowInstancesDetail & WithEc2SubnetId(const char *value)
JobFlowInstancesDetail & AddInstanceGroups(InstanceGroupDetail &&value)
void SetInstanceGroups(Aws::Vector< InstanceGroupDetail > &&value)
const Aws::String & GetSlaveInstanceType() const
void SetEc2KeyName(const Aws::String &value)
void SetMasterInstanceId(const Aws::String &value)
JobFlowInstancesDetail & WithPlacement(PlacementType &&value)
JobFlowInstancesDetail & WithMasterInstanceType(Aws::String &&value)
JobFlowInstancesDetail & WithInstanceCount(int value)
AWS_EMR_API JobFlowInstancesDetail(Aws::Utils::Json::JsonView jsonValue)
JobFlowInstancesDetail & WithEc2KeyName(const Aws::String &value)
const Aws::String & GetMasterPublicDnsName() const
JobFlowInstancesDetail & WithMasterPublicDnsName(Aws::String &&value)
JobFlowInstancesDetail & WithSlaveInstanceType(const char *value)
JobFlowInstancesDetail & WithEc2SubnetId(const Aws::String &value)
void SetMasterInstanceType(const Aws::String &value)
JobFlowInstancesDetail & WithNormalizedInstanceHours(int value)
void SetPlacement(const PlacementType &value)
JobFlowInstancesDetail & WithEc2KeyName(Aws::String &&value)
JobFlowInstancesDetail & WithMasterInstanceId(Aws::String &&value)
JobFlowInstancesDetail & WithInstanceGroups(const Aws::Vector< InstanceGroupDetail > &value)
const Aws::String & GetMasterInstanceType() const
JobFlowInstancesDetail & WithKeepJobFlowAliveWhenNoSteps(bool value)
JobFlowInstancesDetail & WithMasterInstanceType(const char *value)
JobFlowInstancesDetail & WithHadoopVersion(Aws::String &&value)
void SetInstanceGroups(const Aws::Vector< InstanceGroupDetail > &value)
JobFlowInstancesDetail & WithMasterPublicDnsName(const char *value)
JobFlowInstancesDetail & WithInstanceGroups(Aws::Vector< InstanceGroupDetail > &&value)
const Aws::Vector< InstanceGroupDetail > & GetInstanceGroups() const
JobFlowInstancesDetail & WithUnhealthyNodeReplacement(bool value)
JobFlowInstancesDetail & AddInstanceGroups(const InstanceGroupDetail &value)
JobFlowInstancesDetail & WithEc2KeyName(const char *value)
JobFlowInstancesDetail & WithSlaveInstanceType(Aws::String &&value)
void SetEc2SubnetId(const Aws::String &value)
JobFlowInstancesDetail & WithPlacement(const PlacementType &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API JobFlowInstancesDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
JobFlowInstancesDetail & WithEc2SubnetId(Aws::String &&value)
void SetMasterPublicDnsName(const Aws::String &value)
const Aws::String & GetMasterInstanceId() const
JobFlowInstancesDetail & WithHadoopVersion(const char *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