AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OnDemandProvisioningSpecification.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/OnDemandProvisioningAllocationStrategy.h>
9#include <aws/elasticmapreduce/model/OnDemandCapacityReservationOptions.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
37 {
38 public:
43
44
46
54 inline const OnDemandProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
55 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
56 inline void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
57 inline void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
61
63
67 inline const OnDemandCapacityReservationOptions& GetCapacityReservationOptions() const{ return m_capacityReservationOptions; }
68 inline bool CapacityReservationOptionsHasBeenSet() const { return m_capacityReservationOptionsHasBeenSet; }
69 inline void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = value; }
70 inline void SetCapacityReservationOptions(OnDemandCapacityReservationOptions&& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = std::move(value); }
74 private:
75
76 OnDemandProvisioningAllocationStrategy m_allocationStrategy;
77 bool m_allocationStrategyHasBeenSet = false;
78
79 OnDemandCapacityReservationOptions m_capacityReservationOptions;
80 bool m_capacityReservationOptionsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace EMR
85} // namespace Aws
void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions &value)
OnDemandProvisioningSpecification & WithAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API OnDemandProvisioningSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API OnDemandProvisioningSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
OnDemandProvisioningSpecification & WithCapacityReservationOptions(OnDemandCapacityReservationOptions &&value)
OnDemandProvisioningSpecification & WithAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
void SetCapacityReservationOptions(OnDemandCapacityReservationOptions &&value)
void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
OnDemandProvisioningSpecification & WithCapacityReservationOptions(const OnDemandCapacityReservationOptions &value)
const OnDemandProvisioningAllocationStrategy & GetAllocationStrategy() const
const OnDemandCapacityReservationOptions & GetCapacityReservationOptions() const
Aws::Utils::Json::JsonValue JsonValue