AWS SDK for C++  1.9.20
AWS SDK for C++
PutClusterCapacityProvidersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutClusterCapacityProviders"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetCluster() const{ return m_cluster; }
45 
51  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
52 
58  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
59 
65  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
66 
72  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
73 
79  inline PutClusterCapacityProvidersRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
80 
86  inline PutClusterCapacityProvidersRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
87 
93  inline PutClusterCapacityProvidersRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
94 
95 
106  inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
107 
118  inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
119 
130  inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
131 
142  inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
143 
154  inline PutClusterCapacityProvidersRequest& WithCapacityProviders(const Aws::Vector<Aws::String>& value) { SetCapacityProviders(value); return *this;}
155 
166  inline PutClusterCapacityProvidersRequest& WithCapacityProviders(Aws::Vector<Aws::String>&& value) { SetCapacityProviders(std::move(value)); return *this;}
167 
178  inline PutClusterCapacityProvidersRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
179 
190  inline PutClusterCapacityProvidersRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
191 
202  inline PutClusterCapacityProvidersRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
203 
204 
223  inline const Aws::Vector<CapacityProviderStrategyItem>& GetDefaultCapacityProviderStrategy() const{ return m_defaultCapacityProviderStrategy; }
224 
243  inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
244 
263  inline void SetDefaultCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = value; }
264 
283  inline void SetDefaultCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = std::move(value); }
284 
303  inline PutClusterCapacityProvidersRequest& WithDefaultCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { SetDefaultCapacityProviderStrategy(value); return *this;}
304 
323  inline PutClusterCapacityProvidersRequest& WithDefaultCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { SetDefaultCapacityProviderStrategy(std::move(value)); return *this;}
324 
343  inline PutClusterCapacityProvidersRequest& AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(value); return *this; }
344 
363  inline PutClusterCapacityProvidersRequest& AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(std::move(value)); return *this; }
364 
365  private:
366 
367  Aws::String m_cluster;
368  bool m_clusterHasBeenSet;
369 
370  Aws::Vector<Aws::String> m_capacityProviders;
371  bool m_capacityProvidersHasBeenSet;
372 
373  Aws::Vector<CapacityProviderStrategyItem> m_defaultCapacityProviderStrategy;
374  bool m_defaultCapacityProviderStrategyHasBeenSet;
375  };
376 
377 } // namespace Model
378 } // namespace ECS
379 } // namespace Aws
Aws::ECS::Model::PutClusterCapacityProvidersRequest::DefaultCapacityProviderStrategyHasBeenSet
bool DefaultCapacityProviderStrategyHasBeenSet() const
Definition: PutClusterCapacityProvidersRequest.h:243
Aws::ECS::Model::PutClusterCapacityProvidersRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: PutClusterCapacityProvidersRequest.h:51
Aws::ECS::Model::PutClusterCapacityProvidersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetCluster
void SetCluster(const char *value)
Definition: PutClusterCapacityProvidersRequest.h:72
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: PutClusterCapacityProvidersRequest.h:58
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetDefaultCapacityProviderStrategy
void SetDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: PutClusterCapacityProvidersRequest.h:283
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithCapacityProviders
PutClusterCapacityProvidersRequest & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
Definition: PutClusterCapacityProvidersRequest.h:154
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithCluster
PutClusterCapacityProvidersRequest & WithCluster(const Aws::String &value)
Definition: PutClusterCapacityProvidersRequest.h:79
Aws::ECS::Model::CapacityProviderStrategyItem
Definition: CapacityProviderStrategyItem.h:45
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithCluster
PutClusterCapacityProvidersRequest & WithCluster(const char *value)
Definition: PutClusterCapacityProvidersRequest.h:93
Aws::ECS::Model::PutClusterCapacityProvidersRequest::AddCapacityProviders
PutClusterCapacityProvidersRequest & AddCapacityProviders(Aws::String &&value)
Definition: PutClusterCapacityProvidersRequest.h:190
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::PutClusterCapacityProvidersRequest::GetCapacityProviders
const Aws::Vector< Aws::String > & GetCapacityProviders() const
Definition: PutClusterCapacityProvidersRequest.h:106
Aws::ECS::Model::PutClusterCapacityProvidersRequest::GetDefaultCapacityProviderStrategy
const Aws::Vector< CapacityProviderStrategyItem > & GetDefaultCapacityProviderStrategy() const
Definition: PutClusterCapacityProvidersRequest.h:223
Aws::ECS::Model::PutClusterCapacityProvidersRequest::PutClusterCapacityProvidersRequest
PutClusterCapacityProvidersRequest()
Aws::ECS::Model::PutClusterCapacityProvidersRequest::AddCapacityProviders
PutClusterCapacityProvidersRequest & AddCapacityProviders(const char *value)
Definition: PutClusterCapacityProvidersRequest.h:202
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetCapacityProviders
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
Definition: PutClusterCapacityProvidersRequest.h:142
AWSString.h
CapacityProviderStrategyItem.h
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithDefaultCapacityProviderStrategy
PutClusterCapacityProvidersRequest & WithDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: PutClusterCapacityProvidersRequest.h:323
Aws::ECS::Model::PutClusterCapacityProvidersRequest::AddDefaultCapacityProviderStrategy
PutClusterCapacityProvidersRequest & AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Definition: PutClusterCapacityProvidersRequest.h:363
Aws::ECS::Model::PutClusterCapacityProvidersRequest::CapacityProvidersHasBeenSet
bool CapacityProvidersHasBeenSet() const
Definition: PutClusterCapacityProvidersRequest.h:118
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithDefaultCapacityProviderStrategy
PutClusterCapacityProvidersRequest & WithDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: PutClusterCapacityProvidersRequest.h:303
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithCluster
PutClusterCapacityProvidersRequest & WithCluster(Aws::String &&value)
Definition: PutClusterCapacityProvidersRequest.h:86
Aws::ECS::Model::PutClusterCapacityProvidersRequest::GetCluster
const Aws::String & GetCluster() const
Definition: PutClusterCapacityProvidersRequest.h:44
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetDefaultCapacityProviderStrategy
void SetDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: PutClusterCapacityProvidersRequest.h:263
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PutClusterCapacityProvidersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutClusterCapacityProvidersRequest.h:32
Aws::ECS::Model::PutClusterCapacityProvidersRequest::AddDefaultCapacityProviderStrategy
PutClusterCapacityProvidersRequest & AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
Definition: PutClusterCapacityProvidersRequest.h:343
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::PutClusterCapacityProvidersRequest::AddCapacityProviders
PutClusterCapacityProvidersRequest & AddCapacityProviders(const Aws::String &value)
Definition: PutClusterCapacityProvidersRequest.h:178
Aws::ECS::Model::PutClusterCapacityProvidersRequest::WithCapacityProviders
PutClusterCapacityProvidersRequest & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
Definition: PutClusterCapacityProvidersRequest.h:166
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetCapacityProviders
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
Definition: PutClusterCapacityProvidersRequest.h:130
Aws::ECS::Model::PutClusterCapacityProvidersRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: PutClusterCapacityProvidersRequest.h:65
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::PutClusterCapacityProvidersRequest
Definition: PutClusterCapacityProvidersRequest.h:24