AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
LongTermBackupSchedule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/odb/Odb_EXPORTS.h>
9#include <aws/odb/model/RepeatCadence.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace odb {
21namespace Model {
22
30 public:
31 AWS_ODB_API LongTermBackupSchedule() = default;
35
37
40 inline bool GetIsDisabled() const { return m_isDisabled; }
41 inline bool IsDisabledHasBeenSet() const { return m_isDisabledHasBeenSet; }
42 inline void SetIsDisabled(bool value) {
43 m_isDisabledHasBeenSet = true;
44 m_isDisabled = value;
45 }
47 SetIsDisabled(value);
48 return *this;
49 }
51
53
56 inline RepeatCadence GetRepeatCadence() const { return m_repeatCadence; }
57 inline bool RepeatCadenceHasBeenSet() const { return m_repeatCadenceHasBeenSet; }
58 inline void SetRepeatCadence(RepeatCadence value) {
59 m_repeatCadenceHasBeenSet = true;
60 m_repeatCadence = value;
61 }
63 SetRepeatCadence(value);
64 return *this;
65 }
67
69
72 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
73 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
74 inline void SetRetentionPeriodInDays(int value) {
75 m_retentionPeriodInDaysHasBeenSet = true;
76 m_retentionPeriodInDays = value;
77 }
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetTimeOfBackup() const { return m_timeOfBackup; }
89 inline bool TimeOfBackupHasBeenSet() const { return m_timeOfBackupHasBeenSet; }
90 template <typename TimeOfBackupT = Aws::Utils::DateTime>
91 void SetTimeOfBackup(TimeOfBackupT&& value) {
92 m_timeOfBackupHasBeenSet = true;
93 m_timeOfBackup = std::forward<TimeOfBackupT>(value);
94 }
95 template <typename TimeOfBackupT = Aws::Utils::DateTime>
96 LongTermBackupSchedule& WithTimeOfBackup(TimeOfBackupT&& value) {
97 SetTimeOfBackup(std::forward<TimeOfBackupT>(value));
98 return *this;
99 }
101 private:
102 bool m_isDisabled{false};
103
104 RepeatCadence m_repeatCadence{RepeatCadence::NOT_SET};
105
106 int m_retentionPeriodInDays{0};
107
108 Aws::Utils::DateTime m_timeOfBackup{};
109 bool m_isDisabledHasBeenSet = false;
110 bool m_repeatCadenceHasBeenSet = false;
111 bool m_retentionPeriodInDaysHasBeenSet = false;
112 bool m_timeOfBackupHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace odb
117} // namespace Aws
const Aws::Utils::DateTime & GetTimeOfBackup() const
AWS_ODB_API LongTermBackupSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
LongTermBackupSchedule & WithIsDisabled(bool value)
LongTermBackupSchedule & WithRetentionPeriodInDays(int value)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
LongTermBackupSchedule & WithRepeatCadence(RepeatCadence value)
AWS_ODB_API LongTermBackupSchedule(Aws::Utils::Json::JsonView jsonValue)
LongTermBackupSchedule & WithTimeOfBackup(TimeOfBackupT &&value)
AWS_ODB_API LongTermBackupSchedule()=default
Aws::Utils::Json::JsonValue JsonValue