AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
Go to the documentation of this file.
1
6#pragma once
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 Scheduler
22{
23namespace Model
24{
25
32 {
33 public:
38
39
46 inline int GetBase() const{ return m_base; }
47
54 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
55
62 inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; }
63
70 inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;}
71
72
76 inline const Aws::String& GetCapacityProvider() const{ return m_capacityProvider; }
77
81 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
82
86 inline void SetCapacityProvider(const Aws::String& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = value; }
87
91 inline void SetCapacityProvider(Aws::String&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::move(value); }
92
96 inline void SetCapacityProvider(const char* value) { m_capacityProviderHasBeenSet = true; m_capacityProvider.assign(value); }
97
102
106 inline CapacityProviderStrategyItem& WithCapacityProvider(Aws::String&& value) { SetCapacityProvider(std::move(value)); return *this;}
107
111 inline CapacityProviderStrategyItem& WithCapacityProvider(const char* value) { SetCapacityProvider(value); return *this;}
112
113
119 inline int GetWeight() const{ return m_weight; }
120
126 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
127
133 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
134
140 inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;}
141
142 private:
143
144 int m_base;
145 bool m_baseHasBeenSet = false;
146
147 Aws::String m_capacityProvider;
148 bool m_capacityProviderHasBeenSet = false;
149
150 int m_weight;
151 bool m_weightHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Scheduler
156} // namespace Aws
#define AWS_SCHEDULER_API
AWS_SCHEDULER_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithCapacityProvider(const Aws::String &value)
AWS_SCHEDULER_API CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityProviderStrategyItem & WithCapacityProvider(Aws::String &&value)
CapacityProviderStrategyItem & WithCapacityProvider(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String