AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
55 public:
56 AWS_ECS_API CapacityProviderStrategyItem() = default;
60
62
65 inline const Aws::String& GetCapacityProvider() const { return m_capacityProvider; }
66 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
67 template <typename CapacityProviderT = Aws::String>
68 void SetCapacityProvider(CapacityProviderT&& value) {
69 m_capacityProviderHasBeenSet = true;
70 m_capacityProvider = std::forward<CapacityProviderT>(value);
71 }
72 template <typename CapacityProviderT = Aws::String>
74 SetCapacityProvider(std::forward<CapacityProviderT>(value));
75 return *this;
76 }
78
80
107 inline int GetWeight() const { return m_weight; }
108 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
109 inline void SetWeight(int value) {
110 m_weightHasBeenSet = true;
111 m_weight = value;
112 }
114 SetWeight(value);
115 return *this;
116 }
118
120
131 inline int GetBase() const { return m_base; }
132 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
133 inline void SetBase(int value) {
134 m_baseHasBeenSet = true;
135 m_base = value;
136 }
138 SetBase(value);
139 return *this;
140 }
142 private:
143 Aws::String m_capacityProvider;
144
145 int m_weight{0};
146
147 int m_base{0};
148 bool m_capacityProviderHasBeenSet = false;
149 bool m_weightHasBeenSet = false;
150 bool m_baseHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace ECS
155} // namespace Aws
CapacityProviderStrategyItem & WithCapacityProvider(CapacityProviderT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API CapacityProviderStrategyItem()=default
AWS_ECS_API CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithWeight(int value)
AWS_ECS_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithBase(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue