AWS SDK for C++  1.9.153
AWS SDK for C++
DeleteTaskSetRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteTaskSet"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetCluster() const{ return m_cluster; }
42 
47  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 
53  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
54 
59  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
60 
65  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
66 
71  inline DeleteTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72 
77  inline DeleteTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
78 
83  inline DeleteTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
84 
85 
90  inline const Aws::String& GetService() const{ return m_service; }
91 
96  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
97 
102  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
103 
108  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
109 
114  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
115 
120  inline DeleteTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
121 
126  inline DeleteTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
127 
132  inline DeleteTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
133 
134 
139  inline const Aws::String& GetTaskSet() const{ return m_taskSet; }
140 
145  inline bool TaskSetHasBeenSet() const { return m_taskSetHasBeenSet; }
146 
151  inline void SetTaskSet(const Aws::String& value) { m_taskSetHasBeenSet = true; m_taskSet = value; }
152 
157  inline void SetTaskSet(Aws::String&& value) { m_taskSetHasBeenSet = true; m_taskSet = std::move(value); }
158 
163  inline void SetTaskSet(const char* value) { m_taskSetHasBeenSet = true; m_taskSet.assign(value); }
164 
169  inline DeleteTaskSetRequest& WithTaskSet(const Aws::String& value) { SetTaskSet(value); return *this;}
170 
175  inline DeleteTaskSetRequest& WithTaskSet(Aws::String&& value) { SetTaskSet(std::move(value)); return *this;}
176 
181  inline DeleteTaskSetRequest& WithTaskSet(const char* value) { SetTaskSet(value); return *this;}
182 
183 
188  inline bool GetForce() const{ return m_force; }
189 
194  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
195 
200  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
201 
206  inline DeleteTaskSetRequest& WithForce(bool value) { SetForce(value); return *this;}
207 
208  private:
209 
210  Aws::String m_cluster;
211  bool m_clusterHasBeenSet;
212 
213  Aws::String m_service;
214  bool m_serviceHasBeenSet;
215 
216  Aws::String m_taskSet;
217  bool m_taskSetHasBeenSet;
218 
219  bool m_force;
220  bool m_forceHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace ECS
225 } // namespace Aws
Aws::ECS::Model::DeleteTaskSetRequest::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: DeleteTaskSetRequest.h:96
Aws::ECS::Model::DeleteTaskSetRequest::SetTaskSet
void SetTaskSet(const Aws::String &value)
Definition: DeleteTaskSetRequest.h:151
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::DeleteTaskSetRequest::GetTaskSet
const Aws::String & GetTaskSet() const
Definition: DeleteTaskSetRequest.h:139
Aws::ECS::Model::DeleteTaskSetRequest::SetTaskSet
void SetTaskSet(const char *value)
Definition: DeleteTaskSetRequest.h:163
Aws::ECS::Model::DeleteTaskSetRequest
Definition: DeleteTaskSetRequest.h:22
Aws::ECS::Model::DeleteTaskSetRequest::WithForce
DeleteTaskSetRequest & WithForce(bool value)
Definition: DeleteTaskSetRequest.h:206
Aws::ECS::Model::DeleteTaskSetRequest::TaskSetHasBeenSet
bool TaskSetHasBeenSet() const
Definition: DeleteTaskSetRequest.h:145
Aws::ECS::Model::DeleteTaskSetRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DeleteTaskSetRequest.h:47
Aws::ECS::Model::DeleteTaskSetRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: DeleteTaskSetRequest.h:194
Aws::ECS::Model::DeleteTaskSetRequest::WithService
DeleteTaskSetRequest & WithService(Aws::String &&value)
Definition: DeleteTaskSetRequest.h:126
Aws::ECS::Model::DeleteTaskSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DeleteTaskSetRequest::WithCluster
DeleteTaskSetRequest & WithCluster(Aws::String &&value)
Definition: DeleteTaskSetRequest.h:77
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DeleteTaskSetRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DeleteTaskSetRequest.h:53
Aws::ECS::Model::DeleteTaskSetRequest::SetTaskSet
void SetTaskSet(Aws::String &&value)
Definition: DeleteTaskSetRequest.h:157
Aws::ECS::Model::DeleteTaskSetRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DeleteTaskSetRequest.h:59
Aws::ECS::Model::DeleteTaskSetRequest::WithService
DeleteTaskSetRequest & WithService(const char *value)
Definition: DeleteTaskSetRequest.h:132
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DeleteTaskSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DeleteTaskSetRequest::GetService
const Aws::String & GetService() const
Definition: DeleteTaskSetRequest.h:90
Aws::ECS::Model::DeleteTaskSetRequest::WithService
DeleteTaskSetRequest & WithService(const Aws::String &value)
Definition: DeleteTaskSetRequest.h:120
Aws::ECS::Model::DeleteTaskSetRequest::SetService
void SetService(Aws::String &&value)
Definition: DeleteTaskSetRequest.h:108
AWSString.h
Aws::ECS::Model::DeleteTaskSetRequest::GetForce
bool GetForce() const
Definition: DeleteTaskSetRequest.h:188
Aws::ECS::Model::DeleteTaskSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTaskSetRequest.h:30
Aws::ECS::Model::DeleteTaskSetRequest::SetService
void SetService(const char *value)
Definition: DeleteTaskSetRequest.h:114
Aws::ECS::Model::DeleteTaskSetRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DeleteTaskSetRequest.h:41
Aws::ECS::Model::DeleteTaskSetRequest::WithCluster
DeleteTaskSetRequest & WithCluster(const Aws::String &value)
Definition: DeleteTaskSetRequest.h:71
Aws::ECS::Model::DeleteTaskSetRequest::WithTaskSet
DeleteTaskSetRequest & WithTaskSet(Aws::String &&value)
Definition: DeleteTaskSetRequest.h:175
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DeleteTaskSetRequest::WithCluster
DeleteTaskSetRequest & WithCluster(const char *value)
Definition: DeleteTaskSetRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DeleteTaskSetRequest::SetCluster
void SetCluster(const char *value)
Definition: DeleteTaskSetRequest.h:65
Aws::ECS::Model::DeleteTaskSetRequest::SetService
void SetService(const Aws::String &value)
Definition: DeleteTaskSetRequest.h:102
Aws::ECS::Model::DeleteTaskSetRequest::WithTaskSet
DeleteTaskSetRequest & WithTaskSet(const Aws::String &value)
Definition: DeleteTaskSetRequest.h:169
Aws::ECS::Model::DeleteTaskSetRequest::WithTaskSet
DeleteTaskSetRequest & WithTaskSet(const char *value)
Definition: DeleteTaskSetRequest.h:181
Aws::ECS::Model::DeleteTaskSetRequest::SetForce
void SetForce(bool value)
Definition: DeleteTaskSetRequest.h:200
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DeleteTaskSetRequest::DeleteTaskSetRequest
DeleteTaskSetRequest()