AWS SDK for C++  1.9.71
AWS SDK for C++
OnDemandProvisioningSpecification.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 
37  {
38  public:
43 
44 
50  inline const OnDemandProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
51 
57  inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
58 
64  inline void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
65 
71  inline void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
72 
78  inline OnDemandProvisioningSpecification& WithAllocationStrategy(const OnDemandProvisioningAllocationStrategy& value) { SetAllocationStrategy(value); return *this;}
79 
85  inline OnDemandProvisioningSpecification& WithAllocationStrategy(OnDemandProvisioningAllocationStrategy&& value) { SetAllocationStrategy(std::move(value)); return *this;}
86 
87 
92  inline const OnDemandCapacityReservationOptions& GetCapacityReservationOptions() const{ return m_capacityReservationOptions; }
93 
98  inline bool CapacityReservationOptionsHasBeenSet() const { return m_capacityReservationOptionsHasBeenSet; }
99 
104  inline void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = value; }
105 
110  inline void SetCapacityReservationOptions(OnDemandCapacityReservationOptions&& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = std::move(value); }
111 
116  inline OnDemandProvisioningSpecification& WithCapacityReservationOptions(const OnDemandCapacityReservationOptions& value) { SetCapacityReservationOptions(value); return *this;}
117 
122  inline OnDemandProvisioningSpecification& WithCapacityReservationOptions(OnDemandCapacityReservationOptions&& value) { SetCapacityReservationOptions(std::move(value)); return *this;}
123 
124  private:
125 
126  OnDemandProvisioningAllocationStrategy m_allocationStrategy;
127  bool m_allocationStrategyHasBeenSet;
128 
129  OnDemandCapacityReservationOptions m_capacityReservationOptions;
130  bool m_capacityReservationOptionsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EMR
135 } // namespace Aws
Aws::EMR::Model::OnDemandProvisioningSpecification::OnDemandProvisioningSpecification
OnDemandProvisioningSpecification(Aws::Utils::Json::JsonView jsonValue)
EMR_EXPORTS.h
Aws::EMR::Model::OnDemandProvisioningSpecification::SetCapacityReservationOptions
void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions &value)
Definition: OnDemandProvisioningSpecification.h:104
Aws::EMR::Model::OnDemandProvisioningSpecification::WithCapacityReservationOptions
OnDemandProvisioningSpecification & WithCapacityReservationOptions(const OnDemandCapacityReservationOptions &value)
Definition: OnDemandProvisioningSpecification.h:116
Aws::EMR::Model::OnDemandProvisioningSpecification::CapacityReservationOptionsHasBeenSet
bool CapacityReservationOptionsHasBeenSet() const
Definition: OnDemandProvisioningSpecification.h:98
OnDemandProvisioningAllocationStrategy.h
Aws::EMR::Model::OnDemandCapacityReservationOptions
Definition: OnDemandCapacityReservationOptions.h:35
OnDemandCapacityReservationOptions.h
Aws::EMR::Model::OnDemandProvisioningSpecification::SetCapacityReservationOptions
void SetCapacityReservationOptions(OnDemandCapacityReservationOptions &&value)
Definition: OnDemandProvisioningSpecification.h:110
Aws::EMR::Model::OnDemandProvisioningSpecification::WithCapacityReservationOptions
OnDemandProvisioningSpecification & WithCapacityReservationOptions(OnDemandCapacityReservationOptions &&value)
Definition: OnDemandProvisioningSpecification.h:122
Aws::EMR::Model::OnDemandProvisioningSpecification::AllocationStrategyHasBeenSet
bool AllocationStrategyHasBeenSet() const
Definition: OnDemandProvisioningSpecification.h:57
Aws::EMR::Model::OnDemandProvisioningSpecification::GetCapacityReservationOptions
const OnDemandCapacityReservationOptions & GetCapacityReservationOptions() const
Definition: OnDemandProvisioningSpecification.h:92
Aws::EMR::Model::OnDemandProvisioningSpecification
Definition: OnDemandProvisioningSpecification.h:37
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:50
Aws::EMR::Model::OnDemandProvisioningSpecification::WithAllocationStrategy
OnDemandProvisioningSpecification & WithAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
Definition: OnDemandProvisioningSpecification.h:78
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:85
Aws::EMR::Model::OnDemandProvisioningSpecification::SetAllocationStrategy
void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
Definition: OnDemandProvisioningSpecification.h:71
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:64
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28