AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
44
45
47
50 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
51 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
52 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
53 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
54 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
55 inline ProtectedTask& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
56 inline ProtectedTask& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
57 inline ProtectedTask& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
59
61
65 inline bool GetProtectionEnabled() const{ return m_protectionEnabled; }
66 inline bool ProtectionEnabledHasBeenSet() const { return m_protectionEnabledHasBeenSet; }
67 inline void SetProtectionEnabled(bool value) { m_protectionEnabledHasBeenSet = true; m_protectionEnabled = value; }
68 inline ProtectedTask& WithProtectionEnabled(bool value) { SetProtectionEnabled(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
76 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
77 inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
78 inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
79 inline ProtectedTask& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
80 inline ProtectedTask& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_taskArn;
85 bool m_taskArnHasBeenSet = false;
86
87 bool m_protectionEnabled;
88 bool m_protectionEnabledHasBeenSet = false;
89
90 Aws::Utils::DateTime m_expirationDate;
91 bool m_expirationDateHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ECS
96} // namespace Aws
const Aws::String & GetTaskArn() const
ProtectedTask & WithTaskArn(const Aws::String &value)
const Aws::Utils::DateTime & GetExpirationDate() const
void SetExpirationDate(const Aws::Utils::DateTime &value)
void SetTaskArn(Aws::String &&value)
void SetProtectionEnabled(bool value)
ProtectedTask & WithProtectionEnabled(bool value)
void SetTaskArn(const Aws::String &value)
ProtectedTask & WithTaskArn(const char *value)
ProtectedTask & WithExpirationDate(const Aws::Utils::DateTime &value)
ProtectedTask & WithExpirationDate(Aws::Utils::DateTime &&value)
void SetExpirationDate(Aws::Utils::DateTime &&value)
AWS_ECS_API ProtectedTask(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ProtectedTask & operator=(Aws::Utils::Json::JsonView jsonValue)
ProtectedTask & WithTaskArn(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTaskArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue