AWS SDK for C++  1.9.153
AWS SDK for C++
StopTaskRequest.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 "StopTask"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
49  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
50 
56  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
57 
63  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
64 
70  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
71 
77  inline StopTaskRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
78 
84  inline StopTaskRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
85 
91  inline StopTaskRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
92 
93 
97  inline const Aws::String& GetTask() const{ return m_task; }
98 
102  inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
103 
107  inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
108 
112  inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
113 
117  inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
118 
122  inline StopTaskRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
123 
127  inline StopTaskRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
128 
132  inline StopTaskRequest& WithTask(const char* value) { SetTask(value); return *this;}
133 
134 
142  inline const Aws::String& GetReason() const{ return m_reason; }
143 
151  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
152 
160  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
161 
169  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
170 
178  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
179 
187  inline StopTaskRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
188 
196  inline StopTaskRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
197 
205  inline StopTaskRequest& WithReason(const char* value) { SetReason(value); return *this;}
206 
207  private:
208 
209  Aws::String m_cluster;
210  bool m_clusterHasBeenSet;
211 
212  Aws::String m_task;
213  bool m_taskHasBeenSet;
214 
215  Aws::String m_reason;
216  bool m_reasonHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace ECS
221 } // namespace Aws
Aws::ECS::Model::StopTaskRequest::SetTask
void SetTask(const char *value)
Definition: StopTaskRequest.h:117
Aws::ECS::Model::StopTaskRequest::SetReason
void SetReason(Aws::String &&value)
Definition: StopTaskRequest.h:169
Aws::ECS::Model::StopTaskRequest::WithReason
StopTaskRequest & WithReason(Aws::String &&value)
Definition: StopTaskRequest.h:196
Aws::ECS::Model::StopTaskRequest::GetReason
const Aws::String & GetReason() const
Definition: StopTaskRequest.h:142
Aws::ECS::Model::StopTaskRequest::SetTask
void SetTask(Aws::String &&value)
Definition: StopTaskRequest.h:112
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::StopTaskRequest::WithTask
StopTaskRequest & WithTask(const char *value)
Definition: StopTaskRequest.h:132
Aws::ECS::Model::StopTaskRequest::SetTask
void SetTask(const Aws::String &value)
Definition: StopTaskRequest.h:107
Aws::ECS::Model::StopTaskRequest::WithCluster
StopTaskRequest & WithCluster(const char *value)
Definition: StopTaskRequest.h:91
Aws::ECS::Model::StopTaskRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::StopTaskRequest::WithTask
StopTaskRequest & WithTask(const Aws::String &value)
Definition: StopTaskRequest.h:122
Aws::ECS::Model::StopTaskRequest::WithCluster
StopTaskRequest & WithCluster(Aws::String &&value)
Definition: StopTaskRequest.h:84
Aws::ECS::Model::StopTaskRequest
Definition: StopTaskRequest.h:22
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::StopTaskRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: StopTaskRequest.h:56
Aws::ECS::Model::StopTaskRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: StopTaskRequest.h:49
Aws::ECS::Model::StopTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopTaskRequest.h:30
AWSString.h
Aws::ECS::Model::StopTaskRequest::GetTask
const Aws::String & GetTask() const
Definition: StopTaskRequest.h:97
Aws::ECS::Model::StopTaskRequest::WithReason
StopTaskRequest & WithReason(const char *value)
Definition: StopTaskRequest.h:205
Aws::ECS::Model::StopTaskRequest::WithReason
StopTaskRequest & WithReason(const Aws::String &value)
Definition: StopTaskRequest.h:187
Aws::ECS::Model::StopTaskRequest::WithTask
StopTaskRequest & WithTask(Aws::String &&value)
Definition: StopTaskRequest.h:127
Aws::ECS::Model::StopTaskRequest::SetReason
void SetReason(const Aws::String &value)
Definition: StopTaskRequest.h:160
Aws::ECS::Model::StopTaskRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::StopTaskRequest::SetCluster
void SetCluster(const char *value)
Definition: StopTaskRequest.h:70
Aws::ECS::Model::StopTaskRequest::StopTaskRequest
StopTaskRequest()
Aws::ECS::Model::StopTaskRequest::TaskHasBeenSet
bool TaskHasBeenSet() const
Definition: StopTaskRequest.h:102
Aws::ECS::Model::StopTaskRequest::GetCluster
const Aws::String & GetCluster() const
Definition: StopTaskRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::StopTaskRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: StopTaskRequest.h:63
Aws::ECS::Model::StopTaskRequest::SetReason
void SetReason(const char *value)
Definition: StopTaskRequest.h:178
Aws::ECS::Model::StopTaskRequest::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: StopTaskRequest.h:151
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::StopTaskRequest::WithCluster
StopTaskRequest & WithCluster(const Aws::String &value)
Definition: StopTaskRequest.h:77