AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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
36
38
43 inline const Aws::String& GetCluster() const { return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 template<typename ClusterT = Aws::String>
46 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
47 template<typename ClusterT = Aws::String>
48 StopTaskRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
50
52
55 inline const Aws::String& GetTask() const { return m_task; }
56 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
57 template<typename TaskT = Aws::String>
58 void SetTask(TaskT&& value) { m_taskHasBeenSet = true; m_task = std::forward<TaskT>(value); }
59 template<typename TaskT = Aws::String>
60 StopTaskRequest& WithTask(TaskT&& value) { SetTask(std::forward<TaskT>(value)); return *this;}
62
64
71 inline const Aws::String& GetReason() const { return m_reason; }
72 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
73 template<typename ReasonT = Aws::String>
74 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
75 template<typename ReasonT = Aws::String>
76 StopTaskRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
78 private:
79
80 Aws::String m_cluster;
81 bool m_clusterHasBeenSet = false;
82
83 Aws::String m_task;
84 bool m_taskHasBeenSet = false;
85
86 Aws::String m_reason;
87 bool m_reasonHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ECS
92} // 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