AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PCS {
20namespace Model {
21
30 public:
31 AWS_PCS_API SpotOptions() = default;
35
37
47 inline SpotAllocationStrategy GetAllocationStrategy() const { return m_allocationStrategy; }
48 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
50 m_allocationStrategyHasBeenSet = true;
51 m_allocationStrategy = value;
52 }
55 return *this;
56 }
58 private:
60 bool m_allocationStrategyHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace PCS
65} // 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:47
void SetAllocationStrategy(SpotAllocationStrategy value)
Definition SpotOptions.h:49
AWS_PCS_API SpotOptions()=default
bool AllocationStrategyHasBeenSet() const
Definition SpotOptions.h:48
SpotOptions & WithAllocationStrategy(SpotAllocationStrategy value)
Definition SpotOptions.h:53
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue