AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EngineVersion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11#include <aws/dms/model/ReleaseStatusValues.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService {
23namespace Model {
24
32 public:
33 AWS_DATABASEMIGRATIONSERVICE_API EngineVersion() = default;
34 AWS_DATABASEMIGRATIONSERVICE_API EngineVersion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API EngineVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetVersion() const { return m_version; }
43 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
44 template <typename VersionT = Aws::String>
45 void SetVersion(VersionT&& value) {
46 m_versionHasBeenSet = true;
47 m_version = std::forward<VersionT>(value);
48 }
49 template <typename VersionT = Aws::String>
50 EngineVersion& WithVersion(VersionT&& value) {
51 SetVersion(std::forward<VersionT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetLifecycle() const { return m_lifecycle; }
63 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
64 template <typename LifecycleT = Aws::String>
65 void SetLifecycle(LifecycleT&& value) {
66 m_lifecycleHasBeenSet = true;
67 m_lifecycle = std::forward<LifecycleT>(value);
68 }
69 template <typename LifecycleT = Aws::String>
70 EngineVersion& WithLifecycle(LifecycleT&& value) {
71 SetLifecycle(std::forward<LifecycleT>(value));
72 return *this;
73 }
75
77
80 inline ReleaseStatusValues GetReleaseStatus() const { return m_releaseStatus; }
81 inline bool ReleaseStatusHasBeenSet() const { return m_releaseStatusHasBeenSet; }
83 m_releaseStatusHasBeenSet = true;
84 m_releaseStatus = value;
85 }
87 SetReleaseStatus(value);
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetLaunchDate() const { return m_launchDate; }
97 inline bool LaunchDateHasBeenSet() const { return m_launchDateHasBeenSet; }
98 template <typename LaunchDateT = Aws::Utils::DateTime>
99 void SetLaunchDate(LaunchDateT&& value) {
100 m_launchDateHasBeenSet = true;
101 m_launchDate = std::forward<LaunchDateT>(value);
102 }
103 template <typename LaunchDateT = Aws::Utils::DateTime>
104 EngineVersion& WithLaunchDate(LaunchDateT&& value) {
105 SetLaunchDate(std::forward<LaunchDateT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Utils::DateTime& GetAutoUpgradeDate() const { return m_autoUpgradeDate; }
117 inline bool AutoUpgradeDateHasBeenSet() const { return m_autoUpgradeDateHasBeenSet; }
118 template <typename AutoUpgradeDateT = Aws::Utils::DateTime>
119 void SetAutoUpgradeDate(AutoUpgradeDateT&& value) {
120 m_autoUpgradeDateHasBeenSet = true;
121 m_autoUpgradeDate = std::forward<AutoUpgradeDateT>(value);
122 }
123 template <typename AutoUpgradeDateT = Aws::Utils::DateTime>
124 EngineVersion& WithAutoUpgradeDate(AutoUpgradeDateT&& value) {
125 SetAutoUpgradeDate(std::forward<AutoUpgradeDateT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Utils::DateTime& GetDeprecationDate() const { return m_deprecationDate; }
136 inline bool DeprecationDateHasBeenSet() const { return m_deprecationDateHasBeenSet; }
137 template <typename DeprecationDateT = Aws::Utils::DateTime>
138 void SetDeprecationDate(DeprecationDateT&& value) {
139 m_deprecationDateHasBeenSet = true;
140 m_deprecationDate = std::forward<DeprecationDateT>(value);
141 }
142 template <typename DeprecationDateT = Aws::Utils::DateTime>
143 EngineVersion& WithDeprecationDate(DeprecationDateT&& value) {
144 SetDeprecationDate(std::forward<DeprecationDateT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Utils::DateTime& GetForceUpgradeDate() const { return m_forceUpgradeDate; }
155 inline bool ForceUpgradeDateHasBeenSet() const { return m_forceUpgradeDateHasBeenSet; }
156 template <typename ForceUpgradeDateT = Aws::Utils::DateTime>
157 void SetForceUpgradeDate(ForceUpgradeDateT&& value) {
158 m_forceUpgradeDateHasBeenSet = true;
159 m_forceUpgradeDate = std::forward<ForceUpgradeDateT>(value);
160 }
161 template <typename ForceUpgradeDateT = Aws::Utils::DateTime>
162 EngineVersion& WithForceUpgradeDate(ForceUpgradeDateT&& value) {
163 SetForceUpgradeDate(std::forward<ForceUpgradeDateT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Aws::String>& GetAvailableUpgrades() const { return m_availableUpgrades; }
173 inline bool AvailableUpgradesHasBeenSet() const { return m_availableUpgradesHasBeenSet; }
174 template <typename AvailableUpgradesT = Aws::Vector<Aws::String>>
175 void SetAvailableUpgrades(AvailableUpgradesT&& value) {
176 m_availableUpgradesHasBeenSet = true;
177 m_availableUpgrades = std::forward<AvailableUpgradesT>(value);
178 }
179 template <typename AvailableUpgradesT = Aws::Vector<Aws::String>>
180 EngineVersion& WithAvailableUpgrades(AvailableUpgradesT&& value) {
181 SetAvailableUpgrades(std::forward<AvailableUpgradesT>(value));
182 return *this;
183 }
184 template <typename AvailableUpgradesT = Aws::String>
185 EngineVersion& AddAvailableUpgrades(AvailableUpgradesT&& value) {
186 m_availableUpgradesHasBeenSet = true;
187 m_availableUpgrades.emplace_back(std::forward<AvailableUpgradesT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_version;
193
194 Aws::String m_lifecycle;
195
197
198 Aws::Utils::DateTime m_launchDate{};
199
200 Aws::Utils::DateTime m_autoUpgradeDate{};
201
202 Aws::Utils::DateTime m_deprecationDate{};
203
204 Aws::Utils::DateTime m_forceUpgradeDate{};
205
206 Aws::Vector<Aws::String> m_availableUpgrades;
207 bool m_versionHasBeenSet = false;
208 bool m_lifecycleHasBeenSet = false;
209 bool m_releaseStatusHasBeenSet = false;
210 bool m_launchDateHasBeenSet = false;
211 bool m_autoUpgradeDateHasBeenSet = false;
212 bool m_deprecationDateHasBeenSet = false;
213 bool m_forceUpgradeDateHasBeenSet = false;
214 bool m_availableUpgradesHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace DatabaseMigrationService
219} // namespace Aws
EngineVersion & WithDeprecationDate(DeprecationDateT &&value)
void SetReleaseStatus(ReleaseStatusValues value)
EngineVersion & AddAvailableUpgrades(AvailableUpgradesT &&value)
EngineVersion & WithVersion(VersionT &&value)
EngineVersion & WithReleaseStatus(ReleaseStatusValues value)
EngineVersion & WithForceUpgradeDate(ForceUpgradeDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EngineVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAutoUpgradeDate(AutoUpgradeDateT &&value)
void SetDeprecationDate(DeprecationDateT &&value)
void SetAvailableUpgrades(AvailableUpgradesT &&value)
const Aws::Utils::DateTime & GetAutoUpgradeDate() const
EngineVersion & WithAvailableUpgrades(AvailableUpgradesT &&value)
const Aws::Utils::DateTime & GetLaunchDate() const
const Aws::Utils::DateTime & GetForceUpgradeDate() const
EngineVersion & WithLifecycle(LifecycleT &&value)
EngineVersion & WithAutoUpgradeDate(AutoUpgradeDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API EngineVersion()=default
const Aws::Utils::DateTime & GetDeprecationDate() const
AWS_DATABASEMIGRATIONSERVICE_API EngineVersion(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAvailableUpgrades() const
void SetForceUpgradeDate(ForceUpgradeDateT &&value)
EngineVersion & WithLaunchDate(LaunchDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue