AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetTaskProtectionRequest.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 "GetTaskProtection"; }
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 GetTaskProtectionRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
73
78 inline GetTaskProtectionRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
79
84 inline GetTaskProtectionRequest& 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 GetTaskProtectionRequest& WithTasks(const Aws::Vector<Aws::String>& value) { SetTasks(value); return *this;}
111
115 inline GetTaskProtectionRequest& WithTasks(Aws::Vector<Aws::String>&& value) { SetTasks(std::move(value)); return *this;}
116
120 inline GetTaskProtectionRequest& AddTasks(const Aws::String& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
121
125 inline GetTaskProtectionRequest& AddTasks(Aws::String&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
126
130 inline GetTaskProtectionRequest& AddTasks(const char* value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
131
132 private:
133
134 Aws::String m_cluster;
135 bool m_clusterHasBeenSet = false;
136
138 bool m_tasksHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ECS
143} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
GetTaskProtectionRequest & WithCluster(Aws::String &&value)
GetTaskProtectionRequest & WithTasks(const Aws::Vector< Aws::String > &value)
GetTaskProtectionRequest & WithCluster(const char *value)
GetTaskProtectionRequest & AddTasks(const char *value)
GetTaskProtectionRequest & AddTasks(const Aws::String &value)
GetTaskProtectionRequest & WithTasks(Aws::Vector< Aws::String > &&value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetTasks() const
void SetTasks(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
GetTaskProtectionRequest & WithCluster(const Aws::String &value)
GetTaskProtectionRequest & AddTasks(Aws::String &&value)
void SetTasks(Aws::Vector< Aws::String > &&value)
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
std::vector< T, Aws::Allocator< T > > Vector