AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceProperties.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/drs/model/IdentificationHints.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/drs/model/OS.h>
12#include <aws/drs/model/CPU.h>
13#include <aws/drs/model/Disk.h>
14#include <aws/drs/model/NetworkInterface.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace drs
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DRS_API SourceProperties() = default;
44
45
47
50 inline const Aws::Vector<CPU>& GetCpus() const { return m_cpus; }
51 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
52 template<typename CpusT = Aws::Vector<CPU>>
53 void SetCpus(CpusT&& value) { m_cpusHasBeenSet = true; m_cpus = std::forward<CpusT>(value); }
54 template<typename CpusT = Aws::Vector<CPU>>
55 SourceProperties& WithCpus(CpusT&& value) { SetCpus(std::forward<CpusT>(value)); return *this;}
56 template<typename CpusT = CPU>
57 SourceProperties& AddCpus(CpusT&& value) { m_cpusHasBeenSet = true; m_cpus.emplace_back(std::forward<CpusT>(value)); return *this; }
59
61
64 inline const Aws::Vector<Disk>& GetDisks() const { return m_disks; }
65 inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
66 template<typename DisksT = Aws::Vector<Disk>>
67 void SetDisks(DisksT&& value) { m_disksHasBeenSet = true; m_disks = std::forward<DisksT>(value); }
68 template<typename DisksT = Aws::Vector<Disk>>
69 SourceProperties& WithDisks(DisksT&& value) { SetDisks(std::forward<DisksT>(value)); return *this;}
70 template<typename DisksT = Disk>
71 SourceProperties& AddDisks(DisksT&& value) { m_disksHasBeenSet = true; m_disks.emplace_back(std::forward<DisksT>(value)); return *this; }
73
75
78 inline const IdentificationHints& GetIdentificationHints() const { return m_identificationHints; }
79 inline bool IdentificationHintsHasBeenSet() const { return m_identificationHintsHasBeenSet; }
80 template<typename IdentificationHintsT = IdentificationHints>
81 void SetIdentificationHints(IdentificationHintsT&& value) { m_identificationHintsHasBeenSet = true; m_identificationHints = std::forward<IdentificationHintsT>(value); }
82 template<typename IdentificationHintsT = IdentificationHints>
83 SourceProperties& WithIdentificationHints(IdentificationHintsT&& value) { SetIdentificationHints(std::forward<IdentificationHintsT>(value)); return *this;}
85
87
90 inline const Aws::String& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
91 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
92 template<typename LastUpdatedDateTimeT = Aws::String>
93 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
94 template<typename LastUpdatedDateTimeT = Aws::String>
95 SourceProperties& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
97
99
102 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
103 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
104 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
105 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
106 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
107 SourceProperties& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
108 template<typename NetworkInterfacesT = NetworkInterface>
109 SourceProperties& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
111
113
116 inline const OS& GetOs() const { return m_os; }
117 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
118 template<typename OsT = OS>
119 void SetOs(OsT&& value) { m_osHasBeenSet = true; m_os = std::forward<OsT>(value); }
120 template<typename OsT = OS>
121 SourceProperties& WithOs(OsT&& value) { SetOs(std::forward<OsT>(value)); return *this;}
123
125
128 inline long long GetRamBytes() const { return m_ramBytes; }
129 inline bool RamBytesHasBeenSet() const { return m_ramBytesHasBeenSet; }
130 inline void SetRamBytes(long long value) { m_ramBytesHasBeenSet = true; m_ramBytes = value; }
131 inline SourceProperties& WithRamBytes(long long value) { SetRamBytes(value); return *this;}
133
135
139 inline const Aws::String& GetRecommendedInstanceType() const { return m_recommendedInstanceType; }
140 inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; }
141 template<typename RecommendedInstanceTypeT = Aws::String>
142 void SetRecommendedInstanceType(RecommendedInstanceTypeT&& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = std::forward<RecommendedInstanceTypeT>(value); }
143 template<typename RecommendedInstanceTypeT = Aws::String>
144 SourceProperties& WithRecommendedInstanceType(RecommendedInstanceTypeT&& value) { SetRecommendedInstanceType(std::forward<RecommendedInstanceTypeT>(value)); return *this;}
146
148
151 inline bool GetSupportsNitroInstances() const { return m_supportsNitroInstances; }
152 inline bool SupportsNitroInstancesHasBeenSet() const { return m_supportsNitroInstancesHasBeenSet; }
153 inline void SetSupportsNitroInstances(bool value) { m_supportsNitroInstancesHasBeenSet = true; m_supportsNitroInstances = value; }
154 inline SourceProperties& WithSupportsNitroInstances(bool value) { SetSupportsNitroInstances(value); return *this;}
156 private:
157
158 Aws::Vector<CPU> m_cpus;
159 bool m_cpusHasBeenSet = false;
160
161 Aws::Vector<Disk> m_disks;
162 bool m_disksHasBeenSet = false;
163
164 IdentificationHints m_identificationHints;
165 bool m_identificationHintsHasBeenSet = false;
166
167 Aws::String m_lastUpdatedDateTime;
168 bool m_lastUpdatedDateTimeHasBeenSet = false;
169
170 Aws::Vector<NetworkInterface> m_networkInterfaces;
171 bool m_networkInterfacesHasBeenSet = false;
172
173 OS m_os;
174 bool m_osHasBeenSet = false;
175
176 long long m_ramBytes{0};
177 bool m_ramBytesHasBeenSet = false;
178
179 Aws::String m_recommendedInstanceType;
180 bool m_recommendedInstanceTypeHasBeenSet = false;
181
182 bool m_supportsNitroInstances{false};
183 bool m_supportsNitroInstancesHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace drs
188} // 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