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>
45 template<
typename ClusterT = Aws::String>
46 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet =
true; m_cluster = std::forward<ClusterT>(value); }
47 template<
typename ClusterT = Aws::String>
57 template<
typename TasksT = Aws::Vector<Aws::String>>
58 void SetTasks(TasksT&& value) { m_tasksHasBeenSet =
true; m_tasks = std::forward<TasksT>(value); }
59 template<
typename TasksT = Aws::Vector<Aws::String>>
61 template<
typename TasksT = Aws::String>
72 inline void SetProtectionEnabled(
bool value) { m_protectionEnabledHasBeenSet =
true; m_protectionEnabled = value; }
88 inline void SetExpiresInMinutes(
int value) { m_expiresInMinutesHasBeenSet =
true; m_expiresInMinutes = value; }
94 bool m_clusterHasBeenSet =
false;
97 bool m_tasksHasBeenSet =
false;
99 bool m_protectionEnabled{
false};
100 bool m_protectionEnabledHasBeenSet =
false;
102 int m_expiresInMinutes{0};
103 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