AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Lifecycle.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Backup
20{
21namespace Model
22{
23
42 {
43 public:
44 AWS_BACKUP_API Lifecycle();
45 AWS_BACKUP_API Lifecycle(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline long long GetMoveToColdStorageAfterDays() const{ return m_moveToColdStorageAfterDays; }
56 inline bool MoveToColdStorageAfterDaysHasBeenSet() const { return m_moveToColdStorageAfterDaysHasBeenSet; }
57 inline void SetMoveToColdStorageAfterDays(long long value) { m_moveToColdStorageAfterDaysHasBeenSet = true; m_moveToColdStorageAfterDays = value; }
58 inline Lifecycle& WithMoveToColdStorageAfterDays(long long value) { SetMoveToColdStorageAfterDays(value); return *this;}
60
62
67 inline long long GetDeleteAfterDays() const{ return m_deleteAfterDays; }
68 inline bool DeleteAfterDaysHasBeenSet() const { return m_deleteAfterDaysHasBeenSet; }
69 inline void SetDeleteAfterDays(long long value) { m_deleteAfterDaysHasBeenSet = true; m_deleteAfterDays = value; }
70 inline Lifecycle& WithDeleteAfterDays(long long value) { SetDeleteAfterDays(value); return *this;}
72
74
78 inline bool GetOptInToArchiveForSupportedResources() const{ return m_optInToArchiveForSupportedResources; }
79 inline bool OptInToArchiveForSupportedResourcesHasBeenSet() const { return m_optInToArchiveForSupportedResourcesHasBeenSet; }
80 inline void SetOptInToArchiveForSupportedResources(bool value) { m_optInToArchiveForSupportedResourcesHasBeenSet = true; m_optInToArchiveForSupportedResources = value; }
83 private:
84
85 long long m_moveToColdStorageAfterDays;
86 bool m_moveToColdStorageAfterDaysHasBeenSet = false;
87
88 long long m_deleteAfterDays;
89 bool m_deleteAfterDaysHasBeenSet = false;
90
91 bool m_optInToArchiveForSupportedResources;
92 bool m_optInToArchiveForSupportedResourcesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Backup
97} // namespace Aws
bool GetOptInToArchiveForSupportedResources() const
Definition Lifecycle.h:78
Lifecycle & WithOptInToArchiveForSupportedResources(bool value)
Definition Lifecycle.h:81
void SetMoveToColdStorageAfterDays(long long value)
Definition Lifecycle.h:57
bool MoveToColdStorageAfterDaysHasBeenSet() const
Definition Lifecycle.h:56
Lifecycle & WithDeleteAfterDays(long long value)
Definition Lifecycle.h:70
Lifecycle & WithMoveToColdStorageAfterDays(long long value)
Definition Lifecycle.h:58
bool OptInToArchiveForSupportedResourcesHasBeenSet() const
Definition Lifecycle.h:79
void SetOptInToArchiveForSupportedResources(bool value)
Definition Lifecycle.h:80
AWS_BACKUP_API Lifecycle(Aws::Utils::Json::JsonView jsonValue)
long long GetDeleteAfterDays() const
Definition Lifecycle.h:67
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
bool DeleteAfterDaysHasBeenSet() const
Definition Lifecycle.h:68
void SetDeleteAfterDays(long long value)
Definition Lifecycle.h:69
AWS_BACKUP_API Lifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetMoveToColdStorageAfterDays() const
Definition Lifecycle.h:55
Aws::Utils::Json::JsonValue JsonValue