AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
DisasterRecoveryConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/odb/Odb_EXPORTS.h>
9#include <aws/odb/model/DisasterRecoveryType.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 DisasterRecoveryConfiguration() = default;
35
37
40 inline DisasterRecoveryType GetDisasterRecoveryType() const { return m_disasterRecoveryType; }
41 inline bool DisasterRecoveryTypeHasBeenSet() const { return m_disasterRecoveryTypeHasBeenSet; }
43 m_disasterRecoveryTypeHasBeenSet = true;
44 m_disasterRecoveryType = value;
45 }
48 return *this;
49 }
51
53
57 inline bool GetIsReplicateAutomaticBackups() const { return m_isReplicateAutomaticBackups; }
58 inline bool IsReplicateAutomaticBackupsHasBeenSet() const { return m_isReplicateAutomaticBackupsHasBeenSet; }
59 inline void SetIsReplicateAutomaticBackups(bool value) {
60 m_isReplicateAutomaticBackupsHasBeenSet = true;
61 m_isReplicateAutomaticBackups = value;
62 }
65 return *this;
66 }
68
70
73 inline bool GetIsSnapshotStandby() const { return m_isSnapshotStandby; }
74 inline bool IsSnapshotStandbyHasBeenSet() const { return m_isSnapshotStandbyHasBeenSet; }
75 inline void SetIsSnapshotStandby(bool value) {
76 m_isSnapshotStandbyHasBeenSet = true;
77 m_isSnapshotStandby = value;
78 }
81 return *this;
82 }
84
86
90 inline const Aws::Utils::DateTime& GetTimeSnapshotStandbyEnabledTill() const { return m_timeSnapshotStandbyEnabledTill; }
91 inline bool TimeSnapshotStandbyEnabledTillHasBeenSet() const { return m_timeSnapshotStandbyEnabledTillHasBeenSet; }
92 template <typename TimeSnapshotStandbyEnabledTillT = Aws::Utils::DateTime>
93 void SetTimeSnapshotStandbyEnabledTill(TimeSnapshotStandbyEnabledTillT&& value) {
94 m_timeSnapshotStandbyEnabledTillHasBeenSet = true;
95 m_timeSnapshotStandbyEnabledTill = std::forward<TimeSnapshotStandbyEnabledTillT>(value);
96 }
97 template <typename TimeSnapshotStandbyEnabledTillT = Aws::Utils::DateTime>
98 DisasterRecoveryConfiguration& WithTimeSnapshotStandbyEnabledTill(TimeSnapshotStandbyEnabledTillT&& value) {
99 SetTimeSnapshotStandbyEnabledTill(std::forward<TimeSnapshotStandbyEnabledTillT>(value));
100 return *this;
101 }
103 private:
105
106 bool m_isReplicateAutomaticBackups{false};
107
108 bool m_isSnapshotStandby{false};
109
110 Aws::Utils::DateTime m_timeSnapshotStandbyEnabledTill{};
111 bool m_disasterRecoveryTypeHasBeenSet = false;
112 bool m_isReplicateAutomaticBackupsHasBeenSet = false;
113 bool m_isSnapshotStandbyHasBeenSet = false;
114 bool m_timeSnapshotStandbyEnabledTillHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace odb
119} // namespace Aws
DisasterRecoveryConfiguration & WithIsSnapshotStandby(bool value)
DisasterRecoveryConfiguration & WithIsReplicateAutomaticBackups(bool value)
DisasterRecoveryConfiguration & WithTimeSnapshotStandbyEnabledTill(TimeSnapshotStandbyEnabledTillT &&value)
void SetTimeSnapshotStandbyEnabledTill(TimeSnapshotStandbyEnabledTillT &&value)
AWS_ODB_API DisasterRecoveryConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ODB_API DisasterRecoveryConfiguration(Aws::Utils::Json::JsonView jsonValue)
DisasterRecoveryConfiguration & WithDisasterRecoveryType(DisasterRecoveryType value)
const Aws::Utils::DateTime & GetTimeSnapshotStandbyEnabledTill() const
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue