AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeleteTaskSetRequest.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 DeleteTaskSetRequest() = 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 "DeleteTaskSet"; }
28
29 AWS_ECS_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetCluster() const { return m_cluster; }
39 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
40 template <typename ClusterT = Aws::String>
41 void SetCluster(ClusterT&& value) {
42 m_clusterHasBeenSet = true;
43 m_cluster = std::forward<ClusterT>(value);
44 }
45 template <typename ClusterT = Aws::String>
46 DeleteTaskSetRequest& WithCluster(ClusterT&& value) {
47 SetCluster(std::forward<ClusterT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 template <typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) {
61 m_serviceHasBeenSet = true;
62 m_service = std::forward<ServiceT>(value);
63 }
64 template <typename ServiceT = Aws::String>
65 DeleteTaskSetRequest& WithService(ServiceT&& value) {
66 SetService(std::forward<ServiceT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetTaskSet() const { return m_taskSet; }
77 inline bool TaskSetHasBeenSet() const { return m_taskSetHasBeenSet; }
78 template <typename TaskSetT = Aws::String>
79 void SetTaskSet(TaskSetT&& value) {
80 m_taskSetHasBeenSet = true;
81 m_taskSet = std::forward<TaskSetT>(value);
82 }
83 template <typename TaskSetT = Aws::String>
84 DeleteTaskSetRequest& WithTaskSet(TaskSetT&& value) {
85 SetTaskSet(std::forward<TaskSetT>(value));
86 return *this;
87 }
89
91
95 inline bool GetForce() const { return m_force; }
96 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
97 inline void SetForce(bool value) {
98 m_forceHasBeenSet = true;
99 m_force = value;
100 }
101 inline DeleteTaskSetRequest& WithForce(bool value) {
102 SetForce(value);
103 return *this;
104 }
106 private:
107 Aws::String m_cluster;
108
109 Aws::String m_service;
110
111 Aws::String m_taskSet;
112
113 bool m_force{false};
114 bool m_clusterHasBeenSet = false;
115 bool m_serviceHasBeenSet = false;
116 bool m_taskSetHasBeenSet = false;
117 bool m_forceHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ECS
122} // namespace Aws
DeleteTaskSetRequest & WithService(ServiceT &&value)
virtual const char * GetServiceRequestName() const override
DeleteTaskSetRequest & WithCluster(ClusterT &&value)
AWS_ECS_API DeleteTaskSetRequest()=default
DeleteTaskSetRequest & WithForce(bool value)
DeleteTaskSetRequest & WithTaskSet(TaskSetT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String