AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceGroup.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/MarketType.h>
10#include <aws/elasticmapreduce/model/InstanceGroupType.h>
11#include <aws/elasticmapreduce/model/InstanceGroupStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticmapreduce/model/ShrinkPolicy.h>
14#include <aws/elasticmapreduce/model/AutoScalingPolicyDescription.h>
15#include <aws/elasticmapreduce/model/Configuration.h>
16#include <aws/elasticmapreduce/model/EbsBlockDevice.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace EMR
30{
31namespace Model
32{
33
42 {
43 public:
44 AWS_EMR_API InstanceGroup();
48
49
51
54 inline const Aws::String& GetId() const{ return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 inline InstanceGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline InstanceGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline InstanceGroup& WithId(const char* value) { SetId(value); return *this;}
63
65
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 inline InstanceGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline InstanceGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline InstanceGroup& WithName(const char* value) { SetName(value); return *this;}
77
79
83 inline const MarketType& GetMarket() const{ return m_market; }
84 inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
85 inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; }
86 inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); }
87 inline InstanceGroup& WithMarket(const MarketType& value) { SetMarket(value); return *this;}
88 inline InstanceGroup& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;}
90
92
95 inline const InstanceGroupType& GetInstanceGroupType() const{ return m_instanceGroupType; }
96 inline bool InstanceGroupTypeHasBeenSet() const { return m_instanceGroupTypeHasBeenSet; }
97 inline void SetInstanceGroupType(const InstanceGroupType& value) { m_instanceGroupTypeHasBeenSet = true; m_instanceGroupType = value; }
98 inline void SetInstanceGroupType(InstanceGroupType&& value) { m_instanceGroupTypeHasBeenSet = true; m_instanceGroupType = std::move(value); }
99 inline InstanceGroup& WithInstanceGroupType(const InstanceGroupType& value) { SetInstanceGroupType(value); return *this;}
100 inline InstanceGroup& WithInstanceGroupType(InstanceGroupType&& value) { SetInstanceGroupType(std::move(value)); return *this;}
102
104
110 inline const Aws::String& GetBidPrice() const{ return m_bidPrice; }
111 inline bool BidPriceHasBeenSet() const { return m_bidPriceHasBeenSet; }
112 inline void SetBidPrice(const Aws::String& value) { m_bidPriceHasBeenSet = true; m_bidPrice = value; }
113 inline void SetBidPrice(Aws::String&& value) { m_bidPriceHasBeenSet = true; m_bidPrice = std::move(value); }
114 inline void SetBidPrice(const char* value) { m_bidPriceHasBeenSet = true; m_bidPrice.assign(value); }
115 inline InstanceGroup& WithBidPrice(const Aws::String& value) { SetBidPrice(value); return *this;}
116 inline InstanceGroup& WithBidPrice(Aws::String&& value) { SetBidPrice(std::move(value)); return *this;}
117 inline InstanceGroup& WithBidPrice(const char* value) { SetBidPrice(value); return *this;}
119
121
124 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
125 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
126 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
127 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
128 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
129 inline InstanceGroup& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
130 inline InstanceGroup& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
131 inline InstanceGroup& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
133
135
138 inline int GetRequestedInstanceCount() const{ return m_requestedInstanceCount; }
139 inline bool RequestedInstanceCountHasBeenSet() const { return m_requestedInstanceCountHasBeenSet; }
140 inline void SetRequestedInstanceCount(int value) { m_requestedInstanceCountHasBeenSet = true; m_requestedInstanceCount = value; }
141 inline InstanceGroup& WithRequestedInstanceCount(int value) { SetRequestedInstanceCount(value); return *this;}
143
145
148 inline int GetRunningInstanceCount() const{ return m_runningInstanceCount; }
149 inline bool RunningInstanceCountHasBeenSet() const { return m_runningInstanceCountHasBeenSet; }
150 inline void SetRunningInstanceCount(int value) { m_runningInstanceCountHasBeenSet = true; m_runningInstanceCount = value; }
151 inline InstanceGroup& WithRunningInstanceCount(int value) { SetRunningInstanceCount(value); return *this;}
153
155
158 inline const InstanceGroupStatus& GetStatus() const{ return m_status; }
159 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
160 inline void SetStatus(const InstanceGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
161 inline void SetStatus(InstanceGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
162 inline InstanceGroup& WithStatus(const InstanceGroupStatus& value) { SetStatus(value); return *this;}
163 inline InstanceGroup& WithStatus(InstanceGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
165
167
173 inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
174 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
175 inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
176 inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
178 inline InstanceGroup& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
179 inline InstanceGroup& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
180 inline InstanceGroup& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(std::move(value)); return *this; }
182
184
188 inline long long GetConfigurationsVersion() const{ return m_configurationsVersion; }
189 inline bool ConfigurationsVersionHasBeenSet() const { return m_configurationsVersionHasBeenSet; }
190 inline void SetConfigurationsVersion(long long value) { m_configurationsVersionHasBeenSet = true; m_configurationsVersion = value; }
191 inline InstanceGroup& WithConfigurationsVersion(long long value) { SetConfigurationsVersion(value); return *this;}
193
195
199 inline const Aws::Vector<Configuration>& GetLastSuccessfullyAppliedConfigurations() const{ return m_lastSuccessfullyAppliedConfigurations; }
200 inline bool LastSuccessfullyAppliedConfigurationsHasBeenSet() const { return m_lastSuccessfullyAppliedConfigurationsHasBeenSet; }
201 inline void SetLastSuccessfullyAppliedConfigurations(const Aws::Vector<Configuration>& value) { m_lastSuccessfullyAppliedConfigurationsHasBeenSet = true; m_lastSuccessfullyAppliedConfigurations = value; }
202 inline void SetLastSuccessfullyAppliedConfigurations(Aws::Vector<Configuration>&& value) { m_lastSuccessfullyAppliedConfigurationsHasBeenSet = true; m_lastSuccessfullyAppliedConfigurations = std::move(value); }
205 inline InstanceGroup& AddLastSuccessfullyAppliedConfigurations(const Configuration& value) { m_lastSuccessfullyAppliedConfigurationsHasBeenSet = true; m_lastSuccessfullyAppliedConfigurations.push_back(value); return *this; }
206 inline InstanceGroup& AddLastSuccessfullyAppliedConfigurations(Configuration&& value) { m_lastSuccessfullyAppliedConfigurationsHasBeenSet = true; m_lastSuccessfullyAppliedConfigurations.push_back(std::move(value)); return *this; }
208
210
214 inline long long GetLastSuccessfullyAppliedConfigurationsVersion() const{ return m_lastSuccessfullyAppliedConfigurationsVersion; }
215 inline bool LastSuccessfullyAppliedConfigurationsVersionHasBeenSet() const { return m_lastSuccessfullyAppliedConfigurationsVersionHasBeenSet; }
216 inline void SetLastSuccessfullyAppliedConfigurationsVersion(long long value) { m_lastSuccessfullyAppliedConfigurationsVersionHasBeenSet = true; m_lastSuccessfullyAppliedConfigurationsVersion = value; }
219
221
224 inline const Aws::Vector<EbsBlockDevice>& GetEbsBlockDevices() const{ return m_ebsBlockDevices; }
225 inline bool EbsBlockDevicesHasBeenSet() const { return m_ebsBlockDevicesHasBeenSet; }
226 inline void SetEbsBlockDevices(const Aws::Vector<EbsBlockDevice>& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices = value; }
227 inline void SetEbsBlockDevices(Aws::Vector<EbsBlockDevice>&& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices = std::move(value); }
229 inline InstanceGroup& WithEbsBlockDevices(Aws::Vector<EbsBlockDevice>&& value) { SetEbsBlockDevices(std::move(value)); return *this;}
230 inline InstanceGroup& AddEbsBlockDevices(const EbsBlockDevice& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices.push_back(value); return *this; }
231 inline InstanceGroup& AddEbsBlockDevices(EbsBlockDevice&& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices.push_back(std::move(value)); return *this; }
233
235
240 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
241 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
242 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
243 inline InstanceGroup& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
245
247
250 inline const ShrinkPolicy& GetShrinkPolicy() const{ return m_shrinkPolicy; }
251 inline bool ShrinkPolicyHasBeenSet() const { return m_shrinkPolicyHasBeenSet; }
252 inline void SetShrinkPolicy(const ShrinkPolicy& value) { m_shrinkPolicyHasBeenSet = true; m_shrinkPolicy = value; }
253 inline void SetShrinkPolicy(ShrinkPolicy&& value) { m_shrinkPolicyHasBeenSet = true; m_shrinkPolicy = std::move(value); }
254 inline InstanceGroup& WithShrinkPolicy(const ShrinkPolicy& value) { SetShrinkPolicy(value); return *this;}
255 inline InstanceGroup& WithShrinkPolicy(ShrinkPolicy&& value) { SetShrinkPolicy(std::move(value)); return *this;}
257
259
265 inline const AutoScalingPolicyDescription& GetAutoScalingPolicy() const{ return m_autoScalingPolicy; }
266 inline bool AutoScalingPolicyHasBeenSet() const { return m_autoScalingPolicyHasBeenSet; }
267 inline void SetAutoScalingPolicy(const AutoScalingPolicyDescription& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = value; }
268 inline void SetAutoScalingPolicy(AutoScalingPolicyDescription&& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = std::move(value); }
272
274
277 inline const Aws::String& GetCustomAmiId() const{ return m_customAmiId; }
278 inline bool CustomAmiIdHasBeenSet() const { return m_customAmiIdHasBeenSet; }
279 inline void SetCustomAmiId(const Aws::String& value) { m_customAmiIdHasBeenSet = true; m_customAmiId = value; }
280 inline void SetCustomAmiId(Aws::String&& value) { m_customAmiIdHasBeenSet = true; m_customAmiId = std::move(value); }
281 inline void SetCustomAmiId(const char* value) { m_customAmiIdHasBeenSet = true; m_customAmiId.assign(value); }
282 inline InstanceGroup& WithCustomAmiId(const Aws::String& value) { SetCustomAmiId(value); return *this;}
283 inline InstanceGroup& WithCustomAmiId(Aws::String&& value) { SetCustomAmiId(std::move(value)); return *this;}
284 inline InstanceGroup& WithCustomAmiId(const char* value) { SetCustomAmiId(value); return *this;}
286 private:
287
288 Aws::String m_id;
289 bool m_idHasBeenSet = false;
290
291 Aws::String m_name;
292 bool m_nameHasBeenSet = false;
293
294 MarketType m_market;
295 bool m_marketHasBeenSet = false;
296
297 InstanceGroupType m_instanceGroupType;
298 bool m_instanceGroupTypeHasBeenSet = false;
299
300 Aws::String m_bidPrice;
301 bool m_bidPriceHasBeenSet = false;
302
303 Aws::String m_instanceType;
304 bool m_instanceTypeHasBeenSet = false;
305
306 int m_requestedInstanceCount;
307 bool m_requestedInstanceCountHasBeenSet = false;
308
309 int m_runningInstanceCount;
310 bool m_runningInstanceCountHasBeenSet = false;
311
312 InstanceGroupStatus m_status;
313 bool m_statusHasBeenSet = false;
314
315 Aws::Vector<Configuration> m_configurations;
316 bool m_configurationsHasBeenSet = false;
317
318 long long m_configurationsVersion;
319 bool m_configurationsVersionHasBeenSet = false;
320
321 Aws::Vector<Configuration> m_lastSuccessfullyAppliedConfigurations;
322 bool m_lastSuccessfullyAppliedConfigurationsHasBeenSet = false;
323
324 long long m_lastSuccessfullyAppliedConfigurationsVersion;
325 bool m_lastSuccessfullyAppliedConfigurationsVersionHasBeenSet = false;
326
327 Aws::Vector<EbsBlockDevice> m_ebsBlockDevices;
328 bool m_ebsBlockDevicesHasBeenSet = false;
329
330 bool m_ebsOptimized;
331 bool m_ebsOptimizedHasBeenSet = false;
332
333 ShrinkPolicy m_shrinkPolicy;
334 bool m_shrinkPolicyHasBeenSet = false;
335
336 AutoScalingPolicyDescription m_autoScalingPolicy;
337 bool m_autoScalingPolicyHasBeenSet = false;
338
339 Aws::String m_customAmiId;
340 bool m_customAmiIdHasBeenSet = false;
341 };
342
343} // namespace Model
344} // namespace EMR
345} // namespace Aws
void SetShrinkPolicy(const ShrinkPolicy &value)
const InstanceGroupStatus & GetStatus() const
const Aws::Vector< EbsBlockDevice > & GetEbsBlockDevices() const
InstanceGroup & WithConfigurationsVersion(long long value)
void SetEbsBlockDevices(Aws::Vector< EbsBlockDevice > &&value)
InstanceGroup & WithId(Aws::String &&value)
const Aws::String & GetName() const
InstanceGroup & WithInstanceGroupType(const InstanceGroupType &value)
InstanceGroup & WithName(const char *value)
InstanceGroup & WithStatus(InstanceGroupStatus &&value)
InstanceGroup & WithEbsOptimized(bool value)
InstanceGroup & WithCustomAmiId(Aws::String &&value)
InstanceGroup & WithCustomAmiId(const char *value)
InstanceGroup & AddEbsBlockDevices(const EbsBlockDevice &value)
void SetInstanceGroupType(InstanceGroupType &&value)
InstanceGroup & WithId(const Aws::String &value)
InstanceGroup & WithEbsBlockDevices(Aws::Vector< EbsBlockDevice > &&value)
InstanceGroup & AddEbsBlockDevices(EbsBlockDevice &&value)
InstanceGroup & WithLastSuccessfullyAppliedConfigurations(const Aws::Vector< Configuration > &value)
void SetBidPrice(Aws::String &&value)
void SetStatus(InstanceGroupStatus &&value)
InstanceGroup & WithInstanceType(const Aws::String &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceGroup & WithConfigurations(const Aws::Vector< Configuration > &value)
InstanceGroup & WithShrinkPolicy(ShrinkPolicy &&value)
void SetConfigurations(Aws::Vector< Configuration > &&value)
const Aws::String & GetCustomAmiId() const
InstanceGroup & WithStatus(const InstanceGroupStatus &value)
InstanceGroup & WithLastSuccessfullyAppliedConfigurations(Aws::Vector< Configuration > &&value)
void SetMarket(const MarketType &value)
InstanceGroup & WithLastSuccessfullyAppliedConfigurationsVersion(long long value)
InstanceGroup & AddConfigurations(Configuration &&value)
void SetCustomAmiId(const Aws::String &value)
InstanceGroup & WithCustomAmiId(const Aws::String &value)
bool LastSuccessfullyAppliedConfigurationsHasBeenSet() const
bool ConfigurationsVersionHasBeenSet() const
InstanceGroup & WithBidPrice(const char *value)
void SetShrinkPolicy(ShrinkPolicy &&value)
void SetConfigurationsVersion(long long value)
AWS_EMR_API InstanceGroup(Aws::Utils::Json::JsonView jsonValue)
InstanceGroup & WithConfigurations(Aws::Vector< Configuration > &&value)
void SetInstanceType(const Aws::String &value)
void SetEbsBlockDevices(const Aws::Vector< EbsBlockDevice > &value)
void SetConfigurations(const Aws::Vector< Configuration > &value)
InstanceGroup & WithMarket(const MarketType &value)
void SetRequestedInstanceCount(int value)
InstanceGroup & WithInstanceType(Aws::String &&value)
bool LastSuccessfullyAppliedConfigurationsVersionHasBeenSet() const
InstanceGroup & WithInstanceType(const char *value)
InstanceGroup & WithRunningInstanceCount(int value)
bool RequestedInstanceCountHasBeenSet() const
void SetLastSuccessfullyAppliedConfigurationsVersion(long long value)
void SetLastSuccessfullyAppliedConfigurations(Aws::Vector< Configuration > &&value)
InstanceGroup & AddLastSuccessfullyAppliedConfigurations(Configuration &&value)
const Aws::String & GetBidPrice() const
InstanceGroup & WithShrinkPolicy(const ShrinkPolicy &value)
void SetBidPrice(const char *value)
const ShrinkPolicy & GetShrinkPolicy() const
const InstanceGroupType & GetInstanceGroupType() const
void SetMarket(MarketType &&value)
InstanceGroup & AddConfigurations(const Configuration &value)
void SetRunningInstanceCount(int value)
void SetInstanceGroupType(const InstanceGroupType &value)
void SetInstanceType(Aws::String &&value)
void SetBidPrice(const Aws::String &value)
void SetName(Aws::String &&value)
const MarketType & GetMarket() const
const Aws::String & GetId() const
void SetStatus(const InstanceGroupStatus &value)
const Aws::Vector< Configuration > & GetConfigurations() const
bool RunningInstanceCountHasBeenSet() const
long long GetLastSuccessfullyAppliedConfigurationsVersion() const
void SetCustomAmiId(Aws::String &&value)
InstanceGroup & WithBidPrice(Aws::String &&value)
void SetId(Aws::String &&value)
InstanceGroup & WithId(const char *value)
InstanceGroup & AddLastSuccessfullyAppliedConfigurations(const Configuration &value)
const AutoScalingPolicyDescription & GetAutoScalingPolicy() const
void SetInstanceType(const char *value)
InstanceGroup & WithName(Aws::String &&value)
InstanceGroup & WithEbsBlockDevices(const Aws::Vector< EbsBlockDevice > &value)
InstanceGroup & WithName(const Aws::String &value)
void SetLastSuccessfullyAppliedConfigurations(const Aws::Vector< Configuration > &value)
InstanceGroup & WithMarket(MarketType &&value)
InstanceGroup & WithInstanceGroupType(InstanceGroupType &&value)
long long GetConfigurationsVersion() const
InstanceGroup & WithBidPrice(const Aws::String &value)
InstanceGroup & WithAutoScalingPolicy(const AutoScalingPolicyDescription &value)
void SetCustomAmiId(const char *value)
InstanceGroup & WithRequestedInstanceCount(int value)
void SetId(const Aws::String &value)
AWS_EMR_API InstanceGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAutoScalingPolicy(const AutoScalingPolicyDescription &value)
const Aws::Vector< Configuration > & GetLastSuccessfullyAppliedConfigurations() const
void SetName(const char *value)
InstanceGroup & WithAutoScalingPolicy(AutoScalingPolicyDescription &&value)
const Aws::String & GetInstanceType() const
void SetName(const Aws::String &value)
void SetAutoScalingPolicy(AutoScalingPolicyDescription &&value)
void SetId(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