AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
CalculatedLifecycle.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Backup {
20namespace Model {
21
40 public:
41 AWS_BACKUP_API CalculatedLifecycle() = default;
44 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const Aws::Utils::DateTime& GetMoveToColdStorageAt() const { return m_moveToColdStorageAt; }
52 inline bool MoveToColdStorageAtHasBeenSet() const { return m_moveToColdStorageAtHasBeenSet; }
53 template <typename MoveToColdStorageAtT = Aws::Utils::DateTime>
54 void SetMoveToColdStorageAt(MoveToColdStorageAtT&& value) {
55 m_moveToColdStorageAtHasBeenSet = true;
56 m_moveToColdStorageAt = std::forward<MoveToColdStorageAtT>(value);
57 }
58 template <typename MoveToColdStorageAtT = Aws::Utils::DateTime>
59 CalculatedLifecycle& WithMoveToColdStorageAt(MoveToColdStorageAtT&& value) {
60 SetMoveToColdStorageAt(std::forward<MoveToColdStorageAtT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetDeleteAt() const { return m_deleteAt; }
70 inline bool DeleteAtHasBeenSet() const { return m_deleteAtHasBeenSet; }
71 template <typename DeleteAtT = Aws::Utils::DateTime>
72 void SetDeleteAt(DeleteAtT&& value) {
73 m_deleteAtHasBeenSet = true;
74 m_deleteAt = std::forward<DeleteAtT>(value);
75 }
76 template <typename DeleteAtT = Aws::Utils::DateTime>
77 CalculatedLifecycle& WithDeleteAt(DeleteAtT&& value) {
78 SetDeleteAt(std::forward<DeleteAtT>(value));
79 return *this;
80 }
82 private:
83 Aws::Utils::DateTime m_moveToColdStorageAt{};
84
85 Aws::Utils::DateTime m_deleteAt{};
86 bool m_moveToColdStorageAtHasBeenSet = false;
87 bool m_deleteAtHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Backup
92} // namespace Aws
CalculatedLifecycle & WithMoveToColdStorageAt(MoveToColdStorageAtT &&value)
AWS_BACKUP_API CalculatedLifecycle()=default
AWS_BACKUP_API CalculatedLifecycle(Aws::Utils::Json::JsonView jsonValue)
void SetMoveToColdStorageAt(MoveToColdStorageAtT &&value)
const Aws::Utils::DateTime & GetMoveToColdStorageAt() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
CalculatedLifecycle & WithDeleteAt(DeleteAtT &&value)
const Aws::Utils::DateTime & GetDeleteAt() const
AWS_BACKUP_API CalculatedLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue