7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
52 template<
typename TaskArnT = Aws::String>
53 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet =
true; m_taskArn = std::forward<TaskArnT>(value); }
54 template<
typename TaskArnT = Aws::String>
65 inline void SetProtectionEnabled(
bool value) { m_protectionEnabledHasBeenSet =
true; m_protectionEnabled = value; }
75 template<
typename ExpirationDateT = Aws::Utils::DateTime>
76 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet =
true; m_expirationDate = std::forward<ExpirationDateT>(value); }
77 template<
typename ExpirationDateT = Aws::Utils::DateTime>
83 bool m_taskArnHasBeenSet =
false;
85 bool m_protectionEnabled{
false};
86 bool m_protectionEnabledHasBeenSet =
false;
89 bool m_expirationDateHasBeenSet =
false;
const Aws::String & GetTaskArn() const
const Aws::Utils::DateTime & GetExpirationDate() const
ProtectedTask & WithTaskArn(TaskArnT &&value)
bool ExpirationDateHasBeenSet() const
ProtectedTask & WithExpirationDate(ExpirationDateT &&value)
bool ProtectionEnabledHasBeenSet() const
void SetProtectionEnabled(bool value)
ProtectedTask & WithProtectionEnabled(bool value)
bool GetProtectionEnabled() const
AWS_ECS_API ProtectedTask()=default
bool TaskArnHasBeenSet() const
void SetTaskArn(TaskArnT &&value)
void SetExpirationDate(ExpirationDateT &&value)
AWS_ECS_API ProtectedTask(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ProtectedTask & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue