AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
StopTaskRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace ECS
15{
16namespace 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
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 = false;
211
212 Aws::String m_task;
213 bool m_taskHasBeenSet = false;
214
215 Aws::String m_reason;
216 bool m_reasonHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace ECS
221} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetReason(const char *value)
virtual const char * GetServiceRequestName() const override
StopTaskRequest & WithReason(Aws::String &&value)
StopTaskRequest & WithCluster(const Aws::String &value)
StopTaskRequest & WithReason(const Aws::String &value)
void SetCluster(const char *value)
StopTaskRequest & WithTask(const Aws::String &value)
void SetReason(const Aws::String &value)
void SetReason(Aws::String &&value)
StopTaskRequest & WithReason(const char *value)
const Aws::String & GetTask() const
StopTaskRequest & WithCluster(Aws::String &&value)
void SetTask(const Aws::String &value)
const Aws::String & GetCluster() const
void SetTask(const char *value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCluster(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
StopTaskRequest & WithTask(const char *value)
void SetCluster(Aws::String &&value)
const Aws::String & GetReason() const
void SetTask(Aws::String &&value)
StopTaskRequest & WithTask(Aws::String &&value)
StopTaskRequest & WithCluster(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String