AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTaskProtectionRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
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
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetCluster() const{ return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
46 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
47 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
48 inline GetTaskProtectionRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
49 inline GetTaskProtectionRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
50 inline GetTaskProtectionRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetTasks() const{ return m_tasks; }
58 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
59 inline void SetTasks(const Aws::Vector<Aws::String>& value) { m_tasksHasBeenSet = true; m_tasks = value; }
60 inline void SetTasks(Aws::Vector<Aws::String>&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); }
61 inline GetTaskProtectionRequest& WithTasks(const Aws::Vector<Aws::String>& value) { SetTasks(value); return *this;}
62 inline GetTaskProtectionRequest& WithTasks(Aws::Vector<Aws::String>&& value) { SetTasks(std::move(value)); return *this;}
63 inline GetTaskProtectionRequest& AddTasks(const Aws::String& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
64 inline GetTaskProtectionRequest& AddTasks(Aws::String&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
65 inline GetTaskProtectionRequest& AddTasks(const char* value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
67 private:
68
69 Aws::String m_cluster;
70 bool m_clusterHasBeenSet = false;
71
73 bool m_tasksHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ECS
78} // namespace Aws
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