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/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/model/IdentificationHints.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mgn/model/OS.h>
12#include <aws/mgn/model/CPU.h>
13#include <aws/mgn/model/Disk.h>
14#include <aws/mgn/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 mgn
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_MGN_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
138 inline const Aws::String& GetRecommendedInstanceType() const { return m_recommendedInstanceType; }
139 inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; }
140 template<typename RecommendedInstanceTypeT = Aws::String>
141 void SetRecommendedInstanceType(RecommendedInstanceTypeT&& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = std::forward<RecommendedInstanceTypeT>(value); }
142 template<typename RecommendedInstanceTypeT = Aws::String>
143 SourceProperties& WithRecommendedInstanceType(RecommendedInstanceTypeT&& value) { SetRecommendedInstanceType(std::forward<RecommendedInstanceTypeT>(value)); return *this;}
145 private:
146
147 Aws::Vector<CPU> m_cpus;
148 bool m_cpusHasBeenSet = false;
149
150 Aws::Vector<Disk> m_disks;
151 bool m_disksHasBeenSet = false;
152
153 IdentificationHints m_identificationHints;
154 bool m_identificationHintsHasBeenSet = false;
155
156 Aws::String m_lastUpdatedDateTime;
157 bool m_lastUpdatedDateTimeHasBeenSet = false;
158
159 Aws::Vector<NetworkInterface> m_networkInterfaces;
160 bool m_networkInterfacesHasBeenSet = false;
161
162 OS m_os;
163 bool m_osHasBeenSet = false;
164
165 long long m_ramBytes{0};
166 bool m_ramBytesHasBeenSet = false;
167
168 Aws::String m_recommendedInstanceType;
169 bool m_recommendedInstanceTypeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace mgn
174} // namespace Aws
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
SourceProperties & WithOs(OsT &&value)
const Aws::String & GetRecommendedInstanceType() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
SourceProperties & WithRamBytes(long long value)
void SetIdentificationHints(IdentificationHintsT &&value)
SourceProperties & WithRecommendedInstanceType(RecommendedInstanceTypeT &&value)
SourceProperties & WithDisks(DisksT &&value)
const IdentificationHints & GetIdentificationHints() const
SourceProperties & WithNetworkInterfaces(NetworkInterfacesT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
AWS_MGN_API SourceProperties(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Disk > & GetDisks() const
SourceProperties & AddDisks(DisksT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
SourceProperties & WithCpus(CpusT &&value)
AWS_MGN_API SourceProperties()=default
const Aws::String & GetLastUpdatedDateTime() const
SourceProperties & WithIdentificationHints(IdentificationHintsT &&value)
AWS_MGN_API SourceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CPU > & GetCpus() const
SourceProperties & AddCpus(CpusT &&value)
void SetRecommendedInstanceType(RecommendedInstanceTypeT &&value)
SourceProperties & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
SourceProperties & AddNetworkInterfaces(NetworkInterfacesT &&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