AWS SDK for C++  1.9.19
AWS SDK for C++
InstanceFleetConfig.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace EMR
26 {
27 namespace Model
28 {
29 
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 InstanceFleetConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline InstanceFleetConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline InstanceFleetConfig& WithName(const char* value) { SetName(value); return *this;}
85 
86 
91  inline const InstanceFleetType& GetInstanceFleetType() const{ return m_instanceFleetType; }
92 
97  inline bool InstanceFleetTypeHasBeenSet() const { return m_instanceFleetTypeHasBeenSet; }
98 
103  inline void SetInstanceFleetType(const InstanceFleetType& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = value; }
104 
109  inline void SetInstanceFleetType(InstanceFleetType&& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = std::move(value); }
110 
115  inline InstanceFleetConfig& WithInstanceFleetType(const InstanceFleetType& value) { SetInstanceFleetType(value); return *this;}
116 
121  inline InstanceFleetConfig& WithInstanceFleetType(InstanceFleetType&& value) { SetInstanceFleetType(std::move(value)); return *this;}
122 
123 
143  inline int GetTargetOnDemandCapacity() const{ return m_targetOnDemandCapacity; }
144 
164  inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
165 
185  inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
186 
206  inline InstanceFleetConfig& WithTargetOnDemandCapacity(int value) { SetTargetOnDemandCapacity(value); return *this;}
207 
208 
227  inline int GetTargetSpotCapacity() const{ return m_targetSpotCapacity; }
228 
247  inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
248 
267  inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
268 
287  inline InstanceFleetConfig& WithTargetSpotCapacity(int value) { SetTargetSpotCapacity(value); return *this;}
288 
289 
294  inline const Aws::Vector<InstanceTypeConfig>& GetInstanceTypeConfigs() const{ return m_instanceTypeConfigs; }
295 
300  inline bool InstanceTypeConfigsHasBeenSet() const { return m_instanceTypeConfigsHasBeenSet; }
301 
306  inline void SetInstanceTypeConfigs(const Aws::Vector<InstanceTypeConfig>& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = value; }
307 
312  inline void SetInstanceTypeConfigs(Aws::Vector<InstanceTypeConfig>&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = std::move(value); }
313 
318  inline InstanceFleetConfig& WithInstanceTypeConfigs(const Aws::Vector<InstanceTypeConfig>& value) { SetInstanceTypeConfigs(value); return *this;}
319 
324  inline InstanceFleetConfig& WithInstanceTypeConfigs(Aws::Vector<InstanceTypeConfig>&& value) { SetInstanceTypeConfigs(std::move(value)); return *this;}
325 
330  inline InstanceFleetConfig& AddInstanceTypeConfigs(const InstanceTypeConfig& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.push_back(value); return *this; }
331 
336  inline InstanceFleetConfig& AddInstanceTypeConfigs(InstanceTypeConfig&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.push_back(std::move(value)); return *this; }
337 
338 
342  inline const InstanceFleetProvisioningSpecifications& GetLaunchSpecifications() const{ return m_launchSpecifications; }
343 
347  inline bool LaunchSpecificationsHasBeenSet() const { return m_launchSpecificationsHasBeenSet; }
348 
352  inline void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = value; }
353 
357  inline void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications&& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = std::move(value); }
358 
362  inline InstanceFleetConfig& WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications& value) { SetLaunchSpecifications(value); return *this;}
363 
367  inline InstanceFleetConfig& WithLaunchSpecifications(InstanceFleetProvisioningSpecifications&& value) { SetLaunchSpecifications(std::move(value)); return *this;}
368 
369  private:
370 
371  Aws::String m_name;
372  bool m_nameHasBeenSet;
373 
374  InstanceFleetType m_instanceFleetType;
375  bool m_instanceFleetTypeHasBeenSet;
376 
377  int m_targetOnDemandCapacity;
378  bool m_targetOnDemandCapacityHasBeenSet;
379 
380  int m_targetSpotCapacity;
381  bool m_targetSpotCapacityHasBeenSet;
382 
383  Aws::Vector<InstanceTypeConfig> m_instanceTypeConfigs;
384  bool m_instanceTypeConfigsHasBeenSet;
385 
386  InstanceFleetProvisioningSpecifications m_launchSpecifications;
387  bool m_launchSpecificationsHasBeenSet;
388  };
389 
390 } // namespace Model
391 } // namespace EMR
392 } // namespace Aws
Aws::EMR::Model::InstanceFleetConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InstanceFleetConfig.h:54
Aws::EMR::Model::InstanceFleetConfig::WithInstanceFleetType
InstanceFleetConfig & WithInstanceFleetType(InstanceFleetType &&value)
Definition: InstanceFleetConfig.h:121
Aws::EMR::Model::InstanceFleetConfig::WithInstanceFleetType
InstanceFleetConfig & WithInstanceFleetType(const InstanceFleetType &value)
Definition: InstanceFleetConfig.h:115
Aws::EMR::Model::InstanceFleetConfig::SetInstanceTypeConfigs
void SetInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
Definition: InstanceFleetConfig.h:306
EMR_EXPORTS.h
Aws::EMR::Model::InstanceFleetConfig::GetName
const Aws::String & GetName() const
Definition: InstanceFleetConfig.h:49
Aws::EMR::Model::InstanceFleetConfig::WithTargetSpotCapacity
InstanceFleetConfig & WithTargetSpotCapacity(int value)
Definition: InstanceFleetConfig.h:287
Aws::EMR::Model::InstanceFleetConfig::InstanceTypeConfigsHasBeenSet
bool InstanceTypeConfigsHasBeenSet() const
Definition: InstanceFleetConfig.h:300
Aws::EMR::Model::InstanceFleetConfig::WithName
InstanceFleetConfig & WithName(const Aws::String &value)
Definition: InstanceFleetConfig.h:74
Aws::EMR::Model::InstanceFleetConfig::GetInstanceFleetType
const InstanceFleetType & GetInstanceFleetType() const
Definition: InstanceFleetConfig.h:91
Aws::EMR::Model::InstanceFleetConfig::AddInstanceTypeConfigs
InstanceFleetConfig & AddInstanceTypeConfigs(InstanceTypeConfig &&value)
Definition: InstanceFleetConfig.h:336
Aws::EMR::Model::InstanceFleetProvisioningSpecifications
Definition: InstanceFleetProvisioningSpecifications.h:38
Aws::EMR::Model::InstanceFleetConfig::InstanceFleetConfig
InstanceFleetConfig()
Aws::EMR::Model::InstanceFleetConfig::GetInstanceTypeConfigs
const Aws::Vector< InstanceTypeConfig > & GetInstanceTypeConfigs() const
Definition: InstanceFleetConfig.h:294
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::InstanceFleetConfig::SetName
void SetName(const Aws::String &value)
Definition: InstanceFleetConfig.h:59
Aws::EMR::Model::InstanceFleetConfig::SetTargetOnDemandCapacity
void SetTargetOnDemandCapacity(int value)
Definition: InstanceFleetConfig.h:185
Aws::EMR::Model::InstanceFleetConfig::GetTargetSpotCapacity
int GetTargetSpotCapacity() const
Definition: InstanceFleetConfig.h:227
Aws::EMR::Model::InstanceFleetConfig::WithInstanceTypeConfigs
InstanceFleetConfig & WithInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
Definition: InstanceFleetConfig.h:318
AWSVector.h
Aws::EMR::Model::InstanceFleetConfig::SetLaunchSpecifications
void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
Definition: InstanceFleetConfig.h:357
Aws::EMR::Model::InstanceFleetConfig::operator=
InstanceFleetConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleetConfig::GetTargetOnDemandCapacity
int GetTargetOnDemandCapacity() const
Definition: InstanceFleetConfig.h:143
Aws::EMR::Model::InstanceFleetConfig::WithLaunchSpecifications
InstanceFleetConfig & WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
Definition: InstanceFleetConfig.h:362
Aws::EMR::Model::InstanceFleetConfig::WithTargetOnDemandCapacity
InstanceFleetConfig & WithTargetOnDemandCapacity(int value)
Definition: InstanceFleetConfig.h:206
Aws::EMR::Model::InstanceFleetConfig
Definition: InstanceFleetConfig.h:38
Aws::EMR::Model::InstanceFleetConfig::WithName
InstanceFleetConfig & WithName(const char *value)
Definition: InstanceFleetConfig.h:84
Aws::EMR::Model::InstanceFleetConfig::TargetSpotCapacityHasBeenSet
bool TargetSpotCapacityHasBeenSet() const
Definition: InstanceFleetConfig.h:247
Aws::EMR::Model::InstanceFleetType
InstanceFleetType
Definition: InstanceFleetType.h:17
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::InstanceFleetConfig::InstanceFleetConfig
InstanceFleetConfig(Aws::Utils::Json::JsonView jsonValue)
InstanceTypeConfig.h
Aws::EMR::Model::InstanceFleetConfig::WithLaunchSpecifications
InstanceFleetConfig & WithLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
Definition: InstanceFleetConfig.h:367
Aws::EMR::Model::InstanceFleetConfig::SetTargetSpotCapacity
void SetTargetSpotCapacity(int value)
Definition: InstanceFleetConfig.h:267
InstanceFleetProvisioningSpecifications.h
Aws::EMR::Model::InstanceFleetConfig::InstanceFleetTypeHasBeenSet
bool InstanceFleetTypeHasBeenSet() const
Definition: InstanceFleetConfig.h:97
Aws::EMR::Model::InstanceFleetConfig::LaunchSpecificationsHasBeenSet
bool LaunchSpecificationsHasBeenSet() const
Definition: InstanceFleetConfig.h:347
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceFleetConfig::GetLaunchSpecifications
const InstanceFleetProvisioningSpecifications & GetLaunchSpecifications() const
Definition: InstanceFleetConfig.h:342
Aws::EMR::Model::InstanceFleetConfig::AddInstanceTypeConfigs
InstanceFleetConfig & AddInstanceTypeConfigs(const InstanceTypeConfig &value)
Definition: InstanceFleetConfig.h:330
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceFleetConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
InstanceFleetType.h
Aws::EMR::Model::InstanceFleetConfig::WithName
InstanceFleetConfig & WithName(Aws::String &&value)
Definition: InstanceFleetConfig.h:79
Aws::EMR::Model::InstanceFleetConfig::SetInstanceFleetType
void SetInstanceFleetType(const InstanceFleetType &value)
Definition: InstanceFleetConfig.h:103
Aws::EMR::Model::InstanceFleetConfig::SetInstanceTypeConfigs
void SetInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
Definition: InstanceFleetConfig.h:312
Aws::EMR::Model::InstanceFleetConfig::SetLaunchSpecifications
void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
Definition: InstanceFleetConfig.h:352
Aws::EMR::Model::InstanceFleetConfig::TargetOnDemandCapacityHasBeenSet
bool TargetOnDemandCapacityHasBeenSet() const
Definition: InstanceFleetConfig.h:164
Aws::EMR::Model::InstanceFleetConfig::SetName
void SetName(Aws::String &&value)
Definition: InstanceFleetConfig.h:64
Aws::EMR::Model::InstanceFleetConfig::WithInstanceTypeConfigs
InstanceFleetConfig & WithInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
Definition: InstanceFleetConfig.h:324
Aws::EMR::Model::InstanceFleetConfig::SetName
void SetName(const char *value)
Definition: InstanceFleetConfig.h:69
Aws::EMR::Model::InstanceFleetConfig::SetInstanceFleetType
void SetInstanceFleetType(InstanceFleetType &&value)
Definition: InstanceFleetConfig.h:109
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28