AWS SDK for C++  1.9.158
AWS SDK for C++
CapacityProviderStrategyItem.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
46  {
47  public:
52 
53 
57  inline const Aws::String& GetCapacityProvider() const{ return m_capacityProvider; }
58 
62  inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
63 
67  inline void SetCapacityProvider(const Aws::String& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = value; }
68 
72  inline void SetCapacityProvider(Aws::String&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::move(value); }
73 
77  inline void SetCapacityProvider(const char* value) { m_capacityProviderHasBeenSet = true; m_capacityProvider.assign(value); }
78 
82  inline CapacityProviderStrategyItem& WithCapacityProvider(const Aws::String& value) { SetCapacityProvider(value); return *this;}
83 
87  inline CapacityProviderStrategyItem& WithCapacityProvider(Aws::String&& value) { SetCapacityProvider(std::move(value)); return *this;}
88 
92  inline CapacityProviderStrategyItem& WithCapacityProvider(const char* value) { SetCapacityProvider(value); return *this;}
93 
94 
115  inline int GetWeight() const{ return m_weight; }
116 
137  inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
138 
159  inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
160 
181  inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;}
182 
183 
190  inline int GetBase() const{ return m_base; }
191 
198  inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
199 
206  inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; }
207 
214  inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;}
215 
216  private:
217 
218  Aws::String m_capacityProvider;
219  bool m_capacityProviderHasBeenSet;
220 
221  int m_weight;
222  bool m_weightHasBeenSet;
223 
224  int m_base;
225  bool m_baseHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace ECS
230 } // namespace Aws
Aws::ECS::Model::CapacityProviderStrategyItem::SetCapacityProvider
void SetCapacityProvider(Aws::String &&value)
Definition: CapacityProviderStrategyItem.h:72
Aws::ECS::Model::CapacityProviderStrategyItem::SetBase
void SetBase(int value)
Definition: CapacityProviderStrategyItem.h:206
Aws::ECS::Model::CapacityProviderStrategyItem::SetCapacityProvider
void SetCapacityProvider(const char *value)
Definition: CapacityProviderStrategyItem.h:77
Aws::ECS::Model::CapacityProviderStrategyItem::SetWeight
void SetWeight(int value)
Definition: CapacityProviderStrategyItem.h:159
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::CapacityProviderStrategyItem::GetWeight
int GetWeight() const
Definition: CapacityProviderStrategyItem.h:115
Aws::ECS::Model::CapacityProviderStrategyItem::WithCapacityProvider
CapacityProviderStrategyItem & WithCapacityProvider(const Aws::String &value)
Definition: CapacityProviderStrategyItem.h:82
Aws::ECS::Model::CapacityProviderStrategyItem::CapacityProviderHasBeenSet
bool CapacityProviderHasBeenSet() const
Definition: CapacityProviderStrategyItem.h:62
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::CapacityProviderStrategyItem
Definition: CapacityProviderStrategyItem.h:46
Aws::ECS::Model::CapacityProviderStrategyItem::SetCapacityProvider
void SetCapacityProvider(const Aws::String &value)
Definition: CapacityProviderStrategyItem.h:67
Aws::ECS::Model::CapacityProviderStrategyItem::WithWeight
CapacityProviderStrategyItem & WithWeight(int value)
Definition: CapacityProviderStrategyItem.h:181
Aws::ECS::Model::CapacityProviderStrategyItem::GetBase
int GetBase() const
Definition: CapacityProviderStrategyItem.h:190
Aws::ECS::Model::CapacityProviderStrategyItem::WithCapacityProvider
CapacityProviderStrategyItem & WithCapacityProvider(const char *value)
Definition: CapacityProviderStrategyItem.h:92
Aws::ECS::Model::CapacityProviderStrategyItem::WithCapacityProvider
CapacityProviderStrategyItem & WithCapacityProvider(Aws::String &&value)
Definition: CapacityProviderStrategyItem.h:87
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::CapacityProviderStrategyItem::WithBase
CapacityProviderStrategyItem & WithBase(int value)
Definition: CapacityProviderStrategyItem.h:214
Aws::ECS::Model::CapacityProviderStrategyItem::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::CapacityProviderStrategyItem::CapacityProviderStrategyItem
CapacityProviderStrategyItem()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::CapacityProviderStrategyItem::BaseHasBeenSet
bool BaseHasBeenSet() const
Definition: CapacityProviderStrategyItem.h:198
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::CapacityProviderStrategyItem::WeightHasBeenSet
bool WeightHasBeenSet() const
Definition: CapacityProviderStrategyItem.h:137
Aws::ECS::Model::CapacityProviderStrategyItem::CapacityProviderStrategyItem
CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::CapacityProviderStrategyItem::operator=
CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::CapacityProviderStrategyItem::GetCapacityProvider
const Aws::String & GetCapacityProvider() const
Definition: CapacityProviderStrategyItem.h:57
ECS_EXPORTS.h