AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutClusterCapacityProvidersRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/CapacityProviderStrategyItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace 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_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetCluster() const{ return m_cluster; }
46 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
47 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
48 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
49 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
50 inline PutClusterCapacityProvidersRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
51 inline PutClusterCapacityProvidersRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
52 inline PutClusterCapacityProvidersRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
54
56
67 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
68 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
69 inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
70 inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
73 inline PutClusterCapacityProvidersRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
74 inline PutClusterCapacityProvidersRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
75 inline PutClusterCapacityProvidersRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
77
79
99 inline const Aws::Vector<CapacityProviderStrategyItem>& GetDefaultCapacityProviderStrategy() const{ return m_defaultCapacityProviderStrategy; }
100 inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
101 inline void SetDefaultCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = value; }
102 inline void SetDefaultCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = std::move(value); }
105 inline PutClusterCapacityProvidersRequest& AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(value); return *this; }
106 inline PutClusterCapacityProvidersRequest& AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_cluster;
111 bool m_clusterHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_capacityProviders;
114 bool m_capacityProvidersHasBeenSet = false;
115
116 Aws::Vector<CapacityProviderStrategyItem> m_defaultCapacityProviderStrategy;
117 bool m_defaultCapacityProviderStrategyHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ECS
122} // namespace Aws
PutClusterCapacityProvidersRequest & WithCluster(const Aws::String &value)
PutClusterCapacityProvidersRequest & WithDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
PutClusterCapacityProvidersRequest & AddCapacityProviders(Aws::String &&value)
void SetDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
AWS_ECS_API Aws::String SerializePayload() const override
PutClusterCapacityProvidersRequest & WithDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
PutClusterCapacityProvidersRequest & AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
PutClusterCapacityProvidersRequest & AddCapacityProviders(const Aws::String &value)
PutClusterCapacityProvidersRequest & AddCapacityProviders(const char *value)
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
PutClusterCapacityProvidersRequest & WithCluster(Aws::String &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutClusterCapacityProvidersRequest & WithCluster(const char *value)
void SetDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
PutClusterCapacityProvidersRequest & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
PutClusterCapacityProvidersRequest & AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
const Aws::Vector< CapacityProviderStrategyItem > & GetDefaultCapacityProviderStrategy() const
PutClusterCapacityProvidersRequest & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector