AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateTaskProtectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECS {
16namespace Model {
17
21 public:
22 AWS_ECS_API UpdateTaskProtectionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskProtection"; }
29
30 AWS_ECS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetCluster() const { return m_cluster; }
40 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
41 template <typename ClusterT = Aws::String>
42 void SetCluster(ClusterT&& value) {
43 m_clusterHasBeenSet = true;
44 m_cluster = std::forward<ClusterT>(value);
45 }
46 template <typename ClusterT = Aws::String>
48 SetCluster(std::forward<ClusterT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetTasks() const { return m_tasks; }
58 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
59 template <typename TasksT = Aws::Vector<Aws::String>>
60 void SetTasks(TasksT&& value) {
61 m_tasksHasBeenSet = true;
62 m_tasks = std::forward<TasksT>(value);
63 }
64 template <typename TasksT = Aws::Vector<Aws::String>>
66 SetTasks(std::forward<TasksT>(value));
67 return *this;
68 }
69 template <typename TasksT = Aws::String>
71 m_tasksHasBeenSet = true;
72 m_tasks.emplace_back(std::forward<TasksT>(value));
73 return *this;
74 }
76
78
82 inline bool GetProtectionEnabled() const { return m_protectionEnabled; }
83 inline bool ProtectionEnabledHasBeenSet() const { return m_protectionEnabledHasBeenSet; }
84 inline void SetProtectionEnabled(bool value) {
85 m_protectionEnabledHasBeenSet = true;
86 m_protectionEnabled = value;
87 }
90 return *this;
91 }
93
95
104 inline int GetExpiresInMinutes() const { return m_expiresInMinutes; }
105 inline bool ExpiresInMinutesHasBeenSet() const { return m_expiresInMinutesHasBeenSet; }
106 inline void SetExpiresInMinutes(int value) {
107 m_expiresInMinutesHasBeenSet = true;
108 m_expiresInMinutes = value;
109 }
111 SetExpiresInMinutes(value);
112 return *this;
113 }
115 private:
116 Aws::String m_cluster;
117
119
120 bool m_protectionEnabled{false};
121
122 int m_expiresInMinutes{0};
123 bool m_clusterHasBeenSet = false;
124 bool m_tasksHasBeenSet = false;
125 bool m_protectionEnabledHasBeenSet = false;
126 bool m_expiresInMinutesHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ECS
131} // namespace Aws
UpdateTaskProtectionRequest & WithProtectionEnabled(bool value)
UpdateTaskProtectionRequest & WithExpiresInMinutes(int value)
UpdateTaskProtectionRequest & WithTasks(TasksT &&value)
UpdateTaskProtectionRequest & WithCluster(ClusterT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
UpdateTaskProtectionRequest & AddTasks(TasksT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetTasks() const
AWS_ECS_API UpdateTaskProtectionRequest()=default
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