AWS SDK for C++

AWS SDK for C++ Version 1.11.639

Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 ECS
22{
23namespace Model
24{
25
59 {
60 public:
61 AWS_ECS_API CapacityProviderStrategyItem() = default;
65
66
68
71 inline const Aws::String& GetCapacityProvider() const { return m_capacityProvider; }
72 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
73 template<typename CapacityProviderT = Aws::String>
74 void SetCapacityProvider(CapacityProviderT&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::forward<CapacityProviderT>(value); }
75 template<typename CapacityProviderT = Aws::String>
76 CapacityProviderStrategyItem& WithCapacityProvider(CapacityProviderT&& value) { SetCapacityProvider(std::forward<CapacityProviderT>(value)); return *this;}
78
80
107 inline int GetWeight() const { return m_weight; }
108 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
109 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
110 inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;}
112
114
124 inline int GetBase() const { return m_base; }
125 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
126 inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; }
127 inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;}
129 private:
130
131 Aws::String m_capacityProvider;
132 bool m_capacityProviderHasBeenSet = false;
133
134 int m_weight{0};
135 bool m_weightHasBeenSet = false;
136
137 int m_base{0};
138 bool m_baseHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ECS
143} // 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