AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OnDemandResizingSpecification.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
34 {
35 public:
40
41
43
52 inline int GetTimeoutDurationMinutes() const{ return m_timeoutDurationMinutes; }
53 inline bool TimeoutDurationMinutesHasBeenSet() const { return m_timeoutDurationMinutesHasBeenSet; }
54 inline void SetTimeoutDurationMinutes(int value) { m_timeoutDurationMinutesHasBeenSet = true; m_timeoutDurationMinutes = value; }
57
59
63 inline const OnDemandProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
64 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
65 inline void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
66 inline void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
70
72
73 inline const OnDemandCapacityReservationOptions& GetCapacityReservationOptions() const{ return m_capacityReservationOptions; }
74 inline bool CapacityReservationOptionsHasBeenSet() const { return m_capacityReservationOptionsHasBeenSet; }
75 inline void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = value; }
76 inline void SetCapacityReservationOptions(OnDemandCapacityReservationOptions&& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = std::move(value); }
80 private:
81
82 int m_timeoutDurationMinutes;
83 bool m_timeoutDurationMinutesHasBeenSet = false;
84
85 OnDemandProvisioningAllocationStrategy m_allocationStrategy;
86 bool m_allocationStrategyHasBeenSet = false;
87
88 OnDemandCapacityReservationOptions m_capacityReservationOptions;
89 bool m_capacityReservationOptionsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace EMR
94} // namespace Aws
const OnDemandProvisioningAllocationStrategy & GetAllocationStrategy() const
OnDemandResizingSpecification & WithCapacityReservationOptions(const OnDemandCapacityReservationOptions &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
OnDemandResizingSpecification & WithAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
AWS_EMR_API OnDemandResizingSpecification(Aws::Utils::Json::JsonView jsonValue)
OnDemandResizingSpecification & WithCapacityReservationOptions(OnDemandCapacityReservationOptions &&value)
void SetCapacityReservationOptions(OnDemandCapacityReservationOptions &&value)
void SetAllocationStrategy(OnDemandProvisioningAllocationStrategy &&value)
OnDemandResizingSpecification & WithTimeoutDurationMinutes(int value)
void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions &value)
OnDemandResizingSpecification & WithAllocationStrategy(const OnDemandProvisioningAllocationStrategy &value)
const OnDemandCapacityReservationOptions & GetCapacityReservationOptions() const
AWS_EMR_API OnDemandResizingSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue