AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
53 inline const SpotAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
54 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
55 inline void SetAllocationStrategy(const SpotAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
56 inline void SetAllocationStrategy(SpotAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
58 inline SpotOptions& WithAllocationStrategy(SpotAllocationStrategy&& value) { SetAllocationStrategy(std::move(value)); return *this;}
60 private:
61
62 SpotAllocationStrategy m_allocationStrategy;
63 bool m_allocationStrategyHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace PCS
68} // namespace Aws
AWS_PCS_API SpotOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API SpotOptions(Aws::Utils::Json::JsonView jsonValue)
const SpotAllocationStrategy & GetAllocationStrategy() const
Definition SpotOptions.h:53
SpotOptions & WithAllocationStrategy(SpotAllocationStrategy &&value)
Definition SpotOptions.h:58
void SetAllocationStrategy(SpotAllocationStrategy &&value)
Definition SpotOptions.h:56
bool AllocationStrategyHasBeenSet() const
Definition SpotOptions.h:54
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllocationStrategy(const SpotAllocationStrategy &value)
Definition SpotOptions.h:55
SpotOptions & WithAllocationStrategy(const SpotAllocationStrategy &value)
Definition SpotOptions.h:57
Aws::Utils::Json::JsonValue JsonValue