AWS SDK for C++  1.8.129
AWS SDK for C++
OnDemandProvisioningSpecification.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace EMR
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
49  inline const OnDemandProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
50 
56  inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
57 
63  inline void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
64 
70  inline void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
71 
77  inline OnDemandProvisioningSpecification& WithAllocationStrategy(const OnDemandProvisioningAllocationStrategy& value) { SetAllocationStrategy(value); return *this;}
78 
84  inline OnDemandProvisioningSpecification& WithAllocationStrategy(OnDemandProvisioningAllocationStrategy&& value) { SetAllocationStrategy(std::move(value)); return *this;}
85 
86  private:
87 
88  OnDemandProvisioningAllocationStrategy m_allocationStrategy;
89  bool m_allocationStrategyHasBeenSet;
90  };
91 
92 } // namespace Model
93 } // namespace EMR
94 } // namespace Aws
Aws::EMR::Model::OnDemandProvisioningSpecification::OnDemandProvisioningSpecification
OnDemandProvisioningSpecification(Aws::Utils::Json::JsonView jsonValue)
EMR_EXPORTS.h
OnDemandProvisioningAllocationStrategy.h
Aws::EMR::Model::OnDemandProvisioningSpecification::AllocationStrategyHasBeenSet
bool AllocationStrategyHasBeenSet() const
Definition: OnDemandProvisioningSpecification.h:56
Aws::EMR::Model::OnDemandProvisioningSpecification
Definition: OnDemandProvisioningSpecification.h:36
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::OnDemandProvisioningSpecification::GetAllocationStrategy
const OnDemandProvisioningAllocationStrategy & GetAllocationStrategy() const
Definition: OnDemandProvisioningSpecification.h:49
Aws::EMR::Model::OnDemandProvisioningSpecification::WithAllocationStrategy
OnDemandProvisioningSpecification & WithAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
Definition: OnDemandProvisioningSpecification.h:77
Aws::EMR::Model::OnDemandProvisioningSpecification::operator=
OnDemandProvisioningSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::OnDemandProvisioningSpecification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::OnDemandProvisioningSpecification::WithAllocationStrategy
OnDemandProvisioningSpecification & WithAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
Definition: OnDemandProvisioningSpecification.h:84
Aws::EMR::Model::OnDemandProvisioningSpecification::SetAllocationStrategy
void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
Definition: OnDemandProvisioningSpecification.h:70
Aws::EMR::Model::OnDemandProvisioningSpecification::OnDemandProvisioningSpecification
OnDemandProvisioningSpecification()
Aws::EMR::Model::OnDemandProvisioningAllocationStrategy
OnDemandProvisioningAllocationStrategy
Definition: OnDemandProvisioningAllocationStrategy.h:17
Aws::EMR::Model::OnDemandProvisioningSpecification::SetAllocationStrategy
void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
Definition: OnDemandProvisioningSpecification.h:63
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28