AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
RecoveryInstanceProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/CPU.h>
11#include <aws/drs/model/IdentificationHints.h>
12#include <aws/drs/model/NetworkInterface.h>
13#include <aws/drs/model/OS.h>
14#include <aws/drs/model/RecoveryInstanceDisk.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace drs {
26namespace Model {
27
34 public:
35 AWS_DRS_API RecoveryInstanceProperties() = default;
39
41
44 inline const Aws::String& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
45 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
46 template <typename LastUpdatedDateTimeT = Aws::String>
47 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
48 m_lastUpdatedDateTimeHasBeenSet = true;
49 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
50 }
51 template <typename LastUpdatedDateTimeT = Aws::String>
52 RecoveryInstanceProperties& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
53 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
54 return *this;
55 }
57
59
62 inline const IdentificationHints& GetIdentificationHints() const { return m_identificationHints; }
63 inline bool IdentificationHintsHasBeenSet() const { return m_identificationHintsHasBeenSet; }
64 template <typename IdentificationHintsT = IdentificationHints>
65 void SetIdentificationHints(IdentificationHintsT&& value) {
66 m_identificationHintsHasBeenSet = true;
67 m_identificationHints = std::forward<IdentificationHintsT>(value);
68 }
69 template <typename IdentificationHintsT = IdentificationHints>
70 RecoveryInstanceProperties& WithIdentificationHints(IdentificationHintsT&& value) {
71 SetIdentificationHints(std::forward<IdentificationHintsT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
81 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
82 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
83 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
84 m_networkInterfacesHasBeenSet = true;
85 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
86 }
87 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
89 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
90 return *this;
91 }
92 template <typename NetworkInterfacesT = NetworkInterface>
93 RecoveryInstanceProperties& AddNetworkInterfaces(NetworkInterfacesT&& value) {
94 m_networkInterfacesHasBeenSet = true;
95 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<RecoveryInstanceDisk>& GetDisks() const { return m_disks; }
105 inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
106 template <typename DisksT = Aws::Vector<RecoveryInstanceDisk>>
107 void SetDisks(DisksT&& value) {
108 m_disksHasBeenSet = true;
109 m_disks = std::forward<DisksT>(value);
110 }
111 template <typename DisksT = Aws::Vector<RecoveryInstanceDisk>>
113 SetDisks(std::forward<DisksT>(value));
114 return *this;
115 }
116 template <typename DisksT = RecoveryInstanceDisk>
118 m_disksHasBeenSet = true;
119 m_disks.emplace_back(std::forward<DisksT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<CPU>& GetCpus() const { return m_cpus; }
129 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
130 template <typename CpusT = Aws::Vector<CPU>>
131 void SetCpus(CpusT&& value) {
132 m_cpusHasBeenSet = true;
133 m_cpus = std::forward<CpusT>(value);
134 }
135 template <typename CpusT = Aws::Vector<CPU>>
137 SetCpus(std::forward<CpusT>(value));
138 return *this;
139 }
140 template <typename CpusT = CPU>
142 m_cpusHasBeenSet = true;
143 m_cpus.emplace_back(std::forward<CpusT>(value));
144 return *this;
145 }
147
149
152 inline long long GetRamBytes() const { return m_ramBytes; }
153 inline bool RamBytesHasBeenSet() const { return m_ramBytesHasBeenSet; }
154 inline void SetRamBytes(long long value) {
155 m_ramBytesHasBeenSet = true;
156 m_ramBytes = value;
157 }
158 inline RecoveryInstanceProperties& WithRamBytes(long long value) {
159 SetRamBytes(value);
160 return *this;
161 }
163
165
168 inline const OS& GetOs() const { return m_os; }
169 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
170 template <typename OsT = OS>
171 void SetOs(OsT&& value) {
172 m_osHasBeenSet = true;
173 m_os = std::forward<OsT>(value);
174 }
175 template <typename OsT = OS>
177 SetOs(std::forward<OsT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_lastUpdatedDateTime;
183
184 IdentificationHints m_identificationHints;
185
186 Aws::Vector<NetworkInterface> m_networkInterfaces;
187
189
190 Aws::Vector<CPU> m_cpus;
191
192 long long m_ramBytes{0};
193
194 OS m_os;
195 bool m_lastUpdatedDateTimeHasBeenSet = false;
196 bool m_identificationHintsHasBeenSet = false;
197 bool m_networkInterfacesHasBeenSet = false;
198 bool m_disksHasBeenSet = false;
199 bool m_cpusHasBeenSet = false;
200 bool m_ramBytesHasBeenSet = false;
201 bool m_osHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace drs
206} // namespace Aws
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
RecoveryInstanceProperties & WithCpus(CpusT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const IdentificationHints & GetIdentificationHints() const
RecoveryInstanceProperties & AddDisks(DisksT &&value)
const Aws::Vector< RecoveryInstanceDisk > & GetDisks() const
void SetNetworkInterfaces(NetworkInterfacesT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryInstanceProperties & WithIdentificationHints(IdentificationHintsT &&value)
RecoveryInstanceProperties & AddNetworkInterfaces(NetworkInterfacesT &&value)
AWS_DRS_API RecoveryInstanceProperties(Aws::Utils::Json::JsonView jsonValue)
RecoveryInstanceProperties & WithDisks(DisksT &&value)
RecoveryInstanceProperties & WithOs(OsT &&value)
AWS_DRS_API RecoveryInstanceProperties()=default
RecoveryInstanceProperties & AddCpus(CpusT &&value)
void SetIdentificationHints(IdentificationHintsT &&value)
RecoveryInstanceProperties & WithRamBytes(long long value)
RecoveryInstanceProperties & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
RecoveryInstanceProperties & WithNetworkInterfaces(NetworkInterfacesT &&value)
AWS_DRS_API RecoveryInstanceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue