AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 RecoveryInstanceProperties& WithCpus(const Aws::Vector<CPU>& value) { SetCpus(value); return *this;}
55 inline RecoveryInstanceProperties& WithCpus(Aws::Vector<CPU>&& value) { SetCpus(std::move(value)); return *this;}
56 inline RecoveryInstanceProperties& AddCpus(const CPU& value) { m_cpusHasBeenSet = true; m_cpus.push_back(value); return *this; }
57 inline RecoveryInstanceProperties& AddCpus(CPU&& value) { m_cpusHasBeenSet = true; m_cpus.push_back(std::move(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 inline void SetDisks(const Aws::Vector<RecoveryInstanceDisk>& value) { m_disksHasBeenSet = true; m_disks = value; }
67 inline void SetDisks(Aws::Vector<RecoveryInstanceDisk>&& value) { m_disksHasBeenSet = true; m_disks = std::move(value); }
69 inline RecoveryInstanceProperties& WithDisks(Aws::Vector<RecoveryInstanceDisk>&& value) { SetDisks(std::move(value)); return *this;}
70 inline RecoveryInstanceProperties& AddDisks(const RecoveryInstanceDisk& value) { m_disksHasBeenSet = true; m_disks.push_back(value); return *this; }
71 inline RecoveryInstanceProperties& AddDisks(RecoveryInstanceDisk&& 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); }
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); }
96 inline RecoveryInstanceProperties& WithLastUpdatedDateTime(Aws::String&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
97 inline RecoveryInstanceProperties& 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 RecoveryInstanceProperties& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
111 inline RecoveryInstanceProperties& 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 RecoveryInstanceProperties& WithOs(const OS& value) { SetOs(value); return *this;}
123 inline RecoveryInstanceProperties& 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 RecoveryInstanceProperties& WithRamBytes(long long value) { SetRamBytes(value); return *this;}
135 private:
136
137 Aws::Vector<CPU> m_cpus;
138 bool m_cpusHasBeenSet = false;
139
141 bool m_disksHasBeenSet = false;
142
143 IdentificationHints m_identificationHints;
144 bool m_identificationHintsHasBeenSet = false;
145
146 Aws::String m_lastUpdatedDateTime;
147 bool m_lastUpdatedDateTimeHasBeenSet = false;
148
149 Aws::Vector<NetworkInterface> m_networkInterfaces;
150 bool m_networkInterfacesHasBeenSet = false;
151
152 OS m_os;
153 bool m_osHasBeenSet = false;
154
155 long long m_ramBytes;
156 bool m_ramBytesHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace drs
161} // namespace Aws
RecoveryInstanceProperties & WithLastUpdatedDateTime(const char *value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
RecoveryInstanceProperties & WithDisks(Aws::Vector< RecoveryInstanceDisk > &&value)
RecoveryInstanceProperties & AddDisks(RecoveryInstanceDisk &&value)
RecoveryInstanceProperties & WithOs(OS &&value)
void SetDisks(const Aws::Vector< RecoveryInstanceDisk > &value)
RecoveryInstanceProperties & AddCpus(CPU &&value)
RecoveryInstanceProperties & AddNetworkInterfaces(const NetworkInterface &value)
RecoveryInstanceProperties & WithLastUpdatedDateTime(const Aws::String &value)
RecoveryInstanceProperties & WithCpus(Aws::Vector< CPU > &&value)
RecoveryInstanceProperties & WithOs(const OS &value)
const IdentificationHints & GetIdentificationHints() const
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
RecoveryInstanceProperties & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
RecoveryInstanceProperties & WithDisks(const Aws::Vector< RecoveryInstanceDisk > &value)
RecoveryInstanceProperties & WithCpus(const Aws::Vector< CPU > &value)
const Aws::Vector< RecoveryInstanceDisk > & GetDisks() const
void SetCpus(const Aws::Vector< CPU > &value)
RecoveryInstanceProperties & WithIdentificationHints(const IdentificationHints &value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDisks(Aws::Vector< RecoveryInstanceDisk > &&value)
AWS_DRS_API RecoveryInstanceProperties(Aws::Utils::Json::JsonView jsonValue)
RecoveryInstanceProperties & WithIdentificationHints(IdentificationHints &&value)
RecoveryInstanceProperties & AddNetworkInterfaces(NetworkInterface &&value)
RecoveryInstanceProperties & WithLastUpdatedDateTime(Aws::String &&value)
RecoveryInstanceProperties & AddCpus(const CPU &value)
void SetIdentificationHints(IdentificationHints &&value)
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
RecoveryInstanceProperties & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
RecoveryInstanceProperties & WithRamBytes(long long value)
RecoveryInstanceProperties & AddDisks(const RecoveryInstanceDisk &value)
AWS_DRS_API RecoveryInstanceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIdentificationHints(const IdentificationHints &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