AWS SDK for C++  1.9.156
AWS SDK for C++
CreateClusterRequest.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 <aws/ecs/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ECS
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::String& GetClusterName() const{ return m_clusterName; }
48 
54  inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
55 
61  inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
62 
68  inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
69 
75  inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
76 
82  inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
83 
89  inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
90 
96  inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
97 
98 
117  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
118 
137  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 
157  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 
177  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
178 
197  inline CreateClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
198 
217  inline CreateClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
218 
237  inline CreateClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
238 
257  inline CreateClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
258 
259 
266  inline const Aws::Vector<ClusterSetting>& GetSettings() const{ return m_settings; }
267 
274  inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
275 
282  inline void SetSettings(const Aws::Vector<ClusterSetting>& value) { m_settingsHasBeenSet = true; m_settings = value; }
283 
290  inline void SetSettings(Aws::Vector<ClusterSetting>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
291 
298  inline CreateClusterRequest& WithSettings(const Aws::Vector<ClusterSetting>& value) { SetSettings(value); return *this;}
299 
306  inline CreateClusterRequest& WithSettings(Aws::Vector<ClusterSetting>&& value) { SetSettings(std::move(value)); return *this;}
307 
314  inline CreateClusterRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
315 
322  inline CreateClusterRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
323 
324 
328  inline const ClusterConfiguration& GetConfiguration() const{ return m_configuration; }
329 
333  inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
334 
338  inline void SetConfiguration(const ClusterConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
339 
343  inline void SetConfiguration(ClusterConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
344 
348  inline CreateClusterRequest& WithConfiguration(const ClusterConfiguration& value) { SetConfiguration(value); return *this;}
349 
353  inline CreateClusterRequest& WithConfiguration(ClusterConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
354 
355 
372  inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
373 
390  inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
391 
408  inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
409 
426  inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
427 
444  inline CreateClusterRequest& WithCapacityProviders(const Aws::Vector<Aws::String>& value) { SetCapacityProviders(value); return *this;}
445 
462  inline CreateClusterRequest& WithCapacityProviders(Aws::Vector<Aws::String>&& value) { SetCapacityProviders(std::move(value)); return *this;}
463 
480  inline CreateClusterRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
481 
498  inline CreateClusterRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
499 
516  inline CreateClusterRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
517 
518 
528  inline const Aws::Vector<CapacityProviderStrategyItem>& GetDefaultCapacityProviderStrategy() const{ return m_defaultCapacityProviderStrategy; }
529 
539  inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
540 
550  inline void SetDefaultCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = value; }
551 
561  inline void SetDefaultCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = std::move(value); }
562 
572  inline CreateClusterRequest& WithDefaultCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { SetDefaultCapacityProviderStrategy(value); return *this;}
573 
583  inline CreateClusterRequest& WithDefaultCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { SetDefaultCapacityProviderStrategy(std::move(value)); return *this;}
584 
594  inline CreateClusterRequest& AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(value); return *this; }
595 
605  inline CreateClusterRequest& AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(std::move(value)); return *this; }
606 
607  private:
608 
609  Aws::String m_clusterName;
610  bool m_clusterNameHasBeenSet;
611 
612  Aws::Vector<Tag> m_tags;
613  bool m_tagsHasBeenSet;
614 
615  Aws::Vector<ClusterSetting> m_settings;
616  bool m_settingsHasBeenSet;
617 
618  ClusterConfiguration m_configuration;
619  bool m_configurationHasBeenSet;
620 
621  Aws::Vector<Aws::String> m_capacityProviders;
622  bool m_capacityProvidersHasBeenSet;
623 
624  Aws::Vector<CapacityProviderStrategyItem> m_defaultCapacityProviderStrategy;
625  bool m_defaultCapacityProviderStrategyHasBeenSet;
626  };
627 
628 } // namespace Model
629 } // namespace ECS
630 } // namespace Aws
Aws::ECS::Model::CreateClusterRequest::AddDefaultCapacityProviderStrategy
CreateClusterRequest & AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
Definition: CreateClusterRequest.h:594
Aws::ECS::Model::CreateClusterRequest::WithClusterName
CreateClusterRequest & WithClusterName(const char *value)
Definition: CreateClusterRequest.h:96
Aws::ECS::Model::CreateClusterRequest::WithSettings
CreateClusterRequest & WithSettings(Aws::Vector< ClusterSetting > &&value)
Definition: CreateClusterRequest.h:306
Aws::ECS::Model::CreateClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateClusterRequest.h:35
Aws::ECS::Model::CreateClusterRequest::AddCapacityProviders
CreateClusterRequest & AddCapacityProviders(Aws::String &&value)
Definition: CreateClusterRequest.h:498
Aws::ECS::Model::CreateClusterRequest::WithDefaultCapacityProviderStrategy
CreateClusterRequest & WithDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: CreateClusterRequest.h:572
Aws::ECS::Model::CreateClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::CreateClusterRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterRequest.h:177
Aws::ECS::Model::CreateClusterRequest::SetDefaultCapacityProviderStrategy
void SetDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: CreateClusterRequest.h:561
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::CreateClusterRequest::GetCapacityProviders
const Aws::Vector< Aws::String > & GetCapacityProviders() const
Definition: CreateClusterRequest.h:372
Aws::ECS::Model::CreateClusterRequest::WithCapacityProviders
CreateClusterRequest & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
Definition: CreateClusterRequest.h:462
Aws::ECS::Model::CreateClusterRequest::SetConfiguration
void SetConfiguration(ClusterConfiguration &&value)
Definition: CreateClusterRequest.h:343
Tag.h
Aws::ECS::Model::CreateClusterRequest::AddSettings
CreateClusterRequest & AddSettings(ClusterSetting &&value)
Definition: CreateClusterRequest.h:322
Aws::ECS::Model::CreateClusterRequest::WithTags
CreateClusterRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterRequest.h:217
Aws::ECS::Model::CreateClusterRequest::GetConfiguration
const ClusterConfiguration & GetConfiguration() const
Definition: CreateClusterRequest.h:328
Aws::ECS::Model::CreateClusterRequest::WithConfiguration
CreateClusterRequest & WithConfiguration(const ClusterConfiguration &value)
Definition: CreateClusterRequest.h:348
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::CreateClusterRequest::AddDefaultCapacityProviderStrategy
CreateClusterRequest & AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Definition: CreateClusterRequest.h:605
Aws::ECS::Model::CreateClusterRequest::WithSettings
CreateClusterRequest & WithSettings(const Aws::Vector< ClusterSetting > &value)
Definition: CreateClusterRequest.h:298
Aws::ECS::Model::CreateClusterRequest::AddSettings
CreateClusterRequest & AddSettings(const ClusterSetting &value)
Definition: CreateClusterRequest.h:314
Aws::ECS::Model::ClusterConfiguration
Definition: ClusterConfiguration.h:33
Aws::ECS::Model::Tag
Definition: Tag.h:47
AWSVector.h
Aws::ECS::Model::CreateClusterRequest::SetCapacityProviders
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
Definition: CreateClusterRequest.h:426
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::CreateClusterRequest
Definition: CreateClusterRequest.h:27
Aws::ECS::Model::CapacityProviderStrategyItem
Definition: CapacityProviderStrategyItem.h:46
Aws::ECS::Model::CreateClusterRequest::AddTags
CreateClusterRequest & AddTags(const Tag &value)
Definition: CreateClusterRequest.h:237
Aws::ECS::Model::CreateClusterRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateClusterRequest.h:117
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::CreateClusterRequest::CapacityProvidersHasBeenSet
bool CapacityProvidersHasBeenSet() const
Definition: CreateClusterRequest.h:390
Aws::ECS::Model::CreateClusterRequest::WithCapacityProviders
CreateClusterRequest & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
Definition: CreateClusterRequest.h:444
Aws::ECS::Model::CreateClusterRequest::CreateClusterRequest
CreateClusterRequest()
Aws::ECS::Model::CreateClusterRequest::WithClusterName
CreateClusterRequest & WithClusterName(const Aws::String &value)
Definition: CreateClusterRequest.h:82
Aws::ECS::Model::CreateClusterRequest::SetSettings
void SetSettings(const Aws::Vector< ClusterSetting > &value)
Definition: CreateClusterRequest.h:282
Aws::ECS::Model::CreateClusterRequest::WithClusterName
CreateClusterRequest & WithClusterName(Aws::String &&value)
Definition: CreateClusterRequest.h:89
AWSString.h
Aws::ECS::Model::CreateClusterRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CapacityProviderStrategyItem.h
Aws::ECS::Model::CreateClusterRequest::AddCapacityProviders
CreateClusterRequest & AddCapacityProviders(const Aws::String &value)
Definition: CreateClusterRequest.h:480
Aws::ECS::Model::CreateClusterRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateClusterRequest.h:137
Aws::ECS::Model::ClusterSetting
Definition: ClusterSetting.h:34
Aws::ECS::Model::CreateClusterRequest::SetClusterName
void SetClusterName(const char *value)
Definition: CreateClusterRequest.h:75
Aws::ECS::Model::CreateClusterRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterRequest.h:157
Aws::ECS::Model::CreateClusterRequest::SetClusterName
void SetClusterName(Aws::String &&value)
Definition: CreateClusterRequest.h:68
Aws::ECS::Model::CreateClusterRequest::ClusterNameHasBeenSet
bool ClusterNameHasBeenSet() const
Definition: CreateClusterRequest.h:54
ClusterSetting.h
Aws::ECS::Model::CreateClusterRequest::AddTags
CreateClusterRequest & AddTags(Tag &&value)
Definition: CreateClusterRequest.h:257
Aws::ECS::Model::CreateClusterRequest::SetConfiguration
void SetConfiguration(const ClusterConfiguration &value)
Definition: CreateClusterRequest.h:338
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::CreateClusterRequest::WithConfiguration
CreateClusterRequest & WithConfiguration(ClusterConfiguration &&value)
Definition: CreateClusterRequest.h:353
Aws::ECS::Model::CreateClusterRequest::GetSettings
const Aws::Vector< ClusterSetting > & GetSettings() const
Definition: CreateClusterRequest.h:266
Aws::ECS::Model::CreateClusterRequest::SetCapacityProviders
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
Definition: CreateClusterRequest.h:408
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::CreateClusterRequest::SetSettings
void SetSettings(Aws::Vector< ClusterSetting > &&value)
Definition: CreateClusterRequest.h:290
Aws::ECS::Model::CreateClusterRequest::GetDefaultCapacityProviderStrategy
const Aws::Vector< CapacityProviderStrategyItem > & GetDefaultCapacityProviderStrategy() const
Definition: CreateClusterRequest.h:528
Aws::ECS::Model::CreateClusterRequest::WithTags
CreateClusterRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterRequest.h:197
Aws::ECS::Model::CreateClusterRequest::AddCapacityProviders
CreateClusterRequest & AddCapacityProviders(const char *value)
Definition: CreateClusterRequest.h:516
Aws::ECS::Model::CreateClusterRequest::WithDefaultCapacityProviderStrategy
CreateClusterRequest & WithDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: CreateClusterRequest.h:583
Aws::ECS::Model::CreateClusterRequest::GetClusterName
const Aws::String & GetClusterName() const
Definition: CreateClusterRequest.h:47
Aws::ECS::Model::CreateClusterRequest::SetDefaultCapacityProviderStrategy
void SetDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: CreateClusterRequest.h:550
Aws::ECS::Model::CreateClusterRequest::DefaultCapacityProviderStrategyHasBeenSet
bool DefaultCapacityProviderStrategyHasBeenSet() const
Definition: CreateClusterRequest.h:539
ECS_EXPORTS.h
Aws::ECS::Model::CreateClusterRequest::ConfigurationHasBeenSet
bool ConfigurationHasBeenSet() const
Definition: CreateClusterRequest.h:333
ClusterConfiguration.h
Aws::ECS::Model::CreateClusterRequest::SetClusterName
void SetClusterName(const Aws::String &value)
Definition: CreateClusterRequest.h:61
Aws::ECS::Model::CreateClusterRequest::SettingsHasBeenSet
bool SettingsHasBeenSet() const
Definition: CreateClusterRequest.h:274
ECSRequest.h