AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SourceProperties.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/Disk.h>
12#include <aws/drs/model/IdentificationHints.h>
13#include <aws/drs/model/NetworkInterface.h>
14#include <aws/drs/model/OS.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 SourceProperties() = 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 SourceProperties& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
53 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetRecommendedInstanceType() const { return m_recommendedInstanceType; }
64 inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; }
65 template <typename RecommendedInstanceTypeT = Aws::String>
66 void SetRecommendedInstanceType(RecommendedInstanceTypeT&& value) {
67 m_recommendedInstanceTypeHasBeenSet = true;
68 m_recommendedInstanceType = std::forward<RecommendedInstanceTypeT>(value);
69 }
70 template <typename RecommendedInstanceTypeT = Aws::String>
71 SourceProperties& WithRecommendedInstanceType(RecommendedInstanceTypeT&& value) {
72 SetRecommendedInstanceType(std::forward<RecommendedInstanceTypeT>(value));
73 return *this;
74 }
76
78
81 inline const IdentificationHints& GetIdentificationHints() const { return m_identificationHints; }
82 inline bool IdentificationHintsHasBeenSet() const { return m_identificationHintsHasBeenSet; }
83 template <typename IdentificationHintsT = IdentificationHints>
84 void SetIdentificationHints(IdentificationHintsT&& value) {
85 m_identificationHintsHasBeenSet = true;
86 m_identificationHints = std::forward<IdentificationHintsT>(value);
87 }
88 template <typename IdentificationHintsT = IdentificationHints>
89 SourceProperties& WithIdentificationHints(IdentificationHintsT&& value) {
90 SetIdentificationHints(std::forward<IdentificationHintsT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
100 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
101 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
102 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
103 m_networkInterfacesHasBeenSet = true;
104 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
105 }
106 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
107 SourceProperties& WithNetworkInterfaces(NetworkInterfacesT&& value) {
108 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
109 return *this;
110 }
111 template <typename NetworkInterfacesT = NetworkInterface>
112 SourceProperties& AddNetworkInterfaces(NetworkInterfacesT&& value) {
113 m_networkInterfacesHasBeenSet = true;
114 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<Disk>& GetDisks() const { return m_disks; }
124 inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
125 template <typename DisksT = Aws::Vector<Disk>>
126 void SetDisks(DisksT&& value) {
127 m_disksHasBeenSet = true;
128 m_disks = std::forward<DisksT>(value);
129 }
130 template <typename DisksT = Aws::Vector<Disk>>
131 SourceProperties& WithDisks(DisksT&& value) {
132 SetDisks(std::forward<DisksT>(value));
133 return *this;
134 }
135 template <typename DisksT = Disk>
136 SourceProperties& AddDisks(DisksT&& value) {
137 m_disksHasBeenSet = true;
138 m_disks.emplace_back(std::forward<DisksT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<CPU>& GetCpus() const { return m_cpus; }
148 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
149 template <typename CpusT = Aws::Vector<CPU>>
150 void SetCpus(CpusT&& value) {
151 m_cpusHasBeenSet = true;
152 m_cpus = std::forward<CpusT>(value);
153 }
154 template <typename CpusT = Aws::Vector<CPU>>
155 SourceProperties& WithCpus(CpusT&& value) {
156 SetCpus(std::forward<CpusT>(value));
157 return *this;
158 }
159 template <typename CpusT = CPU>
160 SourceProperties& AddCpus(CpusT&& value) {
161 m_cpusHasBeenSet = true;
162 m_cpus.emplace_back(std::forward<CpusT>(value));
163 return *this;
164 }
166
168
171 inline long long GetRamBytes() const { return m_ramBytes; }
172 inline bool RamBytesHasBeenSet() const { return m_ramBytesHasBeenSet; }
173 inline void SetRamBytes(long long value) {
174 m_ramBytesHasBeenSet = true;
175 m_ramBytes = value;
176 }
177 inline SourceProperties& WithRamBytes(long long value) {
178 SetRamBytes(value);
179 return *this;
180 }
182
184
187 inline const OS& GetOs() const { return m_os; }
188 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
189 template <typename OsT = OS>
190 void SetOs(OsT&& value) {
191 m_osHasBeenSet = true;
192 m_os = std::forward<OsT>(value);
193 }
194 template <typename OsT = OS>
195 SourceProperties& WithOs(OsT&& value) {
196 SetOs(std::forward<OsT>(value));
197 return *this;
198 }
200
202
205 inline bool GetSupportsNitroInstances() const { return m_supportsNitroInstances; }
206 inline bool SupportsNitroInstancesHasBeenSet() const { return m_supportsNitroInstancesHasBeenSet; }
207 inline void SetSupportsNitroInstances(bool value) {
208 m_supportsNitroInstancesHasBeenSet = true;
209 m_supportsNitroInstances = value;
210 }
213 return *this;
214 }
216 private:
217 Aws::String m_lastUpdatedDateTime;
218
219 Aws::String m_recommendedInstanceType;
220
221 IdentificationHints m_identificationHints;
222
223 Aws::Vector<NetworkInterface> m_networkInterfaces;
224
225 Aws::Vector<Disk> m_disks;
226
227 Aws::Vector<CPU> m_cpus;
228
229 long long m_ramBytes{0};
230
231 OS m_os;
232
233 bool m_supportsNitroInstances{false};
234 bool m_lastUpdatedDateTimeHasBeenSet = false;
235 bool m_recommendedInstanceTypeHasBeenSet = false;
236 bool m_identificationHintsHasBeenSet = false;
237 bool m_networkInterfacesHasBeenSet = false;
238 bool m_disksHasBeenSet = false;
239 bool m_cpusHasBeenSet = false;
240 bool m_ramBytesHasBeenSet = false;
241 bool m_osHasBeenSet = false;
242 bool m_supportsNitroInstancesHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace drs
247} // namespace Aws
SourceProperties & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
const IdentificationHints & GetIdentificationHints() const
AWS_DRS_API SourceProperties()=default
const Aws::Vector< Disk > & GetDisks() const
AWS_DRS_API SourceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceProperties & WithSupportsNitroInstances(bool value)
SourceProperties & AddNetworkInterfaces(NetworkInterfacesT &&value)
SourceProperties & AddDisks(DisksT &&value)
AWS_DRS_API SourceProperties(Aws::Utils::Json::JsonView jsonValue)
void SetRecommendedInstanceType(RecommendedInstanceTypeT &&value)
SourceProperties & WithRecommendedInstanceType(RecommendedInstanceTypeT &&value)
const Aws::Vector< CPU > & GetCpus() const
const Aws::String & GetRecommendedInstanceType() const
void SetIdentificationHints(IdentificationHintsT &&value)
SourceProperties & WithNetworkInterfaces(NetworkInterfacesT &&value)
SourceProperties & WithCpus(CpusT &&value)
SourceProperties & WithRamBytes(long long value)
SourceProperties & AddCpus(CpusT &&value)
SourceProperties & WithDisks(DisksT &&value)
SourceProperties & WithOs(OsT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
SourceProperties & WithIdentificationHints(IdentificationHintsT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLastUpdatedDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue