AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateTaskProtectionRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskProtection"; }
32
34
36
37
42 inline const Aws::String& GetCluster() const{ return m_cluster; }
43
48 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
49
54 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
55
60 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
61
66 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
67
72 inline UpdateTaskProtectionRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
73
78 inline UpdateTaskProtectionRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
79
84 inline UpdateTaskProtectionRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
85
86
90 inline const Aws::Vector<Aws::String>& GetTasks() const{ return m_tasks; }
91
95 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
96
100 inline void SetTasks(const Aws::Vector<Aws::String>& value) { m_tasksHasBeenSet = true; m_tasks = value; }
101
105 inline void SetTasks(Aws::Vector<Aws::String>&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); }
106
110 inline UpdateTaskProtectionRequest& WithTasks(const Aws::Vector<Aws::String>& value) { SetTasks(value); return *this;}
111
115 inline UpdateTaskProtectionRequest& WithTasks(Aws::Vector<Aws::String>&& value) { SetTasks(std::move(value)); return *this;}
116
120 inline UpdateTaskProtectionRequest& AddTasks(const Aws::String& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
121
125 inline UpdateTaskProtectionRequest& AddTasks(Aws::String&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
126
130 inline UpdateTaskProtectionRequest& AddTasks(const char* value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
131
132
137 inline bool GetProtectionEnabled() const{ return m_protectionEnabled; }
138
143 inline bool ProtectionEnabledHasBeenSet() const { return m_protectionEnabledHasBeenSet; }
144
149 inline void SetProtectionEnabled(bool value) { m_protectionEnabledHasBeenSet = true; m_protectionEnabled = value; }
150
155 inline UpdateTaskProtectionRequest& WithProtectionEnabled(bool value) { SetProtectionEnabled(value); return *this;}
156
157
167 inline int GetExpiresInMinutes() const{ return m_expiresInMinutes; }
168
178 inline bool ExpiresInMinutesHasBeenSet() const { return m_expiresInMinutesHasBeenSet; }
179
189 inline void SetExpiresInMinutes(int value) { m_expiresInMinutesHasBeenSet = true; m_expiresInMinutes = value; }
190
200 inline UpdateTaskProtectionRequest& WithExpiresInMinutes(int value) { SetExpiresInMinutes(value); return *this;}
201
202 private:
203
204 Aws::String m_cluster;
205 bool m_clusterHasBeenSet = false;
206
208 bool m_tasksHasBeenSet = false;
209
210 bool m_protectionEnabled;
211 bool m_protectionEnabledHasBeenSet = false;
212
213 int m_expiresInMinutes;
214 bool m_expiresInMinutesHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace ECS
219} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
UpdateTaskProtectionRequest & WithCluster(const char *value)
UpdateTaskProtectionRequest & WithProtectionEnabled(bool value)
void SetTasks(const Aws::Vector< Aws::String > &value)
UpdateTaskProtectionRequest & WithCluster(const Aws::String &value)
UpdateTaskProtectionRequest & WithTasks(Aws::Vector< Aws::String > &&value)
UpdateTaskProtectionRequest & AddTasks(const char *value)
UpdateTaskProtectionRequest & WithExpiresInMinutes(int value)
UpdateTaskProtectionRequest & WithTasks(const Aws::Vector< Aws::String > &value)
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTaskProtectionRequest & WithCluster(Aws::String &&value)
UpdateTaskProtectionRequest & AddTasks(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTasks() const
UpdateTaskProtectionRequest & AddTasks(const Aws::String &value)
void SetTasks(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector