AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SpotOptions.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/pcs/model/SpotAllocationStrategy.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 PCS
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_PCS_API SpotOptions() = default;
40
41
43
53 inline SpotAllocationStrategy GetAllocationStrategy() const { return m_allocationStrategy; }
54 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
55 inline void SetAllocationStrategy(SpotAllocationStrategy value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
58 private:
59
61 bool m_allocationStrategyHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace PCS
66} // namespace Aws
AWS_PCS_API SpotOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API SpotOptions(Aws::Utils::Json::JsonView jsonValue)
SpotAllocationStrategy GetAllocationStrategy() const
Definition SpotOptions.h:53
void SetAllocationStrategy(SpotAllocationStrategy value)
Definition SpotOptions.h:55
AWS_PCS_API SpotOptions()=default
bool AllocationStrategyHasBeenSet() const
Definition SpotOptions.h:54
SpotOptions & WithAllocationStrategy(SpotAllocationStrategy value)
Definition SpotOptions.h:56
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue