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>
41 template <
typename ClusterT = Aws::String>
43 m_clusterHasBeenSet =
true;
44 m_cluster = std::forward<ClusterT>(value);
46 template <
typename ClusterT = Aws::String>
59 template <
typename TasksT = Aws::Vector<Aws::String>>
61 m_tasksHasBeenSet =
true;
62 m_tasks = std::forward<TasksT>(value);
64 template <
typename TasksT = Aws::Vector<Aws::String>>
66 SetTasks(std::forward<TasksT>(value));
69 template <
typename TasksT = Aws::String>
71 m_tasksHasBeenSet =
true;
72 m_tasks.emplace_back(std::forward<TasksT>(value));
85 m_protectionEnabledHasBeenSet =
true;
86 m_protectionEnabled = value;
107 m_expiresInMinutesHasBeenSet =
true;
108 m_expiresInMinutes = value;
120 bool m_protectionEnabled{
false};
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;
UpdateTaskProtectionRequest & WithProtectionEnabled(bool value)
void SetTasks(TasksT &&value)
void SetProtectionEnabled(bool value)
bool ExpiresInMinutesHasBeenSet() const
const Aws::String & GetCluster() const
bool TasksHasBeenSet() const
UpdateTaskProtectionRequest & WithExpiresInMinutes(int value)
bool GetProtectionEnabled() const
bool ClusterHasBeenSet() const
void SetExpiresInMinutes(int value)
UpdateTaskProtectionRequest & WithTasks(TasksT &&value)
UpdateTaskProtectionRequest & WithCluster(ClusterT &&value)
bool ProtectionEnabledHasBeenSet() const
void SetCluster(ClusterT &&value)
int GetExpiresInMinutes() const
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