AWS SDK for C++  1.9.20
AWS SDK for C++
InstanceTypeConfig.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace EMR
25 {
26 namespace Model
27 {
28 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
52 
56  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
57 
61  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
62 
66  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
67 
71  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
72 
76  inline InstanceTypeConfig& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
77 
81  inline InstanceTypeConfig& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
82 
86  inline InstanceTypeConfig& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
87 
88 
95  inline int GetWeightedCapacity() const{ return m_weightedCapacity; }
96 
103  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
104 
111  inline void SetWeightedCapacity(int value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
112 
119  inline InstanceTypeConfig& WithWeightedCapacity(int value) { SetWeightedCapacity(value); return *this;}
120 
121 
128  inline const Aws::String& GetBidPrice() const{ return m_bidPrice; }
129 
136  inline bool BidPriceHasBeenSet() const { return m_bidPriceHasBeenSet; }
137 
144  inline void SetBidPrice(const Aws::String& value) { m_bidPriceHasBeenSet = true; m_bidPrice = value; }
145 
152  inline void SetBidPrice(Aws::String&& value) { m_bidPriceHasBeenSet = true; m_bidPrice = std::move(value); }
153 
160  inline void SetBidPrice(const char* value) { m_bidPriceHasBeenSet = true; m_bidPrice.assign(value); }
161 
168  inline InstanceTypeConfig& WithBidPrice(const Aws::String& value) { SetBidPrice(value); return *this;}
169 
176  inline InstanceTypeConfig& WithBidPrice(Aws::String&& value) { SetBidPrice(std::move(value)); return *this;}
177 
184  inline InstanceTypeConfig& WithBidPrice(const char* value) { SetBidPrice(value); return *this;}
185 
186 
194  inline double GetBidPriceAsPercentageOfOnDemandPrice() const{ return m_bidPriceAsPercentageOfOnDemandPrice; }
195 
203  inline bool BidPriceAsPercentageOfOnDemandPriceHasBeenSet() const { return m_bidPriceAsPercentageOfOnDemandPriceHasBeenSet; }
204 
212  inline void SetBidPriceAsPercentageOfOnDemandPrice(double value) { m_bidPriceAsPercentageOfOnDemandPriceHasBeenSet = true; m_bidPriceAsPercentageOfOnDemandPrice = value; }
213 
221  inline InstanceTypeConfig& WithBidPriceAsPercentageOfOnDemandPrice(double value) { SetBidPriceAsPercentageOfOnDemandPrice(value); return *this;}
222 
223 
228  inline const EbsConfiguration& GetEbsConfiguration() const{ return m_ebsConfiguration; }
229 
234  inline bool EbsConfigurationHasBeenSet() const { return m_ebsConfigurationHasBeenSet; }
235 
240  inline void SetEbsConfiguration(const EbsConfiguration& value) { m_ebsConfigurationHasBeenSet = true; m_ebsConfiguration = value; }
241 
246  inline void SetEbsConfiguration(EbsConfiguration&& value) { m_ebsConfigurationHasBeenSet = true; m_ebsConfiguration = std::move(value); }
247 
252  inline InstanceTypeConfig& WithEbsConfiguration(const EbsConfiguration& value) { SetEbsConfiguration(value); return *this;}
253 
258  inline InstanceTypeConfig& WithEbsConfiguration(EbsConfiguration&& value) { SetEbsConfiguration(std::move(value)); return *this;}
259 
260 
266  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
267 
273  inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
274 
280  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
281 
287  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
288 
294  inline InstanceTypeConfig& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
295 
301  inline InstanceTypeConfig& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
302 
308  inline InstanceTypeConfig& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
309 
315  inline InstanceTypeConfig& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(std::move(value)); return *this; }
316 
317  private:
318 
319  Aws::String m_instanceType;
320  bool m_instanceTypeHasBeenSet;
321 
322  int m_weightedCapacity;
323  bool m_weightedCapacityHasBeenSet;
324 
325  Aws::String m_bidPrice;
326  bool m_bidPriceHasBeenSet;
327 
328  double m_bidPriceAsPercentageOfOnDemandPrice;
329  bool m_bidPriceAsPercentageOfOnDemandPriceHasBeenSet;
330 
331  EbsConfiguration m_ebsConfiguration;
332  bool m_ebsConfigurationHasBeenSet;
333 
334  Aws::Vector<Configuration> m_configurations;
335  bool m_configurationsHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace EMR
340 } // namespace Aws
Aws::EMR::Model::InstanceTypeConfig::WithInstanceType
InstanceTypeConfig & WithInstanceType(const char *value)
Definition: InstanceTypeConfig.h:86
Aws::EMR::Model::InstanceTypeConfig::WithBidPrice
InstanceTypeConfig & WithBidPrice(const Aws::String &value)
Definition: InstanceTypeConfig.h:168
Aws::EMR::Model::InstanceTypeConfig::WithConfigurations
InstanceTypeConfig & WithConfigurations(const Aws::Vector< Configuration > &value)
Definition: InstanceTypeConfig.h:294
Aws::EMR::Model::Configuration
Definition: Configuration.h:43
Aws::EMR::Model::InstanceTypeConfig::WithBidPriceAsPercentageOfOnDemandPrice
InstanceTypeConfig & WithBidPriceAsPercentageOfOnDemandPrice(double value)
Definition: InstanceTypeConfig.h:221
Aws::EMR::Model::InstanceTypeConfig::BidPriceAsPercentageOfOnDemandPriceHasBeenSet
bool BidPriceAsPercentageOfOnDemandPriceHasBeenSet() const
Definition: InstanceTypeConfig.h:203
EMR_EXPORTS.h
Aws::EMR::Model::InstanceTypeConfig::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: InstanceTypeConfig.h:61
Aws::EMR::Model::InstanceTypeConfig::SetBidPrice
void SetBidPrice(Aws::String &&value)
Definition: InstanceTypeConfig.h:152
Aws::EMR::Model::InstanceTypeConfig::WithBidPrice
InstanceTypeConfig & WithBidPrice(Aws::String &&value)
Definition: InstanceTypeConfig.h:176
Aws::EMR::Model::InstanceTypeConfig::SetConfigurations
void SetConfigurations(Aws::Vector< Configuration > &&value)
Definition: InstanceTypeConfig.h:287
Aws::EMR::Model::InstanceTypeConfig::SetConfigurations
void SetConfigurations(const Aws::Vector< Configuration > &value)
Definition: InstanceTypeConfig.h:280
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::InstanceTypeConfig::AddConfigurations
InstanceTypeConfig & AddConfigurations(Configuration &&value)
Definition: InstanceTypeConfig.h:315
EbsConfiguration.h
Aws::EMR::Model::InstanceTypeConfig::GetConfigurations
const Aws::Vector< Configuration > & GetConfigurations() const
Definition: InstanceTypeConfig.h:266
AWSVector.h
Aws::EMR::Model::InstanceTypeConfig::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: InstanceTypeConfig.h:51
Aws::EMR::Model::InstanceTypeConfig::SetBidPriceAsPercentageOfOnDemandPrice
void SetBidPriceAsPercentageOfOnDemandPrice(double value)
Definition: InstanceTypeConfig.h:212
Aws::EMR::Model::InstanceTypeConfig::EbsConfigurationHasBeenSet
bool EbsConfigurationHasBeenSet() const
Definition: InstanceTypeConfig.h:234
Aws::EMR::Model::InstanceTypeConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceTypeConfig::GetWeightedCapacity
int GetWeightedCapacity() const
Definition: InstanceTypeConfig.h:95
Aws::EMR::Model::InstanceTypeConfig::WithWeightedCapacity
InstanceTypeConfig & WithWeightedCapacity(int value)
Definition: InstanceTypeConfig.h:119
Aws::EMR::Model::InstanceTypeConfig::WithInstanceType
InstanceTypeConfig & WithInstanceType(const Aws::String &value)
Definition: InstanceTypeConfig.h:76
Configuration.h
Aws::EMR::Model::InstanceTypeConfig::GetBidPriceAsPercentageOfOnDemandPrice
double GetBidPriceAsPercentageOfOnDemandPrice() const
Definition: InstanceTypeConfig.h:194
Aws::EMR::Model::InstanceTypeConfig::SetEbsConfiguration
void SetEbsConfiguration(EbsConfiguration &&value)
Definition: InstanceTypeConfig.h:246
Aws::EMR::Model::InstanceTypeConfig::ConfigurationsHasBeenSet
bool ConfigurationsHasBeenSet() const
Definition: InstanceTypeConfig.h:273
Aws::EMR::Model::EbsConfiguration
Definition: EbsConfiguration.h:34
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::InstanceTypeConfig
Definition: InstanceTypeConfig.h:40
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceTypeConfig::SetBidPrice
void SetBidPrice(const Aws::String &value)
Definition: InstanceTypeConfig.h:144
Aws::EMR::Model::InstanceTypeConfig::BidPriceHasBeenSet
bool BidPriceHasBeenSet() const
Definition: InstanceTypeConfig.h:136
Aws::EMR::Model::InstanceTypeConfig::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: InstanceTypeConfig.h:103
Aws::EMR::Model::InstanceTypeConfig::WithEbsConfiguration
InstanceTypeConfig & WithEbsConfiguration(const EbsConfiguration &value)
Definition: InstanceTypeConfig.h:252
Aws::EMR::Model::InstanceTypeConfig::WithConfigurations
InstanceTypeConfig & WithConfigurations(Aws::Vector< Configuration > &&value)
Definition: InstanceTypeConfig.h:301
Aws::EMR::Model::InstanceTypeConfig::WithEbsConfiguration
InstanceTypeConfig & WithEbsConfiguration(EbsConfiguration &&value)
Definition: InstanceTypeConfig.h:258
Aws::EMR::Model::InstanceTypeConfig::GetEbsConfiguration
const EbsConfiguration & GetEbsConfiguration() const
Definition: InstanceTypeConfig.h:228
Aws::EMR::Model::InstanceTypeConfig::SetEbsConfiguration
void SetEbsConfiguration(const EbsConfiguration &value)
Definition: InstanceTypeConfig.h:240
Aws::EMR::Model::InstanceTypeConfig::WithInstanceType
InstanceTypeConfig & WithInstanceType(Aws::String &&value)
Definition: InstanceTypeConfig.h:81
Aws::EMR::Model::InstanceTypeConfig::SetInstanceType
void SetInstanceType(const char *value)
Definition: InstanceTypeConfig.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceTypeConfig::GetBidPrice
const Aws::String & GetBidPrice() const
Definition: InstanceTypeConfig.h:128
Aws::EMR::Model::InstanceTypeConfig::InstanceTypeConfig
InstanceTypeConfig()
Aws::EMR::Model::InstanceTypeConfig::operator=
InstanceTypeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceTypeConfig::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: InstanceTypeConfig.h:66
Aws::EMR::Model::InstanceTypeConfig::WithBidPrice
InstanceTypeConfig & WithBidPrice(const char *value)
Definition: InstanceTypeConfig.h:184
Aws::EMR::Model::InstanceTypeConfig::SetWeightedCapacity
void SetWeightedCapacity(int value)
Definition: InstanceTypeConfig.h:111
Aws::EMR::Model::InstanceTypeConfig::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceTypeConfig.h:56
Aws::EMR::Model::InstanceTypeConfig::InstanceTypeConfig
InstanceTypeConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceTypeConfig::SetBidPrice
void SetBidPrice(const char *value)
Definition: InstanceTypeConfig.h:160
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceTypeConfig::AddConfigurations
InstanceTypeConfig & AddConfigurations(const Configuration &value)
Definition: InstanceTypeConfig.h:308