AWS SDK for C++  1.9.19
AWS SDK for C++
InstanceGroupConfig.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace EMR
28 {
29 namespace Model
30 {
31 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline InstanceGroupConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline InstanceGroupConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline InstanceGroupConfig& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const MarketType& GetMarket() const{ return m_market; }
91 
95  inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
96 
100  inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; }
101 
105  inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); }
106 
110  inline InstanceGroupConfig& WithMarket(const MarketType& value) { SetMarket(value); return *this;}
111 
115  inline InstanceGroupConfig& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;}
116 
117 
121  inline const InstanceRoleType& GetInstanceRole() const{ return m_instanceRole; }
122 
126  inline bool InstanceRoleHasBeenSet() const { return m_instanceRoleHasBeenSet; }
127 
131  inline void SetInstanceRole(const InstanceRoleType& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = value; }
132 
136  inline void SetInstanceRole(InstanceRoleType&& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = std::move(value); }
137 
141  inline InstanceGroupConfig& WithInstanceRole(const InstanceRoleType& value) { SetInstanceRole(value); return *this;}
142 
146  inline InstanceGroupConfig& WithInstanceRole(InstanceRoleType&& value) { SetInstanceRole(std::move(value)); return *this;}
147 
148 
155  inline const Aws::String& GetBidPrice() const{ return m_bidPrice; }
156 
163  inline bool BidPriceHasBeenSet() const { return m_bidPriceHasBeenSet; }
164 
171  inline void SetBidPrice(const Aws::String& value) { m_bidPriceHasBeenSet = true; m_bidPrice = value; }
172 
179  inline void SetBidPrice(Aws::String&& value) { m_bidPriceHasBeenSet = true; m_bidPrice = std::move(value); }
180 
187  inline void SetBidPrice(const char* value) { m_bidPriceHasBeenSet = true; m_bidPrice.assign(value); }
188 
195  inline InstanceGroupConfig& WithBidPrice(const Aws::String& value) { SetBidPrice(value); return *this;}
196 
203  inline InstanceGroupConfig& WithBidPrice(Aws::String&& value) { SetBidPrice(std::move(value)); return *this;}
204 
211  inline InstanceGroupConfig& WithBidPrice(const char* value) { SetBidPrice(value); return *this;}
212 
213 
217  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
218 
222  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
223 
227  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
228 
232  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
233 
237  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
238 
242  inline InstanceGroupConfig& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
243 
247  inline InstanceGroupConfig& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
248 
252  inline InstanceGroupConfig& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
253 
254 
258  inline int GetInstanceCount() const{ return m_instanceCount; }
259 
263  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
264 
268  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
269 
273  inline InstanceGroupConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
274 
275 
281  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
282 
288  inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
289 
295  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
296 
302  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
303 
309  inline InstanceGroupConfig& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
310 
316  inline InstanceGroupConfig& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
317 
323  inline InstanceGroupConfig& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
324 
330  inline InstanceGroupConfig& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(std::move(value)); return *this; }
331 
332 
337  inline const EbsConfiguration& GetEbsConfiguration() const{ return m_ebsConfiguration; }
338 
343  inline bool EbsConfigurationHasBeenSet() const { return m_ebsConfigurationHasBeenSet; }
344 
349  inline void SetEbsConfiguration(const EbsConfiguration& value) { m_ebsConfigurationHasBeenSet = true; m_ebsConfiguration = value; }
350 
355  inline void SetEbsConfiguration(EbsConfiguration&& value) { m_ebsConfigurationHasBeenSet = true; m_ebsConfiguration = std::move(value); }
356 
361  inline InstanceGroupConfig& WithEbsConfiguration(const EbsConfiguration& value) { SetEbsConfiguration(value); return *this;}
362 
367  inline InstanceGroupConfig& WithEbsConfiguration(EbsConfiguration&& value) { SetEbsConfiguration(std::move(value)); return *this;}
368 
369 
376  inline const AutoScalingPolicy& GetAutoScalingPolicy() const{ return m_autoScalingPolicy; }
377 
384  inline bool AutoScalingPolicyHasBeenSet() const { return m_autoScalingPolicyHasBeenSet; }
385 
392  inline void SetAutoScalingPolicy(const AutoScalingPolicy& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = value; }
393 
400  inline void SetAutoScalingPolicy(AutoScalingPolicy&& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = std::move(value); }
401 
408  inline InstanceGroupConfig& WithAutoScalingPolicy(const AutoScalingPolicy& value) { SetAutoScalingPolicy(value); return *this;}
409 
416  inline InstanceGroupConfig& WithAutoScalingPolicy(AutoScalingPolicy&& value) { SetAutoScalingPolicy(std::move(value)); return *this;}
417 
418  private:
419 
420  Aws::String m_name;
421  bool m_nameHasBeenSet;
422 
423  MarketType m_market;
424  bool m_marketHasBeenSet;
425 
426  InstanceRoleType m_instanceRole;
427  bool m_instanceRoleHasBeenSet;
428 
429  Aws::String m_bidPrice;
430  bool m_bidPriceHasBeenSet;
431 
432  Aws::String m_instanceType;
433  bool m_instanceTypeHasBeenSet;
434 
435  int m_instanceCount;
436  bool m_instanceCountHasBeenSet;
437 
438  Aws::Vector<Configuration> m_configurations;
439  bool m_configurationsHasBeenSet;
440 
441  EbsConfiguration m_ebsConfiguration;
442  bool m_ebsConfigurationHasBeenSet;
443 
444  AutoScalingPolicy m_autoScalingPolicy;
445  bool m_autoScalingPolicyHasBeenSet;
446  };
447 
448 } // namespace Model
449 } // namespace EMR
450 } // namespace Aws
Aws::EMR::Model::InstanceGroupConfig::GetInstanceRole
const InstanceRoleType & GetInstanceRole() const
Definition: InstanceGroupConfig.h:121
InstanceRoleType.h
Aws::EMR::Model::InstanceGroupConfig::SetInstanceCount
void SetInstanceCount(int value)
Definition: InstanceGroupConfig.h:268
Aws::EMR::Model::InstanceGroupConfig::WithAutoScalingPolicy
InstanceGroupConfig & WithAutoScalingPolicy(AutoScalingPolicy &&value)
Definition: InstanceGroupConfig.h:416
Aws::EMR::Model::InstanceRoleType
InstanceRoleType
Definition: InstanceRoleType.h:17
Aws::EMR::Model::InstanceGroupConfig::WithInstanceRole
InstanceGroupConfig & WithInstanceRole(const InstanceRoleType &value)
Definition: InstanceGroupConfig.h:141
Aws::EMR::Model::InstanceGroupConfig::WithInstanceType
InstanceGroupConfig & WithInstanceType(const char *value)
Definition: InstanceGroupConfig.h:252
Aws::EMR::Model::InstanceGroupConfig::GetAutoScalingPolicy
const AutoScalingPolicy & GetAutoScalingPolicy() const
Definition: InstanceGroupConfig.h:376
Aws::EMR::Model::InstanceGroupConfig::SetConfigurations
void SetConfigurations(Aws::Vector< Configuration > &&value)
Definition: InstanceGroupConfig.h:302
Aws::EMR::Model::Configuration
Definition: Configuration.h:43
Aws::EMR::Model::InstanceGroupConfig::SetBidPrice
void SetBidPrice(const char *value)
Definition: InstanceGroupConfig.h:187
Aws::EMR::Model::InstanceGroupConfig::WithInstanceRole
InstanceGroupConfig & WithInstanceRole(InstanceRoleType &&value)
Definition: InstanceGroupConfig.h:146
Aws::EMR::Model::InstanceGroupConfig::SetConfigurations
void SetConfigurations(const Aws::Vector< Configuration > &value)
Definition: InstanceGroupConfig.h:295
EMR_EXPORTS.h
Aws::EMR::Model::InstanceGroupConfig::ConfigurationsHasBeenSet
bool ConfigurationsHasBeenSet() const
Definition: InstanceGroupConfig.h:288
Aws::EMR::Model::InstanceGroupConfig::WithBidPrice
InstanceGroupConfig & WithBidPrice(const char *value)
Definition: InstanceGroupConfig.h:211
Aws::EMR::Model::InstanceGroupConfig::SetBidPrice
void SetBidPrice(const Aws::String &value)
Definition: InstanceGroupConfig.h:171
Aws::EMR::Model::InstanceGroupConfig::BidPriceHasBeenSet
bool BidPriceHasBeenSet() const
Definition: InstanceGroupConfig.h:163
Aws::EMR::Model::InstanceGroupConfig::SetAutoScalingPolicy
void SetAutoScalingPolicy(const AutoScalingPolicy &value)
Definition: InstanceGroupConfig.h:392
Aws::EMR::Model::InstanceGroupConfig::GetEbsConfiguration
const EbsConfiguration & GetEbsConfiguration() const
Definition: InstanceGroupConfig.h:337
Aws::EMR::Model::InstanceGroupConfig::MarketHasBeenSet
bool MarketHasBeenSet() const
Definition: InstanceGroupConfig.h:95
Aws::EMR::Model::InstanceGroupConfig::SetInstanceRole
void SetInstanceRole(InstanceRoleType &&value)
Definition: InstanceGroupConfig.h:136
Aws::EMR::Model::InstanceGroupConfig::WithMarket
InstanceGroupConfig & WithMarket(const MarketType &value)
Definition: InstanceGroupConfig.h:110
Aws::EMR::Model::InstanceGroupConfig::WithBidPrice
InstanceGroupConfig & WithBidPrice(const Aws::String &value)
Definition: InstanceGroupConfig.h:195
Aws::EMR::Model::InstanceGroupConfig::AddConfigurations
InstanceGroupConfig & AddConfigurations(const Configuration &value)
Definition: InstanceGroupConfig.h:323
Aws::EMR::Model::InstanceGroupConfig::AddConfigurations
InstanceGroupConfig & AddConfigurations(Configuration &&value)
Definition: InstanceGroupConfig.h:330
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::InstanceGroupConfig::operator=
InstanceGroupConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
EbsConfiguration.h
Aws::EMR::Model::InstanceGroupConfig::SetInstanceRole
void SetInstanceRole(const InstanceRoleType &value)
Definition: InstanceGroupConfig.h:131
Aws::EMR::Model::InstanceGroupConfig::GetInstanceCount
int GetInstanceCount() const
Definition: InstanceGroupConfig.h:258
AWSVector.h
Aws::EMR::Model::InstanceGroupConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InstanceGroupConfig.h:54
Aws::EMR::Model::InstanceGroupConfig::WithEbsConfiguration
InstanceGroupConfig & WithEbsConfiguration(EbsConfiguration &&value)
Definition: InstanceGroupConfig.h:367
Aws::EMR::Model::InstanceGroupConfig
Definition: InstanceGroupConfig.h:38
Aws::EMR::Model::InstanceGroupConfig::WithMarket
InstanceGroupConfig & WithMarket(MarketType &&value)
Definition: InstanceGroupConfig.h:115
Aws::EMR::Model::InstanceGroupConfig::WithAutoScalingPolicy
InstanceGroupConfig & WithAutoScalingPolicy(const AutoScalingPolicy &value)
Definition: InstanceGroupConfig.h:408
Aws::EMR::Model::InstanceGroupConfig::AutoScalingPolicyHasBeenSet
bool AutoScalingPolicyHasBeenSet() const
Definition: InstanceGroupConfig.h:384
Configuration.h
Aws::EMR::Model::InstanceGroupConfig::WithConfigurations
InstanceGroupConfig & WithConfigurations(Aws::Vector< Configuration > &&value)
Definition: InstanceGroupConfig.h:316
Aws::EMR::Model::InstanceGroupConfig::InstanceGroupConfig
InstanceGroupConfig()
Aws::EMR::Model::InstanceGroupConfig::SetMarket
void SetMarket(MarketType &&value)
Definition: InstanceGroupConfig.h:105
Aws::EMR::Model::InstanceGroupConfig::SetBidPrice
void SetBidPrice(Aws::String &&value)
Definition: InstanceGroupConfig.h:179
Aws::EMR::Model::InstanceGroupConfig::SetInstanceType
void SetInstanceType(const char *value)
Definition: InstanceGroupConfig.h:237
Aws::EMR::Model::InstanceGroupConfig::InstanceGroupConfig
InstanceGroupConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceGroupConfig::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceGroupConfig.h:222
Aws::EMR::Model::InstanceGroupConfig::WithBidPrice
InstanceGroupConfig & WithBidPrice(Aws::String &&value)
Definition: InstanceGroupConfig.h:203
Aws::EMR::Model::InstanceGroupConfig::GetMarket
const MarketType & GetMarket() const
Definition: InstanceGroupConfig.h:90
Aws::EMR::Model::EbsConfiguration
Definition: EbsConfiguration.h:34
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::InstanceGroupConfig::SetName
void SetName(const Aws::String &value)
Definition: InstanceGroupConfig.h:59
AWSString.h
Aws::EMR::Model::InstanceGroupConfig::WithConfigurations
InstanceGroupConfig & WithConfigurations(const Aws::Vector< Configuration > &value)
Definition: InstanceGroupConfig.h:309
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceGroupConfig::SetMarket
void SetMarket(const MarketType &value)
Definition: InstanceGroupConfig.h:100
Aws::EMR::Model::InstanceGroupConfig::WithInstanceType
InstanceGroupConfig & WithInstanceType(const Aws::String &value)
Definition: InstanceGroupConfig.h:242
Aws::EMR::Model::InstanceGroupConfig::SetEbsConfiguration
void SetEbsConfiguration(const EbsConfiguration &value)
Definition: InstanceGroupConfig.h:349
Aws::EMR::Model::InstanceGroupConfig::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: InstanceGroupConfig.h:227
Aws::EMR::Model::InstanceGroupConfig::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: InstanceGroupConfig.h:232
Aws::EMR::Model::AutoScalingPolicy
Definition: AutoScalingPolicy.h:38
Aws::EMR::Model::InstanceGroupConfig::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: InstanceGroupConfig.h:217
Aws::EMR::Model::InstanceGroupConfig::GetConfigurations
const Aws::Vector< Configuration > & GetConfigurations() const
Definition: InstanceGroupConfig.h:281
Aws::EMR::Model::InstanceGroupConfig::WithInstanceType
InstanceGroupConfig & WithInstanceType(Aws::String &&value)
Definition: InstanceGroupConfig.h:247
Aws::EMR::Model::InstanceGroupConfig::WithName
InstanceGroupConfig & WithName(Aws::String &&value)
Definition: InstanceGroupConfig.h:79
Aws::EMR::Model::InstanceGroupConfig::SetEbsConfiguration
void SetEbsConfiguration(EbsConfiguration &&value)
Definition: InstanceGroupConfig.h:355
Aws::EMR::Model::InstanceGroupConfig::InstanceRoleHasBeenSet
bool InstanceRoleHasBeenSet() const
Definition: InstanceGroupConfig.h:126
Aws::EMR::Model::InstanceGroupConfig::EbsConfigurationHasBeenSet
bool EbsConfigurationHasBeenSet() const
Definition: InstanceGroupConfig.h:343
Aws::EMR::Model::InstanceGroupConfig::WithInstanceCount
InstanceGroupConfig & WithInstanceCount(int value)
Definition: InstanceGroupConfig.h:273
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceGroupConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceGroupConfig::SetName
void SetName(const char *value)
Definition: InstanceGroupConfig.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceGroupConfig::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: InstanceGroupConfig.h:263
Aws::EMR::Model::InstanceGroupConfig::GetBidPrice
const Aws::String & GetBidPrice() const
Definition: InstanceGroupConfig.h:155
Aws::EMR::Model::InstanceGroupConfig::WithEbsConfiguration
InstanceGroupConfig & WithEbsConfiguration(const EbsConfiguration &value)
Definition: InstanceGroupConfig.h:361
Aws::EMR::Model::InstanceGroupConfig::WithName
InstanceGroupConfig & WithName(const Aws::String &value)
Definition: InstanceGroupConfig.h:74
AutoScalingPolicy.h
Aws::EMR::Model::InstanceGroupConfig::WithName
InstanceGroupConfig & WithName(const char *value)
Definition: InstanceGroupConfig.h:84
Aws::EMR::Model::InstanceGroupConfig::GetName
const Aws::String & GetName() const
Definition: InstanceGroupConfig.h:49
Aws::EMR::Model::InstanceGroupConfig::SetName
void SetName(Aws::String &&value)
Definition: InstanceGroupConfig.h:64
Aws::EMR::Model::InstanceGroupConfig::SetAutoScalingPolicy
void SetAutoScalingPolicy(AutoScalingPolicy &&value)
Definition: InstanceGroupConfig.h:400
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
MarketType.h
Aws::EMR::Model::MarketType
MarketType
Definition: MarketType.h:17