AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ProtectedTask.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
34 public:
35 AWS_ECS_API ProtectedTask() = default;
39
41
44 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
45 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
46 template <typename TaskArnT = Aws::String>
47 void SetTaskArn(TaskArnT&& value) {
48 m_taskArnHasBeenSet = true;
49 m_taskArn = std::forward<TaskArnT>(value);
50 }
51 template <typename TaskArnT = Aws::String>
52 ProtectedTask& WithTaskArn(TaskArnT&& value) {
53 SetTaskArn(std::forward<TaskArnT>(value));
54 return *this;
55 }
57
59
63 inline bool GetProtectionEnabled() const { return m_protectionEnabled; }
64 inline bool ProtectionEnabledHasBeenSet() const { return m_protectionEnabledHasBeenSet; }
65 inline void SetProtectionEnabled(bool value) {
66 m_protectionEnabledHasBeenSet = true;
67 m_protectionEnabled = value;
68 }
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
80 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
81 template <typename ExpirationDateT = Aws::Utils::DateTime>
82 void SetExpirationDate(ExpirationDateT&& value) {
83 m_expirationDateHasBeenSet = true;
84 m_expirationDate = std::forward<ExpirationDateT>(value);
85 }
86 template <typename ExpirationDateT = Aws::Utils::DateTime>
87 ProtectedTask& WithExpirationDate(ExpirationDateT&& value) {
88 SetExpirationDate(std::forward<ExpirationDateT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_taskArn;
94
95 bool m_protectionEnabled{false};
96
97 Aws::Utils::DateTime m_expirationDate{};
98 bool m_taskArnHasBeenSet = false;
99 bool m_protectionEnabledHasBeenSet = false;
100 bool m_expirationDateHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ECS
105} // 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