AWS SDK for C++  1.8.126
AWS SDK for C++
SpotProvisioningSpecification.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 
38  {
39  public:
44 
45 
52  inline int GetTimeoutDurationMinutes() const{ return m_timeoutDurationMinutes; }
53 
60  inline bool TimeoutDurationMinutesHasBeenSet() const { return m_timeoutDurationMinutesHasBeenSet; }
61 
68  inline void SetTimeoutDurationMinutes(int value) { m_timeoutDurationMinutesHasBeenSet = true; m_timeoutDurationMinutes = value; }
69 
76  inline SpotProvisioningSpecification& WithTimeoutDurationMinutes(int value) { SetTimeoutDurationMinutes(value); return *this;}
77 
78 
88  inline const SpotProvisioningTimeoutAction& GetTimeoutAction() const{ return m_timeoutAction; }
89 
99  inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
100 
110  inline void SetTimeoutAction(const SpotProvisioningTimeoutAction& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = value; }
111 
121  inline void SetTimeoutAction(SpotProvisioningTimeoutAction&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::move(value); }
122 
132  inline SpotProvisioningSpecification& WithTimeoutAction(const SpotProvisioningTimeoutAction& value) { SetTimeoutAction(value); return *this;}
133 
143  inline SpotProvisioningSpecification& WithTimeoutAction(SpotProvisioningTimeoutAction&& value) { SetTimeoutAction(std::move(value)); return *this;}
144 
145 
155  inline int GetBlockDurationMinutes() const{ return m_blockDurationMinutes; }
156 
166  inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
167 
177  inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
178 
188  inline SpotProvisioningSpecification& WithBlockDurationMinutes(int value) { SetBlockDurationMinutes(value); return *this;}
189 
190 
197  inline const SpotProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
198 
205  inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
206 
213  inline void SetAllocationStrategy(const SpotProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
214 
221  inline void SetAllocationStrategy(SpotProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
222 
229  inline SpotProvisioningSpecification& WithAllocationStrategy(const SpotProvisioningAllocationStrategy& value) { SetAllocationStrategy(value); return *this;}
230 
237  inline SpotProvisioningSpecification& WithAllocationStrategy(SpotProvisioningAllocationStrategy&& value) { SetAllocationStrategy(std::move(value)); return *this;}
238 
239  private:
240 
241  int m_timeoutDurationMinutes;
242  bool m_timeoutDurationMinutesHasBeenSet;
243 
244  SpotProvisioningTimeoutAction m_timeoutAction;
245  bool m_timeoutActionHasBeenSet;
246 
247  int m_blockDurationMinutes;
248  bool m_blockDurationMinutesHasBeenSet;
249 
250  SpotProvisioningAllocationStrategy m_allocationStrategy;
251  bool m_allocationStrategyHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace EMR
256 } // namespace Aws
Aws::EMR::Model::SpotProvisioningSpecification::WithTimeoutAction
SpotProvisioningSpecification & WithTimeoutAction(const SpotProvisioningTimeoutAction &value)
Definition: SpotProvisioningSpecification.h:132
Aws::EMR::Model::SpotProvisioningSpecification::TimeoutActionHasBeenSet
bool TimeoutActionHasBeenSet() const
Definition: SpotProvisioningSpecification.h:99
Aws::EMR::Model::SpotProvisioningSpecification::GetTimeoutAction
const SpotProvisioningTimeoutAction & GetTimeoutAction() const
Definition: SpotProvisioningSpecification.h:88
Aws::EMR::Model::SpotProvisioningSpecification::SetAllocationStrategy
void SetAllocationStrategy(const SpotProvisioningAllocationStrategy &value)
Definition: SpotProvisioningSpecification.h:213
Aws::EMR::Model::SpotProvisioningSpecification
Definition: SpotProvisioningSpecification.h:38
Aws::EMR::Model::SpotProvisioningSpecification::WithTimeoutDurationMinutes
SpotProvisioningSpecification & WithTimeoutDurationMinutes(int value)
Definition: SpotProvisioningSpecification.h:76
EMR_EXPORTS.h
Aws::EMR::Model::SpotProvisioningSpecification::SpotProvisioningSpecification
SpotProvisioningSpecification()
Aws::EMR::Model::SpotProvisioningSpecification::WithAllocationStrategy
SpotProvisioningSpecification & WithAllocationStrategy(SpotProvisioningAllocationStrategy &&value)
Definition: SpotProvisioningSpecification.h:237
Aws::EMR::Model::SpotProvisioningSpecification::WithAllocationStrategy
SpotProvisioningSpecification & WithAllocationStrategy(const SpotProvisioningAllocationStrategy &value)
Definition: SpotProvisioningSpecification.h:229
Aws::EMR::Model::SpotProvisioningSpecification::GetTimeoutDurationMinutes
int GetTimeoutDurationMinutes() const
Definition: SpotProvisioningSpecification.h:52
Aws::EMR::Model::SpotProvisioningSpecification::GetAllocationStrategy
const SpotProvisioningAllocationStrategy & GetAllocationStrategy() const
Definition: SpotProvisioningSpecification.h:197
Aws::EMR::Model::SpotProvisioningAllocationStrategy
SpotProvisioningAllocationStrategy
Definition: SpotProvisioningAllocationStrategy.h:17
Aws::EMR::Model::SpotProvisioningSpecification::BlockDurationMinutesHasBeenSet
bool BlockDurationMinutesHasBeenSet() const
Definition: SpotProvisioningSpecification.h:166
Aws::EMR::Model::SpotProvisioningSpecification::GetBlockDurationMinutes
int GetBlockDurationMinutes() const
Definition: SpotProvisioningSpecification.h:155
Aws::EMR::Model::SpotProvisioningSpecification::WithTimeoutAction
SpotProvisioningSpecification & WithTimeoutAction(SpotProvisioningTimeoutAction &&value)
Definition: SpotProvisioningSpecification.h:143
Aws::EMR::Model::SpotProvisioningSpecification::TimeoutDurationMinutesHasBeenSet
bool TimeoutDurationMinutesHasBeenSet() const
Definition: SpotProvisioningSpecification.h:60
Aws::EMR::Model::SpotProvisioningSpecification::SetBlockDurationMinutes
void SetBlockDurationMinutes(int value)
Definition: SpotProvisioningSpecification.h:177
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::SpotProvisioningSpecification::operator=
SpotProvisioningSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
SpotProvisioningTimeoutAction.h
SpotProvisioningAllocationStrategy.h
Aws::EMR::Model::SpotProvisioningSpecification::SetTimeoutDurationMinutes
void SetTimeoutDurationMinutes(int value)
Definition: SpotProvisioningSpecification.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::SpotProvisioningSpecification::SetTimeoutAction
void SetTimeoutAction(SpotProvisioningTimeoutAction &&value)
Definition: SpotProvisioningSpecification.h:121
Aws::EMR::Model::SpotProvisioningSpecification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::SpotProvisioningSpecification::SpotProvisioningSpecification
SpotProvisioningSpecification(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::SpotProvisioningSpecification::SetTimeoutAction
void SetTimeoutAction(const SpotProvisioningTimeoutAction &value)
Definition: SpotProvisioningSpecification.h:110
Aws::EMR::Model::SpotProvisioningTimeoutAction
SpotProvisioningTimeoutAction
Definition: SpotProvisioningTimeoutAction.h:17
Aws::EMR::Model::SpotProvisioningSpecification::SetAllocationStrategy
void SetAllocationStrategy(SpotProvisioningAllocationStrategy &&value)
Definition: SpotProvisioningSpecification.h:221
Aws::EMR::Model::SpotProvisioningSpecification::AllocationStrategyHasBeenSet
bool AllocationStrategyHasBeenSet() const
Definition: SpotProvisioningSpecification.h:205
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::SpotProvisioningSpecification::WithBlockDurationMinutes
SpotProvisioningSpecification & WithBlockDurationMinutes(int value)
Definition: SpotProvisioningSpecification.h:188