AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopTaskRequest.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 <utility>
11
12namespace Aws
13{
14namespace ECS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ECS_API StopTaskRequest();
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_ECS_API Aws::String SerializePayload() const override;
33
35
36
38
43 inline const Aws::String& GetCluster() const{ return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
46 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
47 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
48 inline StopTaskRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
49 inline StopTaskRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
50 inline StopTaskRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
52
54
57 inline const Aws::String& GetTask() const{ return m_task; }
58 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
59 inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
60 inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
61 inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
62 inline StopTaskRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
63 inline StopTaskRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
64 inline StopTaskRequest& WithTask(const char* value) { SetTask(value); return *this;}
66
68
75 inline const Aws::String& GetReason() const{ return m_reason; }
76 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
77 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
78 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
79 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
80 inline StopTaskRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
81 inline StopTaskRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
82 inline StopTaskRequest& WithReason(const char* value) { SetReason(value); return *this;}
84 private:
85
86 Aws::String m_cluster;
87 bool m_clusterHasBeenSet = false;
88
89 Aws::String m_task;
90 bool m_taskHasBeenSet = false;
91
92 Aws::String m_reason;
93 bool m_reasonHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ECS
98} // namespace Aws
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