AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProtectedTask.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ECS_API ProtectedTask() = default;
44
45
47
50 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
51 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
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>
55 ProtectedTask& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
57
59
63 inline bool GetProtectionEnabled() const { return m_protectionEnabled; }
64 inline bool ProtectionEnabledHasBeenSet() const { return m_protectionEnabledHasBeenSet; }
65 inline void SetProtectionEnabled(bool value) { m_protectionEnabledHasBeenSet = true; m_protectionEnabled = value; }
66 inline ProtectedTask& WithProtectionEnabled(bool value) { SetProtectionEnabled(value); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
74 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
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>
78 ProtectedTask& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
80 private:
81
82 Aws::String m_taskArn;
83 bool m_taskArnHasBeenSet = false;
84
85 bool m_protectionEnabled{false};
86 bool m_protectionEnabledHasBeenSet = false;
87
88 Aws::Utils::DateTime m_expirationDate{};
89 bool m_expirationDateHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ECS
94} // namespace Aws
const Aws::String & GetTaskArn() const
const Aws::Utils::DateTime & GetExpirationDate() const
ProtectedTask & WithTaskArn(TaskArnT &&value)
ProtectedTask & WithExpirationDate(ExpirationDateT &&value)
void SetProtectionEnabled(bool value)
ProtectedTask & WithProtectionEnabled(bool value)
AWS_ECS_API ProtectedTask()=default
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