AWS SDK for C++  1.9.21
AWS SDK for C++
InstanceTypeSpecification.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 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
50 
54  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
55 
59  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
60 
64  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
65 
69  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
70 
74  inline InstanceTypeSpecification& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
75 
79  inline InstanceTypeSpecification& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
80 
84  inline InstanceTypeSpecification& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
85 
86 
93  inline int GetWeightedCapacity() const{ return m_weightedCapacity; }
94 
101  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
102 
109  inline void SetWeightedCapacity(int value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
110 
117  inline InstanceTypeSpecification& WithWeightedCapacity(int value) { SetWeightedCapacity(value); return *this;}
118 
119 
124  inline const Aws::String& GetBidPrice() const{ return m_bidPrice; }
125 
130  inline bool BidPriceHasBeenSet() const { return m_bidPriceHasBeenSet; }
131 
136  inline void SetBidPrice(const Aws::String& value) { m_bidPriceHasBeenSet = true; m_bidPrice = value; }
137 
142  inline void SetBidPrice(Aws::String&& value) { m_bidPriceHasBeenSet = true; m_bidPrice = std::move(value); }
143 
148  inline void SetBidPrice(const char* value) { m_bidPriceHasBeenSet = true; m_bidPrice.assign(value); }
149 
154  inline InstanceTypeSpecification& WithBidPrice(const Aws::String& value) { SetBidPrice(value); return *this;}
155 
160  inline InstanceTypeSpecification& WithBidPrice(Aws::String&& value) { SetBidPrice(std::move(value)); return *this;}
161 
166  inline InstanceTypeSpecification& WithBidPrice(const char* value) { SetBidPrice(value); return *this;}
167 
168 
174  inline double GetBidPriceAsPercentageOfOnDemandPrice() const{ return m_bidPriceAsPercentageOfOnDemandPrice; }
175 
181  inline bool BidPriceAsPercentageOfOnDemandPriceHasBeenSet() const { return m_bidPriceAsPercentageOfOnDemandPriceHasBeenSet; }
182 
188  inline void SetBidPriceAsPercentageOfOnDemandPrice(double value) { m_bidPriceAsPercentageOfOnDemandPriceHasBeenSet = true; m_bidPriceAsPercentageOfOnDemandPrice = value; }
189 
195  inline InstanceTypeSpecification& WithBidPriceAsPercentageOfOnDemandPrice(double value) { SetBidPriceAsPercentageOfOnDemandPrice(value); return *this;}
196 
197 
203  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
204 
210  inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
211 
217  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
218 
224  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
225 
231  inline InstanceTypeSpecification& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
232 
238  inline InstanceTypeSpecification& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
239 
245  inline InstanceTypeSpecification& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
246 
252  inline InstanceTypeSpecification& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(std::move(value)); return *this; }
253 
254 
259  inline const Aws::Vector<EbsBlockDevice>& GetEbsBlockDevices() const{ return m_ebsBlockDevices; }
260 
265  inline bool EbsBlockDevicesHasBeenSet() const { return m_ebsBlockDevicesHasBeenSet; }
266 
271  inline void SetEbsBlockDevices(const Aws::Vector<EbsBlockDevice>& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices = value; }
272 
277  inline void SetEbsBlockDevices(Aws::Vector<EbsBlockDevice>&& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices = std::move(value); }
278 
283  inline InstanceTypeSpecification& WithEbsBlockDevices(const Aws::Vector<EbsBlockDevice>& value) { SetEbsBlockDevices(value); return *this;}
284 
289  inline InstanceTypeSpecification& WithEbsBlockDevices(Aws::Vector<EbsBlockDevice>&& value) { SetEbsBlockDevices(std::move(value)); return *this;}
290 
295  inline InstanceTypeSpecification& AddEbsBlockDevices(const EbsBlockDevice& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices.push_back(value); return *this; }
296 
301  inline InstanceTypeSpecification& AddEbsBlockDevices(EbsBlockDevice&& value) { m_ebsBlockDevicesHasBeenSet = true; m_ebsBlockDevices.push_back(std::move(value)); return *this; }
302 
303 
308  inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
309 
314  inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
315 
320  inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
321 
326  inline InstanceTypeSpecification& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
327 
328  private:
329 
330  Aws::String m_instanceType;
331  bool m_instanceTypeHasBeenSet;
332 
333  int m_weightedCapacity;
334  bool m_weightedCapacityHasBeenSet;
335 
336  Aws::String m_bidPrice;
337  bool m_bidPriceHasBeenSet;
338 
339  double m_bidPriceAsPercentageOfOnDemandPrice;
340  bool m_bidPriceAsPercentageOfOnDemandPriceHasBeenSet;
341 
342  Aws::Vector<Configuration> m_configurations;
343  bool m_configurationsHasBeenSet;
344 
345  Aws::Vector<EbsBlockDevice> m_ebsBlockDevices;
346  bool m_ebsBlockDevicesHasBeenSet;
347 
348  bool m_ebsOptimized;
349  bool m_ebsOptimizedHasBeenSet;
350  };
351 
352 } // namespace Model
353 } // namespace EMR
354 } // namespace Aws
Aws::EMR::Model::InstanceTypeSpecification::EbsBlockDevicesHasBeenSet
bool EbsBlockDevicesHasBeenSet() const
Definition: InstanceTypeSpecification.h:265
Aws::EMR::Model::InstanceTypeSpecification::GetWeightedCapacity
int GetWeightedCapacity() const
Definition: InstanceTypeSpecification.h:93
Aws::EMR::Model::InstanceTypeSpecification::WithInstanceType
InstanceTypeSpecification & WithInstanceType(const char *value)
Definition: InstanceTypeSpecification.h:84
Aws::EMR::Model::Configuration
Definition: Configuration.h:43
Aws::EMR::Model::InstanceTypeSpecification::SetInstanceType
void SetInstanceType(const char *value)
Definition: InstanceTypeSpecification.h:69
EMR_EXPORTS.h
Aws::EMR::Model::InstanceTypeSpecification::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: InstanceTypeSpecification.h:49
Aws::EMR::Model::InstanceTypeSpecification::WithInstanceType
InstanceTypeSpecification & WithInstanceType(Aws::String &&value)
Definition: InstanceTypeSpecification.h:79
Aws::EMR::Model::InstanceTypeSpecification::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: InstanceTypeSpecification.h:101
Aws::EMR::Model::InstanceTypeSpecification::WithEbsOptimized
InstanceTypeSpecification & WithEbsOptimized(bool value)
Definition: InstanceTypeSpecification.h:326
Aws::EMR::Model::InstanceTypeSpecification::SetWeightedCapacity
void SetWeightedCapacity(int value)
Definition: InstanceTypeSpecification.h:109
Aws::EMR::Model::InstanceTypeSpecification::WithConfigurations
InstanceTypeSpecification & WithConfigurations(Aws::Vector< Configuration > &&value)
Definition: InstanceTypeSpecification.h:238
Aws::EMR::Model::InstanceTypeSpecification::WithBidPrice
InstanceTypeSpecification & WithBidPrice(Aws::String &&value)
Definition: InstanceTypeSpecification.h:160
Aws::EMR::Model::InstanceTypeSpecification::AddConfigurations
InstanceTypeSpecification & AddConfigurations(Configuration &&value)
Definition: InstanceTypeSpecification.h:252
Aws::EMR::Model::InstanceTypeSpecification::WithBidPrice
InstanceTypeSpecification & WithBidPrice(const Aws::String &value)
Definition: InstanceTypeSpecification.h:154
Aws::EMR::Model::InstanceTypeSpecification::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: InstanceTypeSpecification.h:64
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
EbsBlockDevice.h
AWSVector.h
Aws::EMR::Model::EbsBlockDevice
Definition: EbsBlockDevice.h:34
Aws::EMR::Model::InstanceTypeSpecification::SetConfigurations
void SetConfigurations(Aws::Vector< Configuration > &&value)
Definition: InstanceTypeSpecification.h:224
Aws::EMR::Model::InstanceTypeSpecification::WithEbsBlockDevices
InstanceTypeSpecification & WithEbsBlockDevices(const Aws::Vector< EbsBlockDevice > &value)
Definition: InstanceTypeSpecification.h:283
Aws::EMR::Model::InstanceTypeSpecification::InstanceTypeSpecification
InstanceTypeSpecification()
Aws::EMR::Model::InstanceTypeSpecification::AddEbsBlockDevices
InstanceTypeSpecification & AddEbsBlockDevices(const EbsBlockDevice &value)
Definition: InstanceTypeSpecification.h:295
Aws::EMR::Model::InstanceTypeSpecification::GetEbsOptimized
bool GetEbsOptimized() const
Definition: InstanceTypeSpecification.h:308
Aws::EMR::Model::InstanceTypeSpecification::BidPriceHasBeenSet
bool BidPriceHasBeenSet() const
Definition: InstanceTypeSpecification.h:130
Aws::EMR::Model::InstanceTypeSpecification::SetBidPrice
void SetBidPrice(const Aws::String &value)
Definition: InstanceTypeSpecification.h:136
Aws::EMR::Model::InstanceTypeSpecification::SetEbsOptimized
void SetEbsOptimized(bool value)
Definition: InstanceTypeSpecification.h:320
Aws::EMR::Model::InstanceTypeSpecification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceTypeSpecification::GetConfigurations
const Aws::Vector< Configuration > & GetConfigurations() const
Definition: InstanceTypeSpecification.h:203
Configuration.h
Aws::EMR::Model::InstanceTypeSpecification::SetEbsBlockDevices
void SetEbsBlockDevices(Aws::Vector< EbsBlockDevice > &&value)
Definition: InstanceTypeSpecification.h:277
Aws::EMR::Model::InstanceTypeSpecification::SetBidPriceAsPercentageOfOnDemandPrice
void SetBidPriceAsPercentageOfOnDemandPrice(double value)
Definition: InstanceTypeSpecification.h:188
Aws::EMR::Model::InstanceTypeSpecification::WithConfigurations
InstanceTypeSpecification & WithConfigurations(const Aws::Vector< Configuration > &value)
Definition: InstanceTypeSpecification.h:231
Aws::EMR::Model::InstanceTypeSpecification::EbsOptimizedHasBeenSet
bool EbsOptimizedHasBeenSet() const
Definition: InstanceTypeSpecification.h:314
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceTypeSpecification::ConfigurationsHasBeenSet
bool ConfigurationsHasBeenSet() const
Definition: InstanceTypeSpecification.h:210
Aws::EMR::Model::InstanceTypeSpecification::operator=
InstanceTypeSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceTypeSpecification::SetConfigurations
void SetConfigurations(const Aws::Vector< Configuration > &value)
Definition: InstanceTypeSpecification.h:217
Aws::EMR::Model::InstanceTypeSpecification::SetBidPrice
void SetBidPrice(Aws::String &&value)
Definition: InstanceTypeSpecification.h:142
Aws::EMR::Model::InstanceTypeSpecification::BidPriceAsPercentageOfOnDemandPriceHasBeenSet
bool BidPriceAsPercentageOfOnDemandPriceHasBeenSet() const
Definition: InstanceTypeSpecification.h:181
Aws::EMR::Model::InstanceTypeSpecification::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: InstanceTypeSpecification.h:59
Aws::EMR::Model::InstanceTypeSpecification::GetEbsBlockDevices
const Aws::Vector< EbsBlockDevice > & GetEbsBlockDevices() const
Definition: InstanceTypeSpecification.h:259
Aws::EMR::Model::InstanceTypeSpecification::WithBidPrice
InstanceTypeSpecification & WithBidPrice(const char *value)
Definition: InstanceTypeSpecification.h:166
Aws::EMR::Model::InstanceTypeSpecification::WithInstanceType
InstanceTypeSpecification & WithInstanceType(const Aws::String &value)
Definition: InstanceTypeSpecification.h:74
Aws::EMR::Model::InstanceTypeSpecification
Definition: InstanceTypeSpecification.h:38
Aws::EMR::Model::InstanceTypeSpecification::WithEbsBlockDevices
InstanceTypeSpecification & WithEbsBlockDevices(Aws::Vector< EbsBlockDevice > &&value)
Definition: InstanceTypeSpecification.h:289
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceTypeSpecification::InstanceTypeSpecification
InstanceTypeSpecification(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceTypeSpecification::SetBidPrice
void SetBidPrice(const char *value)
Definition: InstanceTypeSpecification.h:148
Aws::EMR::Model::InstanceTypeSpecification::WithBidPriceAsPercentageOfOnDemandPrice
InstanceTypeSpecification & WithBidPriceAsPercentageOfOnDemandPrice(double value)
Definition: InstanceTypeSpecification.h:195
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceTypeSpecification::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceTypeSpecification.h:54
Aws::EMR::Model::InstanceTypeSpecification::GetBidPrice
const Aws::String & GetBidPrice() const
Definition: InstanceTypeSpecification.h:124
Aws::EMR::Model::InstanceTypeSpecification::WithWeightedCapacity
InstanceTypeSpecification & WithWeightedCapacity(int value)
Definition: InstanceTypeSpecification.h:117
Aws::EMR::Model::InstanceTypeSpecification::GetBidPriceAsPercentageOfOnDemandPrice
double GetBidPriceAsPercentageOfOnDemandPrice() const
Definition: InstanceTypeSpecification.h:174
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceTypeSpecification::AddEbsBlockDevices
InstanceTypeSpecification & AddEbsBlockDevices(EbsBlockDevice &&value)
Definition: InstanceTypeSpecification.h:301
Aws::EMR::Model::InstanceTypeSpecification::SetEbsBlockDevices
void SetEbsBlockDevices(const Aws::Vector< EbsBlockDevice > &value)
Definition: InstanceTypeSpecification.h:271
Aws::EMR::Model::InstanceTypeSpecification::AddConfigurations
InstanceTypeSpecification & AddConfigurations(const Configuration &value)
Definition: InstanceTypeSpecification.h:245