AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.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/ClusterConfiguration.h>
12#include <aws/ecs/model/ClusterServiceConnectDefaultsRequest.h>
13#include <aws/ecs/model/Tag.h>
14#include <aws/ecs/model/ClusterSetting.h>
15#include <aws/ecs/model/CapacityProviderStrategyItem.h>
16#include <utility>
17
18namespace Aws
19{
20namespace ECS
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_ECS_API CreateClusterRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
37
38 AWS_ECS_API Aws::String SerializePayload() const override;
39
41
42
44
49 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
50 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
51 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
52 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
53 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
54 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
55 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
56 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
58
60
78 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
81 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
82 inline CreateClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
83 inline CreateClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
84 inline CreateClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
85 inline CreateClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
87
89
97 inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
98 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
99 inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
100 inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
101 inline CreateClusterRequest& WithSettings(const Aws::Vector<ClusterSetting>& value) { SetSettings(value); return *this;}
102 inline CreateClusterRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
103 inline CreateClusterRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
104 inline CreateClusterRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
106
108
111 inline const ClusterConfiguration& GetConfiguration() const{ return m_configuration; }
112 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
113 inline void SetConfiguration(const ClusterConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
114 inline void SetConfiguration(ClusterConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
116 inline CreateClusterRequest& WithConfiguration(ClusterConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
118
120
140 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
141 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
142 inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
143 inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
146 inline CreateClusterRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
147 inline CreateClusterRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
148 inline CreateClusterRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
150
152
165 inline const Aws::Vector<CapacityProviderStrategyItem>& GetDefaultCapacityProviderStrategy() const{ return m_defaultCapacityProviderStrategy; }
166 inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
167 inline void SetDefaultCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = value; }
168 inline void SetDefaultCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = std::move(value); }
171 inline CreateClusterRequest& AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(value); return *this; }
172 inline CreateClusterRequest& AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(std::move(value)); return *this; }
174
176
193 inline const ClusterServiceConnectDefaultsRequest& GetServiceConnectDefaults() const{ return m_serviceConnectDefaults; }
194 inline bool ServiceConnectDefaultsHasBeenSet() const { return m_serviceConnectDefaultsHasBeenSet; }
195 inline void SetServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = value; }
196 inline void SetServiceConnectDefaults(ClusterServiceConnectDefaultsRequest&& value) { m_serviceConnectDefaultsHasBeenSet = true; m_serviceConnectDefaults = std::move(value); }
200 private:
201
202 Aws::String m_clusterName;
203 bool m_clusterNameHasBeenSet = false;
204
205 Aws::Vector<Tag> m_tags;
206 bool m_tagsHasBeenSet = false;
207
209 bool m_settingsHasBeenSet = false;
210
211 ClusterConfiguration m_configuration;
212 bool m_configurationHasBeenSet = false;
213
214 Aws::Vector<Aws::String> m_capacityProviders;
215 bool m_capacityProvidersHasBeenSet = false;
216
217 Aws::Vector<CapacityProviderStrategyItem> m_defaultCapacityProviderStrategy;
218 bool m_defaultCapacityProviderStrategyHasBeenSet = false;
219
220 ClusterServiceConnectDefaultsRequest m_serviceConnectDefaults;
221 bool m_serviceConnectDefaultsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace ECS
226} // namespace Aws
CreateClusterRequest & AddCapacityProviders(const Aws::String &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetServiceConnectDefaults(ClusterServiceConnectDefaultsRequest &&value)
CreateClusterRequest & WithSettings(const Aws::Vector< ClusterSetting > &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< ClusterSetting > & GetSettings() const
void SetDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
CreateClusterRequest & WithConfiguration(ClusterConfiguration &&value)
CreateClusterRequest & AddCapacityProviders(Aws::String &&value)
CreateClusterRequest & WithTags(Aws::Vector< Tag > &&value)
CreateClusterRequest & AddSettings(const ClusterSetting &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetClusterName(const Aws::String &value)
CreateClusterRequest & AddSettings(ClusterSetting &&value)
CreateClusterRequest & WithDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
CreateClusterRequest & AddTags(const Tag &value)
CreateClusterRequest & AddTags(Tag &&value)
CreateClusterRequest & WithClusterName(const char *value)
CreateClusterRequest & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterRequest & AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
const Aws::Vector< Aws::String > & GetCapacityProviders() const
CreateClusterRequest & WithClusterName(const Aws::String &value)
CreateClusterRequest & WithSettings(Aws::Vector< ClusterSetting > &&value)
const Aws::String & GetClusterName() const
void SetConfiguration(const ClusterConfiguration &value)
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
void SetSettings(Aws::Vector< ClusterSetting > &&value)
CreateClusterRequest & WithConfiguration(const ClusterConfiguration &value)
void SetConfiguration(ClusterConfiguration &&value)
void SetSettings(const Aws::Vector< ClusterSetting > &value)
void SetServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest &value)
CreateClusterRequest & AddCapacityProviders(const char *value)
CreateClusterRequest & WithServiceConnectDefaults(const ClusterServiceConnectDefaultsRequest &value)
CreateClusterRequest & WithDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithClusterName(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
const ClusterServiceConnectDefaultsRequest & GetServiceConnectDefaults() const
CreateClusterRequest & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
void SetDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
const ClusterConfiguration & GetConfiguration() const
const Aws::Vector< CapacityProviderStrategyItem > & GetDefaultCapacityProviderStrategy() const
CreateClusterRequest & WithServiceConnectDefaults(ClusterServiceConnectDefaultsRequest &&value)
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
AWS_ECS_API Aws::String SerializePayload() const override
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