AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
SourceConfiguration.h
1
6#pragma once
7#include <aws/odb/Odb_EXPORTS.h>
8#include <aws/odb/model/CloneToRefreshableConfiguration.h>
9#include <aws/odb/model/CrossRegionDataGuardConfiguration.h>
10#include <aws/odb/model/CrossRegionDisasterRecoveryConfiguration.h>
11#include <aws/odb/model/DatabaseCloneConfiguration.h>
12#include <aws/odb/model/PointInTimeRestoreConfiguration.h>
13#include <aws/odb/model/RestoreFromBackupConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace odb {
25namespace Model {
26
35 public:
36 AWS_ODB_API SourceConfiguration() = default;
40
42
46 inline const DatabaseCloneConfiguration& GetDatabaseClone() const { return m_databaseClone; }
47 inline bool DatabaseCloneHasBeenSet() const { return m_databaseCloneHasBeenSet; }
48 template <typename DatabaseCloneT = DatabaseCloneConfiguration>
49 void SetDatabaseClone(DatabaseCloneT&& value) {
50 m_databaseCloneHasBeenSet = true;
51 m_databaseClone = std::forward<DatabaseCloneT>(value);
52 }
53 template <typename DatabaseCloneT = DatabaseCloneConfiguration>
54 SourceConfiguration& WithDatabaseClone(DatabaseCloneT&& value) {
55 SetDatabaseClone(std::forward<DatabaseCloneT>(value));
56 return *this;
57 }
59
61
65 inline const RestoreFromBackupConfiguration& GetRestoreFromBackup() const { return m_restoreFromBackup; }
66 inline bool RestoreFromBackupHasBeenSet() const { return m_restoreFromBackupHasBeenSet; }
67 template <typename RestoreFromBackupT = RestoreFromBackupConfiguration>
68 void SetRestoreFromBackup(RestoreFromBackupT&& value) {
69 m_restoreFromBackupHasBeenSet = true;
70 m_restoreFromBackup = std::forward<RestoreFromBackupT>(value);
71 }
72 template <typename RestoreFromBackupT = RestoreFromBackupConfiguration>
73 SourceConfiguration& WithRestoreFromBackup(RestoreFromBackupT&& value) {
74 SetRestoreFromBackup(std::forward<RestoreFromBackupT>(value));
75 return *this;
76 }
78
80
84 inline const PointInTimeRestoreConfiguration& GetPointInTimeRestore() const { return m_pointInTimeRestore; }
85 inline bool PointInTimeRestoreHasBeenSet() const { return m_pointInTimeRestoreHasBeenSet; }
86 template <typename PointInTimeRestoreT = PointInTimeRestoreConfiguration>
87 void SetPointInTimeRestore(PointInTimeRestoreT&& value) {
88 m_pointInTimeRestoreHasBeenSet = true;
89 m_pointInTimeRestore = std::forward<PointInTimeRestoreT>(value);
90 }
91 template <typename PointInTimeRestoreT = PointInTimeRestoreConfiguration>
92 SourceConfiguration& WithPointInTimeRestore(PointInTimeRestoreT&& value) {
93 SetPointInTimeRestore(std::forward<PointInTimeRestoreT>(value));
94 return *this;
95 }
97
99
103 inline const CrossRegionDataGuardConfiguration& GetCrossRegionDataGuard() const { return m_crossRegionDataGuard; }
104 inline bool CrossRegionDataGuardHasBeenSet() const { return m_crossRegionDataGuardHasBeenSet; }
105 template <typename CrossRegionDataGuardT = CrossRegionDataGuardConfiguration>
106 void SetCrossRegionDataGuard(CrossRegionDataGuardT&& value) {
107 m_crossRegionDataGuardHasBeenSet = true;
108 m_crossRegionDataGuard = std::forward<CrossRegionDataGuardT>(value);
109 }
110 template <typename CrossRegionDataGuardT = CrossRegionDataGuardConfiguration>
111 SourceConfiguration& WithCrossRegionDataGuard(CrossRegionDataGuardT&& value) {
112 SetCrossRegionDataGuard(std::forward<CrossRegionDataGuardT>(value));
113 return *this;
114 }
116
118
122 inline const CrossRegionDisasterRecoveryConfiguration& GetCrossRegionDisasterRecovery() const { return m_crossRegionDisasterRecovery; }
123 inline bool CrossRegionDisasterRecoveryHasBeenSet() const { return m_crossRegionDisasterRecoveryHasBeenSet; }
124 template <typename CrossRegionDisasterRecoveryT = CrossRegionDisasterRecoveryConfiguration>
125 void SetCrossRegionDisasterRecovery(CrossRegionDisasterRecoveryT&& value) {
126 m_crossRegionDisasterRecoveryHasBeenSet = true;
127 m_crossRegionDisasterRecovery = std::forward<CrossRegionDisasterRecoveryT>(value);
128 }
129 template <typename CrossRegionDisasterRecoveryT = CrossRegionDisasterRecoveryConfiguration>
130 SourceConfiguration& WithCrossRegionDisasterRecovery(CrossRegionDisasterRecoveryT&& value) {
131 SetCrossRegionDisasterRecovery(std::forward<CrossRegionDisasterRecoveryT>(value));
132 return *this;
133 }
135
137
141 inline const CloneToRefreshableConfiguration& GetCloneToRefreshable() const { return m_cloneToRefreshable; }
142 inline bool CloneToRefreshableHasBeenSet() const { return m_cloneToRefreshableHasBeenSet; }
143 template <typename CloneToRefreshableT = CloneToRefreshableConfiguration>
144 void SetCloneToRefreshable(CloneToRefreshableT&& value) {
145 m_cloneToRefreshableHasBeenSet = true;
146 m_cloneToRefreshable = std::forward<CloneToRefreshableT>(value);
147 }
148 template <typename CloneToRefreshableT = CloneToRefreshableConfiguration>
149 SourceConfiguration& WithCloneToRefreshable(CloneToRefreshableT&& value) {
150 SetCloneToRefreshable(std::forward<CloneToRefreshableT>(value));
151 return *this;
152 }
154 private:
155 DatabaseCloneConfiguration m_databaseClone;
156
157 RestoreFromBackupConfiguration m_restoreFromBackup;
158
159 PointInTimeRestoreConfiguration m_pointInTimeRestore;
160
161 CrossRegionDataGuardConfiguration m_crossRegionDataGuard;
162
163 CrossRegionDisasterRecoveryConfiguration m_crossRegionDisasterRecovery;
164
165 CloneToRefreshableConfiguration m_cloneToRefreshable;
166 bool m_databaseCloneHasBeenSet = false;
167 bool m_restoreFromBackupHasBeenSet = false;
168 bool m_pointInTimeRestoreHasBeenSet = false;
169 bool m_crossRegionDataGuardHasBeenSet = false;
170 bool m_crossRegionDisasterRecoveryHasBeenSet = false;
171 bool m_cloneToRefreshableHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace odb
176} // namespace Aws
const DatabaseCloneConfiguration & GetDatabaseClone() const
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
SourceConfiguration & WithRestoreFromBackup(RestoreFromBackupT &&value)
const CrossRegionDataGuardConfiguration & GetCrossRegionDataGuard() const
void SetCloneToRefreshable(CloneToRefreshableT &&value)
AWS_ODB_API SourceConfiguration()=default
AWS_ODB_API SourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
SourceConfiguration & WithCrossRegionDataGuard(CrossRegionDataGuardT &&value)
AWS_ODB_API SourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceConfiguration & WithCloneToRefreshable(CloneToRefreshableT &&value)
SourceConfiguration & WithDatabaseClone(DatabaseCloneT &&value)
const PointInTimeRestoreConfiguration & GetPointInTimeRestore() const
const RestoreFromBackupConfiguration & GetRestoreFromBackup() const
const CloneToRefreshableConfiguration & GetCloneToRefreshable() const
void SetPointInTimeRestore(PointInTimeRestoreT &&value)
SourceConfiguration & WithCrossRegionDisasterRecovery(CrossRegionDisasterRecoveryT &&value)
SourceConfiguration & WithPointInTimeRestore(PointInTimeRestoreT &&value)
void SetCrossRegionDataGuard(CrossRegionDataGuardT &&value)
void SetCrossRegionDisasterRecovery(CrossRegionDisasterRecoveryT &&value)
const CrossRegionDisasterRecoveryConfiguration & GetCrossRegionDisasterRecovery() const
void SetDatabaseClone(DatabaseCloneT &&value)
void SetRestoreFromBackup(RestoreFromBackupT &&value)
Aws::Utils::Json::JsonValue JsonValue