AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
44
45
47
50 inline const Aws::Vector<CPU>& GetCpus() const{ return m_cpus; }
51 inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; }
52 inline void SetCpus(const Aws::Vector<CPU>& value) { m_cpusHasBeenSet = true; m_cpus = value; }
53 inline void SetCpus(Aws::Vector<CPU>&& value) { m_cpusHasBeenSet = true; m_cpus = std::move(value); }
54 inline SourceProperties& WithCpus(const Aws::Vector<CPU>& value) { SetCpus(value); return *this;}
55 inline SourceProperties& WithCpus(Aws::Vector<CPU>&& value) { SetCpus(std::move(value)); return *this;}
56 inline SourceProperties& AddCpus(const CPU& value) { m_cpusHasBeenSet = true; m_cpus.push_back(value); return *this; }
57 inline SourceProperties& AddCpus(CPU&& value) { m_cpusHasBeenSet = true; m_cpus.push_back(std::move(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 inline void SetDisks(const Aws::Vector<Disk>& value) { m_disksHasBeenSet = true; m_disks = value; }
67 inline void SetDisks(Aws::Vector<Disk>&& value) { m_disksHasBeenSet = true; m_disks = std::move(value); }
68 inline SourceProperties& WithDisks(const Aws::Vector<Disk>& value) { SetDisks(value); return *this;}
69 inline SourceProperties& WithDisks(Aws::Vector<Disk>&& value) { SetDisks(std::move(value)); return *this;}
70 inline SourceProperties& AddDisks(const Disk& value) { m_disksHasBeenSet = true; m_disks.push_back(value); return *this; }
71 inline SourceProperties& AddDisks(Disk&& value) { m_disksHasBeenSet = true; m_disks.push_back(std::move(value)); return *this; }
73
75
78 inline const IdentificationHints& GetIdentificationHints() const{ return m_identificationHints; }
79 inline bool IdentificationHintsHasBeenSet() const { return m_identificationHintsHasBeenSet; }
80 inline void SetIdentificationHints(const IdentificationHints& value) { m_identificationHintsHasBeenSet = true; m_identificationHints = value; }
81 inline void SetIdentificationHints(IdentificationHints&& value) { m_identificationHintsHasBeenSet = true; m_identificationHints = std::move(value); }
83 inline SourceProperties& WithIdentificationHints(IdentificationHints&& value) { SetIdentificationHints(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
91 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
92 inline void SetLastUpdatedDateTime(const Aws::String& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
93 inline void SetLastUpdatedDateTime(Aws::String&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
94 inline void SetLastUpdatedDateTime(const char* value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime.assign(value); }
95 inline SourceProperties& WithLastUpdatedDateTime(const Aws::String& value) { SetLastUpdatedDateTime(value); return *this;}
96 inline SourceProperties& WithLastUpdatedDateTime(Aws::String&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
97 inline SourceProperties& WithLastUpdatedDateTime(const char* value) { SetLastUpdatedDateTime(value); return *this;}
99
101
104 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
105 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
106 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
107 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
110 inline SourceProperties& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
111 inline SourceProperties& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
113
115
118 inline const OS& GetOs() const{ return m_os; }
119 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
120 inline void SetOs(const OS& value) { m_osHasBeenSet = true; m_os = value; }
121 inline void SetOs(OS&& value) { m_osHasBeenSet = true; m_os = std::move(value); }
122 inline SourceProperties& WithOs(const OS& value) { SetOs(value); return *this;}
123 inline SourceProperties& WithOs(OS&& value) { SetOs(std::move(value)); return *this;}
125
127
130 inline long long GetRamBytes() const{ return m_ramBytes; }
131 inline bool RamBytesHasBeenSet() const { return m_ramBytesHasBeenSet; }
132 inline void SetRamBytes(long long value) { m_ramBytesHasBeenSet = true; m_ramBytes = value; }
133 inline SourceProperties& WithRamBytes(long long value) { SetRamBytes(value); return *this;}
135
137
141 inline const Aws::String& GetRecommendedInstanceType() const{ return m_recommendedInstanceType; }
142 inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; }
143 inline void SetRecommendedInstanceType(const Aws::String& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = value; }
144 inline void SetRecommendedInstanceType(Aws::String&& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = std::move(value); }
145 inline void SetRecommendedInstanceType(const char* value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType.assign(value); }
147 inline SourceProperties& WithRecommendedInstanceType(Aws::String&& value) { SetRecommendedInstanceType(std::move(value)); return *this;}
148 inline SourceProperties& WithRecommendedInstanceType(const char* value) { SetRecommendedInstanceType(value); return *this;}
150
152
155 inline bool GetSupportsNitroInstances() const{ return m_supportsNitroInstances; }
156 inline bool SupportsNitroInstancesHasBeenSet() const { return m_supportsNitroInstancesHasBeenSet; }
157 inline void SetSupportsNitroInstances(bool value) { m_supportsNitroInstancesHasBeenSet = true; m_supportsNitroInstances = value; }
158 inline SourceProperties& WithSupportsNitroInstances(bool value) { SetSupportsNitroInstances(value); return *this;}
160 private:
161
162 Aws::Vector<CPU> m_cpus;
163 bool m_cpusHasBeenSet = false;
164
165 Aws::Vector<Disk> m_disks;
166 bool m_disksHasBeenSet = false;
167
168 IdentificationHints m_identificationHints;
169 bool m_identificationHintsHasBeenSet = false;
170
171 Aws::String m_lastUpdatedDateTime;
172 bool m_lastUpdatedDateTimeHasBeenSet = false;
173
174 Aws::Vector<NetworkInterface> m_networkInterfaces;
175 bool m_networkInterfacesHasBeenSet = false;
176
177 OS m_os;
178 bool m_osHasBeenSet = false;
179
180 long long m_ramBytes;
181 bool m_ramBytesHasBeenSet = false;
182
183 Aws::String m_recommendedInstanceType;
184 bool m_recommendedInstanceTypeHasBeenSet = false;
185
186 bool m_supportsNitroInstances;
187 bool m_supportsNitroInstancesHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace drs
192} // namespace Aws
SourceProperties & WithDisks(Aws::Vector< Disk > &&value)
SourceProperties & WithLastUpdatedDateTime(const Aws::String &value)
void SetDisks(Aws::Vector< Disk > &&value)
SourceProperties & WithLastUpdatedDateTime(Aws::String &&value)
void SetLastUpdatedDateTime(Aws::String &&value)
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
SourceProperties & WithRecommendedInstanceType(const char *value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
void SetCpus(const Aws::Vector< CPU > &value)
SourceProperties & WithLastUpdatedDateTime(const char *value)
void SetDisks(const Aws::Vector< Disk > &value)
const IdentificationHints & GetIdentificationHints() const
SourceProperties & WithCpus(Aws::Vector< CPU > &&value)
void SetCpus(Aws::Vector< CPU > &&value)
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
const Aws::Vector< Disk > & GetDisks() const
AWS_DRS_API SourceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceProperties & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
SourceProperties & WithIdentificationHints(IdentificationHints &&value)
SourceProperties & WithDisks(const Aws::Vector< Disk > &value)
SourceProperties & AddNetworkInterfaces(const NetworkInterface &value)
SourceProperties & WithSupportsNitroInstances(bool value)
SourceProperties & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
SourceProperties & WithRecommendedInstanceType(Aws::String &&value)
AWS_DRS_API SourceProperties(Aws::Utils::Json::JsonView jsonValue)
SourceProperties & WithCpus(const Aws::Vector< CPU > &value)
SourceProperties & AddDisks(Disk &&value)
SourceProperties & AddDisks(const Disk &value)
const Aws::Vector< CPU > & GetCpus() const
void SetLastUpdatedDateTime(const char *value)
void SetIdentificationHints(const IdentificationHints &value)
SourceProperties & AddCpus(CPU &&value)
SourceProperties & WithOs(const OS &value)
const Aws::String & GetRecommendedInstanceType() const
SourceProperties & WithRecommendedInstanceType(const Aws::String &value)
SourceProperties & WithIdentificationHints(const IdentificationHints &value)
void SetIdentificationHints(IdentificationHints &&value)
SourceProperties & AddNetworkInterfaces(NetworkInterface &&value)
SourceProperties & AddCpus(const CPU &value)
SourceProperties & WithOs(OS &&value)
void SetLastUpdatedDateTime(const Aws::String &value)
SourceProperties & WithRamBytes(long long value)
void SetRecommendedInstanceType(Aws::String &&value)
void SetRecommendedInstanceType(const Aws::String &value)
void SetRecommendedInstanceType(const char *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