AWS SDK for C++  1.8.71
AWS SDK for C++
CreateTaskSetRequest.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>
13 #include <aws/ecs/model/Scale.h>
17 #include <aws/ecs/model/Tag.h>
18 #include <utility>
19 
20 namespace Aws
21 {
22 namespace ECS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
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::String SerializePayload() const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
49  inline const Aws::String& GetService() const{ return m_service; }
50 
55  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
56 
61  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
62 
67  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
68 
73  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
74 
79  inline CreateTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
80 
85  inline CreateTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
86 
91  inline CreateTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
92 
93 
98  inline const Aws::String& GetCluster() const{ return m_cluster; }
99 
104  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
105 
110  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
111 
116  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
117 
122  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
123 
128  inline CreateTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
129 
134  inline CreateTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
135 
140  inline CreateTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
141 
142 
149  inline const Aws::String& GetExternalId() const{ return m_externalId; }
150 
157  inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
158 
165  inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
166 
173  inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
174 
181  inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
182 
189  inline CreateTaskSetRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
190 
197  inline CreateTaskSetRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
198 
205  inline CreateTaskSetRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
206 
207 
211  inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
212 
216  inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
217 
221  inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
222 
226  inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::move(value); }
227 
231  inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
232 
236  inline CreateTaskSetRequest& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
237 
241  inline CreateTaskSetRequest& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(std::move(value)); return *this;}
242 
246  inline CreateTaskSetRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
247 
248 
249 
250  inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
251 
252 
253  inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
254 
255 
256  inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
257 
258 
259  inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
260 
261 
262  inline CreateTaskSetRequest& WithNetworkConfiguration(const NetworkConfiguration& value) { SetNetworkConfiguration(value); return *this;}
263 
264 
265  inline CreateTaskSetRequest& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
266 
267 
273  inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const{ return m_loadBalancers; }
274 
280  inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
281 
287  inline void SetLoadBalancers(const Aws::Vector<LoadBalancer>& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = value; }
288 
294  inline void SetLoadBalancers(Aws::Vector<LoadBalancer>&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::move(value); }
295 
301  inline CreateTaskSetRequest& WithLoadBalancers(const Aws::Vector<LoadBalancer>& value) { SetLoadBalancers(value); return *this;}
302 
308  inline CreateTaskSetRequest& WithLoadBalancers(Aws::Vector<LoadBalancer>&& value) { SetLoadBalancers(std::move(value)); return *this;}
309 
315  inline CreateTaskSetRequest& AddLoadBalancers(const LoadBalancer& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(value); return *this; }
316 
322  inline CreateTaskSetRequest& AddLoadBalancers(LoadBalancer&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(std::move(value)); return *this; }
323 
324 
331  inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const{ return m_serviceRegistries; }
332 
339  inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
340 
347  inline void SetServiceRegistries(const Aws::Vector<ServiceRegistry>& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = value; }
348 
355  inline void SetServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = std::move(value); }
356 
363  inline CreateTaskSetRequest& WithServiceRegistries(const Aws::Vector<ServiceRegistry>& value) { SetServiceRegistries(value); return *this;}
364 
371  inline CreateTaskSetRequest& WithServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { SetServiceRegistries(std::move(value)); return *this;}
372 
379  inline CreateTaskSetRequest& AddServiceRegistries(const ServiceRegistry& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(value); return *this; }
380 
387  inline CreateTaskSetRequest& AddServiceRegistries(ServiceRegistry&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(std::move(value)); return *this; }
388 
389 
398  inline const LaunchType& GetLaunchType() const{ return m_launchType; }
399 
408  inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
409 
418  inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
419 
428  inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
429 
438  inline CreateTaskSetRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
439 
448  inline CreateTaskSetRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
449 
450 
473  inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
474 
497  inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
498 
521  inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
522 
545  inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
546 
569  inline CreateTaskSetRequest& WithCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { SetCapacityProviderStrategy(value); return *this;}
570 
593  inline CreateTaskSetRequest& WithCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { SetCapacityProviderStrategy(std::move(value)); return *this;}
594 
617  inline CreateTaskSetRequest& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
618 
641  inline CreateTaskSetRequest& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
642 
643 
649  inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
650 
656  inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
657 
663  inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
664 
670  inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
671 
677  inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
678 
684  inline CreateTaskSetRequest& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
685 
691  inline CreateTaskSetRequest& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
692 
698  inline CreateTaskSetRequest& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
699 
700 
701 
702  inline const Scale& GetScale() const{ return m_scale; }
703 
704 
705  inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
706 
707 
708  inline void SetScale(const Scale& value) { m_scaleHasBeenSet = true; m_scale = value; }
709 
710 
711  inline void SetScale(Scale&& value) { m_scaleHasBeenSet = true; m_scale = std::move(value); }
712 
713 
714  inline CreateTaskSetRequest& WithScale(const Scale& value) { SetScale(value); return *this;}
715 
716 
717  inline CreateTaskSetRequest& WithScale(Scale&& value) { SetScale(std::move(value)); return *this;}
718 
719 
724  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
725 
730  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
731 
736  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
737 
742  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
743 
748  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
749 
754  inline CreateTaskSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
755 
760  inline CreateTaskSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
761 
766  inline CreateTaskSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
767 
768 
788  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
789 
809  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
810 
830  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
831 
851  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
852 
872  inline CreateTaskSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
873 
893  inline CreateTaskSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
894 
914  inline CreateTaskSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
915 
935  inline CreateTaskSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
936 
937  private:
938 
939  Aws::String m_service;
940  bool m_serviceHasBeenSet;
941 
942  Aws::String m_cluster;
943  bool m_clusterHasBeenSet;
944 
945  Aws::String m_externalId;
946  bool m_externalIdHasBeenSet;
947 
948  Aws::String m_taskDefinition;
949  bool m_taskDefinitionHasBeenSet;
950 
951  NetworkConfiguration m_networkConfiguration;
952  bool m_networkConfigurationHasBeenSet;
953 
954  Aws::Vector<LoadBalancer> m_loadBalancers;
955  bool m_loadBalancersHasBeenSet;
956 
957  Aws::Vector<ServiceRegistry> m_serviceRegistries;
958  bool m_serviceRegistriesHasBeenSet;
959 
960  LaunchType m_launchType;
961  bool m_launchTypeHasBeenSet;
962 
963  Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
964  bool m_capacityProviderStrategyHasBeenSet;
965 
966  Aws::String m_platformVersion;
967  bool m_platformVersionHasBeenSet;
968 
969  Scale m_scale;
970  bool m_scaleHasBeenSet;
971 
972  Aws::String m_clientToken;
973  bool m_clientTokenHasBeenSet;
974 
975  Aws::Vector<Tag> m_tags;
976  bool m_tagsHasBeenSet;
977  };
978 
979 } // namespace Model
980 } // namespace ECS
981 } // namespace Aws
CreateTaskSetRequest & WithPlatformVersion(const Aws::String &value)
CreateTaskSetRequest & WithLaunchType(const LaunchType &value)
const Aws::String & GetPlatformVersion() const
CreateTaskSetRequest & WithCluster(const Aws::String &value)
CreateTaskSetRequest & WithService(const Aws::String &value)
CreateTaskSetRequest & WithPlatformVersion(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetPlatformVersion(Aws::String &&value)
CreateTaskSetRequest & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
CreateTaskSetRequest & AddServiceRegistries(ServiceRegistry &&value)
CreateTaskSetRequest & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
void SetTaskDefinition(Aws::String &&value)
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
void SetServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
CreateTaskSetRequest & WithExternalId(const Aws::String &value)
CreateTaskSetRequest & WithTags(Aws::Vector< Tag > &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateTaskSetRequest & WithScale(const Scale &value)
const Aws::String & GetCluster() const
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
CreateTaskSetRequest & WithTaskDefinition(const char *value)
void SetLoadBalancers(Aws::Vector< LoadBalancer > &&value)
const LaunchType & GetLaunchType() const
CreateTaskSetRequest & WithTaskDefinition(Aws::String &&value)
CreateTaskSetRequest & WithCluster(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
void SetExternalId(const Aws::String &value)
CreateTaskSetRequest & WithNetworkConfiguration(NetworkConfiguration &&value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
CreateTaskSetRequest & WithClientToken(const char *value)
CreateTaskSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTaskSetRequest & AddServiceRegistries(const ServiceRegistry &value)
const Aws::String & GetExternalId() const
CreateTaskSetRequest & WithServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
CreateTaskSetRequest & WithLaunchType(LaunchType &&value)
CreateTaskSetRequest & WithPlatformVersion(const char *value)
CreateTaskSetRequest & WithServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
virtual const char * GetServiceRequestName() const override
CreateTaskSetRequest & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
void SetPlatformVersion(const Aws::String &value)
CreateTaskSetRequest & WithScale(Scale &&value)
CreateTaskSetRequest & WithLoadBalancers(Aws::Vector< LoadBalancer > &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
const Aws::String & GetClientToken() const
void SetLaunchType(const LaunchType &value)
CreateTaskSetRequest & WithTaskDefinition(const Aws::String &value)
CreateTaskSetRequest & AddLoadBalancers(const LoadBalancer &value)
CreateTaskSetRequest & AddTags(const Tag &value)
CreateTaskSetRequest & WithNetworkConfiguration(const NetworkConfiguration &value)
void SetService(const Aws::String &value)
CreateTaskSetRequest & WithService(Aws::String &&value)
CreateTaskSetRequest & WithClientToken(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateTaskSetRequest & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetService() const
CreateTaskSetRequest & WithService(const char *value)
CreateTaskSetRequest & WithClientToken(Aws::String &&value)
CreateTaskSetRequest & WithExternalId(Aws::String &&value)
void SetLoadBalancers(const Aws::Vector< LoadBalancer > &value)
CreateTaskSetRequest & AddTags(Tag &&value)
const Aws::String & GetTaskDefinition() const
CreateTaskSetRequest & AddLoadBalancers(LoadBalancer &&value)
void SetNetworkConfiguration(NetworkConfiguration &&value)
void SetClientToken(const Aws::String &value)
CreateTaskSetRequest & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
CreateTaskSetRequest & WithExternalId(const char *value)
void SetTaskDefinition(const Aws::String &value)
CreateTaskSetRequest & WithCluster(Aws::String &&value)
void SetCluster(const Aws::String &value)