AWS SDK for C++  1.9.19
AWS SDK for C++
InstanceFleetProvisioningSpecifications.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
51  inline const SpotProvisioningSpecification& GetSpotSpecification() const{ return m_spotSpecification; }
52 
58  inline bool SpotSpecificationHasBeenSet() const { return m_spotSpecificationHasBeenSet; }
59 
65  inline void SetSpotSpecification(const SpotProvisioningSpecification& value) { m_spotSpecificationHasBeenSet = true; m_spotSpecification = value; }
66 
72  inline void SetSpotSpecification(SpotProvisioningSpecification&& value) { m_spotSpecificationHasBeenSet = true; m_spotSpecification = std::move(value); }
73 
79  inline InstanceFleetProvisioningSpecifications& WithSpotSpecification(const SpotProvisioningSpecification& value) { SetSpotSpecification(value); return *this;}
80 
86  inline InstanceFleetProvisioningSpecifications& WithSpotSpecification(SpotProvisioningSpecification&& value) { SetSpotSpecification(std::move(value)); return *this;}
87 
88 
96  inline const OnDemandProvisioningSpecification& GetOnDemandSpecification() const{ return m_onDemandSpecification; }
97 
105  inline bool OnDemandSpecificationHasBeenSet() const { return m_onDemandSpecificationHasBeenSet; }
106 
114  inline void SetOnDemandSpecification(const OnDemandProvisioningSpecification& value) { m_onDemandSpecificationHasBeenSet = true; m_onDemandSpecification = value; }
115 
123  inline void SetOnDemandSpecification(OnDemandProvisioningSpecification&& value) { m_onDemandSpecificationHasBeenSet = true; m_onDemandSpecification = std::move(value); }
124 
132  inline InstanceFleetProvisioningSpecifications& WithOnDemandSpecification(const OnDemandProvisioningSpecification& value) { SetOnDemandSpecification(value); return *this;}
133 
141  inline InstanceFleetProvisioningSpecifications& WithOnDemandSpecification(OnDemandProvisioningSpecification&& value) { SetOnDemandSpecification(std::move(value)); return *this;}
142 
143  private:
144 
145  SpotProvisioningSpecification m_spotSpecification;
146  bool m_spotSpecificationHasBeenSet;
147 
148  OnDemandProvisioningSpecification m_onDemandSpecification;
149  bool m_onDemandSpecificationHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace EMR
154 } // namespace Aws
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::OnDemandSpecificationHasBeenSet
bool OnDemandSpecificationHasBeenSet() const
Definition: InstanceFleetProvisioningSpecifications.h:105
Aws::EMR::Model::SpotProvisioningSpecification
Definition: SpotProvisioningSpecification.h:38
EMR_EXPORTS.h
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
SpotProvisioningSpecification.h
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::SpotSpecificationHasBeenSet
bool SpotSpecificationHasBeenSet() const
Definition: InstanceFleetProvisioningSpecifications.h:58
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::WithOnDemandSpecification
InstanceFleetProvisioningSpecifications & WithOnDemandSpecification(OnDemandProvisioningSpecification &&value)
Definition: InstanceFleetProvisioningSpecifications.h:141
Aws::EMR::Model::InstanceFleetProvisioningSpecifications
Definition: InstanceFleetProvisioningSpecifications.h:38
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::InstanceFleetProvisioningSpecifications
InstanceFleetProvisioningSpecifications(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::WithSpotSpecification
InstanceFleetProvisioningSpecifications & WithSpotSpecification(SpotProvisioningSpecification &&value)
Definition: InstanceFleetProvisioningSpecifications.h:86
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::SetOnDemandSpecification
void SetOnDemandSpecification(OnDemandProvisioningSpecification &&value)
Definition: InstanceFleetProvisioningSpecifications.h:123
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::WithSpotSpecification
InstanceFleetProvisioningSpecifications & WithSpotSpecification(const SpotProvisioningSpecification &value)
Definition: InstanceFleetProvisioningSpecifications.h:79
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::InstanceFleetProvisioningSpecifications
InstanceFleetProvisioningSpecifications()
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::SetSpotSpecification
void SetSpotSpecification(const SpotProvisioningSpecification &value)
Definition: InstanceFleetProvisioningSpecifications.h:65
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::GetSpotSpecification
const SpotProvisioningSpecification & GetSpotSpecification() const
Definition: InstanceFleetProvisioningSpecifications.h:51
Aws::EMR::Model::OnDemandProvisioningSpecification
Definition: OnDemandProvisioningSpecification.h:37
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::SetSpotSpecification
void SetSpotSpecification(SpotProvisioningSpecification &&value)
Definition: InstanceFleetProvisioningSpecifications.h:72
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::GetOnDemandSpecification
const OnDemandProvisioningSpecification & GetOnDemandSpecification() const
Definition: InstanceFleetProvisioningSpecifications.h:96
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::SetOnDemandSpecification
void SetOnDemandSpecification(const OnDemandProvisioningSpecification &value)
Definition: InstanceFleetProvisioningSpecifications.h:114
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::operator=
InstanceFleetProvisioningSpecifications & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
OnDemandProvisioningSpecification.h
Aws::EMR::Model::InstanceFleetProvisioningSpecifications::WithOnDemandSpecification
InstanceFleetProvisioningSpecifications & WithOnDemandSpecification(const OnDemandProvisioningSpecification &value)
Definition: InstanceFleetProvisioningSpecifications.h:132
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28