AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
StopTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ECS {
15namespace Model {
16
23 public:
24 AWS_ECS_API StopTaskRequest() = default;
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
37
42 inline const Aws::String& GetCluster() const { return m_cluster; }
43 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
44 template <typename ClusterT = Aws::String>
45 void SetCluster(ClusterT&& value) {
46 m_clusterHasBeenSet = true;
47 m_cluster = std::forward<ClusterT>(value);
48 }
49 template <typename ClusterT = Aws::String>
50 StopTaskRequest& WithCluster(ClusterT&& value) {
51 SetCluster(std::forward<ClusterT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTask() const { return m_task; }
61 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
62 template <typename TaskT = Aws::String>
63 void SetTask(TaskT&& value) {
64 m_taskHasBeenSet = true;
65 m_task = std::forward<TaskT>(value);
66 }
67 template <typename TaskT = Aws::String>
68 StopTaskRequest& WithTask(TaskT&& value) {
69 SetTask(std::forward<TaskT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetReason() const { return m_reason; }
83 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
84 template <typename ReasonT = Aws::String>
85 void SetReason(ReasonT&& value) {
86 m_reasonHasBeenSet = true;
87 m_reason = std::forward<ReasonT>(value);
88 }
89 template <typename ReasonT = Aws::String>
90 StopTaskRequest& WithReason(ReasonT&& value) {
91 SetReason(std::forward<ReasonT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_cluster;
97
98 Aws::String m_task;
99
100 Aws::String m_reason;
101 bool m_clusterHasBeenSet = false;
102 bool m_taskHasBeenSet = false;
103 bool m_reasonHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ECS
108} // namespace Aws
AWS_ECS_API StopTaskRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::String & GetTask() const
StopTaskRequest & WithCluster(ClusterT &&value)
const Aws::String & GetCluster() const
StopTaskRequest & WithTask(TaskT &&value)
StopTaskRequest & WithReason(ReasonT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API Aws::String SerializePayload() const override
void SetCluster(ClusterT &&value)
const Aws::String & GetReason() const
void SetReason(ReasonT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String