AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTaskSetRequest.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/ecs/model/NetworkConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ecs/model/LaunchType.h>
13#include <aws/ecs/model/Scale.h>
14#include <aws/ecs/model/LoadBalancer.h>
15#include <aws/ecs/model/ServiceRegistry.h>
16#include <aws/ecs/model/CapacityProviderStrategyItem.h>
17#include <aws/ecs/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace ECS
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_ECS_API CreateTaskSetRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateTaskSet"; }
39
40 AWS_ECS_API Aws::String SerializePayload() const override;
41
43
44
46
50 inline const Aws::String& GetService() const{ return m_service; }
51 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
52 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
53 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
54 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
55 inline CreateTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
56 inline CreateTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
57 inline CreateTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
59
61
65 inline const Aws::String& GetCluster() const{ return m_cluster; }
66 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
67 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
68 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
69 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
70 inline CreateTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
71 inline CreateTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
72 inline CreateTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
74
76
82 inline const Aws::String& GetExternalId() const{ return m_externalId; }
83 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
84 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
85 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
86 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
87 inline CreateTaskSetRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
88 inline CreateTaskSetRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
89 inline CreateTaskSetRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
91
93
97 inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
98 inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
99 inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
100 inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::move(value); }
101 inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
102 inline CreateTaskSetRequest& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
103 inline CreateTaskSetRequest& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(std::move(value)); return *this;}
104 inline CreateTaskSetRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
106
108
111 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
112 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
113 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
114 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
118
120
125 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const{ return m_loadBalancers; }
126 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
127 inline void SetLoadBalancers(const Aws::Vector<LoadBalancer>& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = value; }
128 inline void SetLoadBalancers(Aws::Vector<LoadBalancer>&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::move(value); }
130 inline CreateTaskSetRequest& WithLoadBalancers(Aws::Vector<LoadBalancer>&& value) { SetLoadBalancers(std::move(value)); return *this;}
131 inline CreateTaskSetRequest& AddLoadBalancers(const LoadBalancer& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(value); return *this; }
132 inline CreateTaskSetRequest& AddLoadBalancers(LoadBalancer&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(std::move(value)); return *this; }
134
136
142 inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const{ return m_serviceRegistries; }
143 inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
144 inline void SetServiceRegistries(const Aws::Vector<ServiceRegistry>& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = value; }
145 inline void SetServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = std::move(value); }
148 inline CreateTaskSetRequest& AddServiceRegistries(const ServiceRegistry& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(value); return *this; }
149 inline CreateTaskSetRequest& AddServiceRegistries(ServiceRegistry&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(std::move(value)); return *this; }
151
153
161 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
162 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
163 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
164 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
165 inline CreateTaskSetRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
166 inline CreateTaskSetRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
168
170
195 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
196 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
197 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
198 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
201 inline CreateTaskSetRequest& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
202 inline CreateTaskSetRequest& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
204
206
211 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
212 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
213 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
214 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
215 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
216 inline CreateTaskSetRequest& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
217 inline CreateTaskSetRequest& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
218 inline CreateTaskSetRequest& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
220
222
226 inline const Scale& GetScale() const{ return m_scale; }
227 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
228 inline void SetScale(const Scale& value) { m_scaleHasBeenSet = true; m_scale = value; }
229 inline void SetScale(Scale&& value) { m_scaleHasBeenSet = true; m_scale = std::move(value); }
230 inline CreateTaskSetRequest& WithScale(const Scale& value) { SetScale(value); return *this;}
231 inline CreateTaskSetRequest& WithScale(Scale&& value) { SetScale(std::move(value)); return *this;}
233
235
240 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
241 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
242 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
243 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
244 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
245 inline CreateTaskSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
246 inline CreateTaskSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
247 inline CreateTaskSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
249
251
270 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
271 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
273 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
274 inline CreateTaskSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
275 inline CreateTaskSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
276 inline CreateTaskSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
277 inline CreateTaskSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
279 private:
280
281 Aws::String m_service;
282 bool m_serviceHasBeenSet = false;
283
284 Aws::String m_cluster;
285 bool m_clusterHasBeenSet = false;
286
287 Aws::String m_externalId;
288 bool m_externalIdHasBeenSet = false;
289
290 Aws::String m_taskDefinition;
291 bool m_taskDefinitionHasBeenSet = false;
292
293 NetworkConfiguration m_networkConfiguration;
294 bool m_networkConfigurationHasBeenSet = false;
295
296 Aws::Vector<LoadBalancer> m_loadBalancers;
297 bool m_loadBalancersHasBeenSet = false;
298
299 Aws::Vector<ServiceRegistry> m_serviceRegistries;
300 bool m_serviceRegistriesHasBeenSet = false;
301
302 LaunchType m_launchType;
303 bool m_launchTypeHasBeenSet = false;
304
305 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
306 bool m_capacityProviderStrategyHasBeenSet = false;
307
308 Aws::String m_platformVersion;
309 bool m_platformVersionHasBeenSet = false;
310
311 Scale m_scale;
312 bool m_scaleHasBeenSet = false;
313
314 Aws::String m_clientToken;
315 bool m_clientTokenHasBeenSet = false;
316
317 Aws::Vector<Tag> m_tags;
318 bool m_tagsHasBeenSet = false;
319 };
320
321} // namespace Model
322} // namespace ECS
323} // namespace Aws
CreateTaskSetRequest & WithService(const char *value)
CreateTaskSetRequest & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
void SetLaunchType(const LaunchType &value)
void SetLoadBalancers(const Aws::Vector< LoadBalancer > &value)
CreateTaskSetRequest & WithCluster(const Aws::String &value)
CreateTaskSetRequest & WithCluster(Aws::String &&value)
CreateTaskSetRequest & AddServiceRegistries(const ServiceRegistry &value)
CreateTaskSetRequest & WithServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
CreateTaskSetRequest & WithLaunchType(const LaunchType &value)
CreateTaskSetRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateTaskSetRequest & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
CreateTaskSetRequest & WithPlatformVersion(const char *value)
CreateTaskSetRequest & WithTaskDefinition(const char *value)
CreateTaskSetRequest & AddLoadBalancers(const LoadBalancer &value)
void SetLoadBalancers(Aws::Vector< LoadBalancer > &&value)
CreateTaskSetRequest & WithService(const Aws::String &value)
const Aws::String & GetExternalId() const
void SetExternalId(const Aws::String &value)
const NetworkConfiguration & GetNetworkConfiguration() const
CreateTaskSetRequest & WithExternalId(const Aws::String &value)
CreateTaskSetRequest & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
CreateTaskSetRequest & WithServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
void SetClientToken(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::String & GetTaskDefinition() const
const Aws::String & GetPlatformVersion() const
CreateTaskSetRequest & AddLoadBalancers(LoadBalancer &&value)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
CreateTaskSetRequest & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
CreateTaskSetRequest & WithLoadBalancers(Aws::Vector< LoadBalancer > &&value)
CreateTaskSetRequest & WithClientToken(const Aws::String &value)
CreateTaskSetRequest & WithClientToken(const char *value)
void SetTaskDefinition(const Aws::String &value)
CreateTaskSetRequest & WithPlatformVersion(const Aws::String &value)
CreateTaskSetRequest & WithScale(Scale &&value)
const Aws::Vector< Tag > & GetTags() const
void SetPlatformVersion(const Aws::String &value)
void SetServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
CreateTaskSetRequest & WithTaskDefinition(const Aws::String &value)
CreateTaskSetRequest & WithTaskDefinition(Aws::String &&value)
CreateTaskSetRequest & AddTags(Tag &&value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
CreateTaskSetRequest & WithExternalId(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateTaskSetRequest & WithScale(const Scale &value)
CreateTaskSetRequest & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
CreateTaskSetRequest & WithLaunchType(LaunchType &&value)
CreateTaskSetRequest & WithNetworkConfiguration(const NetworkConfiguration &value)
void SetNetworkConfiguration(NetworkConfiguration &&value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
CreateTaskSetRequest & WithCluster(const char *value)
CreateTaskSetRequest & WithPlatformVersion(Aws::String &&value)
void SetServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
void SetCluster(const Aws::String &value)
CreateTaskSetRequest & AddServiceRegistries(ServiceRegistry &&value)
void SetService(const Aws::String &value)
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
CreateTaskSetRequest & WithNetworkConfiguration(NetworkConfiguration &&value)
const Aws::String & GetClientToken() const
CreateTaskSetRequest & WithService(Aws::String &&value)
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
CreateTaskSetRequest & AddTags(const Tag &value)
CreateTaskSetRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTaskSetRequest & WithExternalId(Aws::String &&value)
CreateTaskSetRequest & WithClientToken(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