AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
20 public:
21 AWS_ECS_API StopTaskRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "StopTask"; }
28
29 AWS_ECS_API Aws::String SerializePayload() const override;
30
32
34
39 inline const Aws::String& GetCluster() const { return m_cluster; }
40 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
41 template <typename ClusterT = Aws::String>
42 void SetCluster(ClusterT&& value) {
43 m_clusterHasBeenSet = true;
44 m_cluster = std::forward<ClusterT>(value);
45 }
46 template <typename ClusterT = Aws::String>
47 StopTaskRequest& WithCluster(ClusterT&& value) {
48 SetCluster(std::forward<ClusterT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTask() const { return m_task; }
58 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
59 template <typename TaskT = Aws::String>
60 void SetTask(TaskT&& value) {
61 m_taskHasBeenSet = true;
62 m_task = std::forward<TaskT>(value);
63 }
64 template <typename TaskT = Aws::String>
65 StopTaskRequest& WithTask(TaskT&& value) {
66 SetTask(std::forward<TaskT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetReason() const { return m_reason; }
80 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
81 template <typename ReasonT = Aws::String>
82 void SetReason(ReasonT&& value) {
83 m_reasonHasBeenSet = true;
84 m_reason = std::forward<ReasonT>(value);
85 }
86 template <typename ReasonT = Aws::String>
87 StopTaskRequest& WithReason(ReasonT&& value) {
88 SetReason(std::forward<ReasonT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_cluster;
94
95 Aws::String m_task;
96
97 Aws::String m_reason;
98 bool m_clusterHasBeenSet = false;
99 bool m_taskHasBeenSet = false;
100 bool m_reasonHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ECS
105} // 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