AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotResizingSpecification.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/SpotProvisioningAllocationStrategy.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR
22{
23namespace Model
24{
25
33 {
34 public:
39
40
42
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
65 inline const SpotProvisioningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
66 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
67 inline void SetAllocationStrategy(const SpotProvisioningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
68 inline void SetAllocationStrategy(SpotProvisioningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
72 private:
73
74 int m_timeoutDurationMinutes;
75 bool m_timeoutDurationMinutesHasBeenSet = false;
76
77 SpotProvisioningAllocationStrategy m_allocationStrategy;
78 bool m_allocationStrategyHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EMR
83} // namespace Aws
SpotResizingSpecification & WithAllocationStrategy(SpotProvisioningAllocationStrategy &&value)
SpotResizingSpecification & WithAllocationStrategy(const SpotProvisioningAllocationStrategy &value)
void SetAllocationStrategy(SpotProvisioningAllocationStrategy &&value)
AWS_EMR_API SpotResizingSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API SpotResizingSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
SpotResizingSpecification & WithTimeoutDurationMinutes(int value)
const SpotProvisioningAllocationStrategy & GetAllocationStrategy() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllocationStrategy(const SpotProvisioningAllocationStrategy &value)
Aws::Utils::Json::JsonValue JsonValue