AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotProvisioningSpecification.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/SpotProvisioningTimeoutAction.h>
9#include <aws/elasticmapreduce/model/SpotProvisioningAllocationStrategy.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
42 {
43 public:
48
49
51
57 inline int GetTimeoutDurationMinutes() const{ return m_timeoutDurationMinutes; }
58 inline bool TimeoutDurationMinutesHasBeenSet() const { return m_timeoutDurationMinutesHasBeenSet; }
59 inline void SetTimeoutDurationMinutes(int value) { m_timeoutDurationMinutesHasBeenSet = true; m_timeoutDurationMinutes = value; }
62
64
73 inline const SpotProvisioningTimeoutAction& GetTimeoutAction() const{ return m_timeoutAction; }
74 inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
75 inline void SetTimeoutAction(const SpotProvisioningTimeoutAction& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = value; }
76 inline void SetTimeoutAction(SpotProvisioningTimeoutAction&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::move(value); }
80
82
95 inline int GetBlockDurationMinutes() const{ return m_blockDurationMinutes; }
96 inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
97 inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
100
102
115 inline const SpotProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
116 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
117 inline void SetAllocationStrategy(const SpotProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
118 inline void SetAllocationStrategy(SpotProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
122 private:
123
124 int m_timeoutDurationMinutes;
125 bool m_timeoutDurationMinutesHasBeenSet = false;
126
127 SpotProvisioningTimeoutAction m_timeoutAction;
128 bool m_timeoutActionHasBeenSet = false;
129
130 int m_blockDurationMinutes;
131 bool m_blockDurationMinutesHasBeenSet = false;
132
133 SpotProvisioningAllocationStrategy m_allocationStrategy;
134 bool m_allocationStrategyHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EMR
139} // namespace Aws
AWS_EMR_API SpotProvisioningSpecification(Aws::Utils::Json::JsonView jsonValue)
SpotProvisioningSpecification & WithTimeoutDurationMinutes(int value)
SpotProvisioningSpecification & WithTimeoutAction(SpotProvisioningTimeoutAction &&value)
const SpotProvisioningAllocationStrategy & GetAllocationStrategy() const
const SpotProvisioningTimeoutAction & GetTimeoutAction() const
SpotProvisioningSpecification & WithAllocationStrategy(SpotProvisioningAllocationStrategy &&value)
SpotProvisioningSpecification & WithAllocationStrategy(const SpotProvisioningAllocationStrategy &value)
SpotProvisioningSpecification & WithBlockDurationMinutes(int value)
void SetAllocationStrategy(const SpotProvisioningAllocationStrategy &value)
void SetAllocationStrategy(SpotProvisioningAllocationStrategy &&value)
SpotProvisioningSpecification & WithTimeoutAction(const SpotProvisioningTimeoutAction &value)
void SetTimeoutAction(SpotProvisioningTimeoutAction &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API SpotProvisioningSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimeoutAction(const SpotProvisioningTimeoutAction &value)
Aws::Utils::Json::JsonValue JsonValue