AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecoveryInstanceProperties.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/RecoveryInstanceDisk.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 RecoveryInstanceProperties() = 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 RecoveryInstanceProperties& WithCpus(CpusT&& value) { SetCpus(std::forward<CpusT>(value)); return *this;}
56 template<typename CpusT = CPU>
57 RecoveryInstanceProperties& AddCpus(CpusT&& value) { m_cpusHasBeenSet = true; m_cpus.emplace_back(std::forward<CpusT>(value)); return *this; }
59
61
64 inline const Aws::Vector<RecoveryInstanceDisk>& GetDisks() const { return m_disks; }
65 inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
66 template<typename DisksT = Aws::Vector<RecoveryInstanceDisk>>
67 void SetDisks(DisksT&& value) { m_disksHasBeenSet = true; m_disks = std::forward<DisksT>(value); }
68 template<typename DisksT = Aws::Vector<RecoveryInstanceDisk>>
69 RecoveryInstanceProperties& WithDisks(DisksT&& value) { SetDisks(std::forward<DisksT>(value)); return *this;}
70 template<typename DisksT = RecoveryInstanceDisk>
71 RecoveryInstanceProperties& 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 RecoveryInstanceProperties& 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 RecoveryInstanceProperties& 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 RecoveryInstanceProperties& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
108 template<typename NetworkInterfacesT = NetworkInterface>
109 RecoveryInstanceProperties& 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 RecoveryInstanceProperties& 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 RecoveryInstanceProperties& WithRamBytes(long long value) { SetRamBytes(value); return *this;}
133 private:
134
135 Aws::Vector<CPU> m_cpus;
136 bool m_cpusHasBeenSet = false;
137
139 bool m_disksHasBeenSet = false;
140
141 IdentificationHints m_identificationHints;
142 bool m_identificationHintsHasBeenSet = false;
143
144 Aws::String m_lastUpdatedDateTime;
145 bool m_lastUpdatedDateTimeHasBeenSet = false;
146
147 Aws::Vector<NetworkInterface> m_networkInterfaces;
148 bool m_networkInterfacesHasBeenSet = false;
149
150 OS m_os;
151 bool m_osHasBeenSet = false;
152
153 long long m_ramBytes{0};
154 bool m_ramBytesHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace drs
159} // 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
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