AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/scheduler/Scheduler_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Scheduler {
20namespace Model {
21
28 public:
29 AWS_SCHEDULER_API CapacityProviderStrategyItem() = default;
32 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
41 inline int GetBase() const { return m_base; }
42 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
43 inline void SetBase(int value) {
44 m_baseHasBeenSet = true;
45 m_base = value;
46 }
48 SetBase(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCapacityProvider() const { return m_capacityProvider; }
58 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
59 template <typename CapacityProviderT = Aws::String>
60 void SetCapacityProvider(CapacityProviderT&& value) {
61 m_capacityProviderHasBeenSet = true;
62 m_capacityProvider = std::forward<CapacityProviderT>(value);
63 }
64 template <typename CapacityProviderT = Aws::String>
66 SetCapacityProvider(std::forward<CapacityProviderT>(value));
67 return *this;
68 }
70
72
77 inline int GetWeight() const { return m_weight; }
78 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
79 inline void SetWeight(int value) {
80 m_weightHasBeenSet = true;
81 m_weight = value;
82 }
84 SetWeight(value);
85 return *this;
86 }
88 private:
89 int m_base{0};
90
91 Aws::String m_capacityProvider;
92
93 int m_weight{0};
94 bool m_baseHasBeenSet = false;
95 bool m_capacityProviderHasBeenSet = false;
96 bool m_weightHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Scheduler
101} // namespace Aws
AWS_SCHEDULER_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithCapacityProvider(CapacityProviderT &&value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SCHEDULER_API CapacityProviderStrategyItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue