AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup
22{
23namespace Model
24{
25
44 {
45 public:
46 AWS_BACKUP_API CalculatedLifecycle() = default;
49 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const Aws::Utils::DateTime& GetMoveToColdStorageAt() const { return m_moveToColdStorageAt; }
58 inline bool MoveToColdStorageAtHasBeenSet() const { return m_moveToColdStorageAtHasBeenSet; }
59 template<typename MoveToColdStorageAtT = Aws::Utils::DateTime>
60 void SetMoveToColdStorageAt(MoveToColdStorageAtT&& value) { m_moveToColdStorageAtHasBeenSet = true; m_moveToColdStorageAt = std::forward<MoveToColdStorageAtT>(value); }
61 template<typename MoveToColdStorageAtT = Aws::Utils::DateTime>
62 CalculatedLifecycle& WithMoveToColdStorageAt(MoveToColdStorageAtT&& value) { SetMoveToColdStorageAt(std::forward<MoveToColdStorageAtT>(value)); return *this;}
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) { m_deleteAtHasBeenSet = true; m_deleteAt = std::forward<DeleteAtT>(value); }
73 template<typename DeleteAtT = Aws::Utils::DateTime>
74 CalculatedLifecycle& WithDeleteAt(DeleteAtT&& value) { SetDeleteAt(std::forward<DeleteAtT>(value)); return *this;}
76 private:
77
78 Aws::Utils::DateTime m_moveToColdStorageAt{};
79 bool m_moveToColdStorageAtHasBeenSet = false;
80
81 Aws::Utils::DateTime m_deleteAt{};
82 bool m_deleteAtHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Backup
87} // 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