AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
Vm.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30class Vm {
31 public:
32 AWS_INSPECTOR2_API Vm() = default;
33 AWS_INSPECTOR2_API Vm(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Vm& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
49 Vm& WithType(TypeT&& value) {
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVmName() const { return m_vmName; }
60 inline bool VmNameHasBeenSet() const { return m_vmNameHasBeenSet; }
61 template <typename VmNameT = Aws::String>
62 void SetVmName(VmNameT&& value) {
63 m_vmNameHasBeenSet = true;
64 m_vmName = std::forward<VmNameT>(value);
65 }
66 template <typename VmNameT = Aws::String>
67 Vm& WithVmName(VmNameT&& value) {
68 SetVmName(std::forward<VmNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVmImageReference() const { return m_vmImageReference; }
78 inline bool VmImageReferenceHasBeenSet() const { return m_vmImageReferenceHasBeenSet; }
79 template <typename VmImageReferenceT = Aws::String>
80 void SetVmImageReference(VmImageReferenceT&& value) {
81 m_vmImageReferenceHasBeenSet = true;
82 m_vmImageReference = std::forward<VmImageReferenceT>(value);
83 }
84 template <typename VmImageReferenceT = Aws::String>
85 Vm& WithVmImageReference(VmImageReferenceT&& value) {
86 SetVmImageReference(std::forward<VmImageReferenceT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetIpV4Addresses() const { return m_ipV4Addresses; }
96 inline bool IpV4AddressesHasBeenSet() const { return m_ipV4AddressesHasBeenSet; }
97 template <typename IpV4AddressesT = Aws::Vector<Aws::String>>
98 void SetIpV4Addresses(IpV4AddressesT&& value) {
99 m_ipV4AddressesHasBeenSet = true;
100 m_ipV4Addresses = std::forward<IpV4AddressesT>(value);
101 }
102 template <typename IpV4AddressesT = Aws::Vector<Aws::String>>
103 Vm& WithIpV4Addresses(IpV4AddressesT&& value) {
104 SetIpV4Addresses(std::forward<IpV4AddressesT>(value));
105 return *this;
106 }
107 template <typename IpV4AddressesT = Aws::String>
108 Vm& AddIpV4Addresses(IpV4AddressesT&& value) {
109 m_ipV4AddressesHasBeenSet = true;
110 m_ipV4Addresses.emplace_back(std::forward<IpV4AddressesT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetIpV6Addresses() const { return m_ipV6Addresses; }
120 inline bool IpV6AddressesHasBeenSet() const { return m_ipV6AddressesHasBeenSet; }
121 template <typename IpV6AddressesT = Aws::Vector<Aws::String>>
122 void SetIpV6Addresses(IpV6AddressesT&& value) {
123 m_ipV6AddressesHasBeenSet = true;
124 m_ipV6Addresses = std::forward<IpV6AddressesT>(value);
125 }
126 template <typename IpV6AddressesT = Aws::Vector<Aws::String>>
127 Vm& WithIpV6Addresses(IpV6AddressesT&& value) {
128 SetIpV6Addresses(std::forward<IpV6AddressesT>(value));
129 return *this;
130 }
131 template <typename IpV6AddressesT = Aws::String>
132 Vm& AddIpV6Addresses(IpV6AddressesT&& value) {
133 m_ipV6AddressesHasBeenSet = true;
134 m_ipV6Addresses.emplace_back(std::forward<IpV6AddressesT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetNetworkId() const { return m_networkId; }
144 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
145 template <typename NetworkIdT = Aws::String>
146 void SetNetworkId(NetworkIdT&& value) {
147 m_networkIdHasBeenSet = true;
148 m_networkId = std::forward<NetworkIdT>(value);
149 }
150 template <typename NetworkIdT = Aws::String>
151 Vm& WithNetworkId(NetworkIdT&& value) {
152 SetNetworkId(std::forward<NetworkIdT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
162 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
163 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
164 void SetSubnetIds(SubnetIdsT&& value) {
165 m_subnetIdsHasBeenSet = true;
166 m_subnetIds = std::forward<SubnetIdsT>(value);
167 }
168 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
169 Vm& WithSubnetIds(SubnetIdsT&& value) {
170 SetSubnetIds(std::forward<SubnetIdsT>(value));
171 return *this;
172 }
173 template <typename SubnetIdsT = Aws::String>
174 Vm& AddSubnetIds(SubnetIdsT&& value) {
175 m_subnetIdsHasBeenSet = true;
176 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
186 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
187 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
188 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
189 m_securityGroupIdsHasBeenSet = true;
190 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
191 }
192 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
193 Vm& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
194 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
195 return *this;
196 }
197 template <typename SecurityGroupIdsT = Aws::String>
198 Vm& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
199 m_securityGroupIdsHasBeenSet = true;
200 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetLaunchedAt() const { return m_launchedAt; }
210 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
211 template <typename LaunchedAtT = Aws::Utils::DateTime>
212 void SetLaunchedAt(LaunchedAtT&& value) {
213 m_launchedAtHasBeenSet = true;
214 m_launchedAt = std::forward<LaunchedAtT>(value);
215 }
216 template <typename LaunchedAtT = Aws::Utils::DateTime>
217 Vm& WithLaunchedAt(LaunchedAtT&& value) {
218 SetLaunchedAt(std::forward<LaunchedAtT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetPlatform() const { return m_platform; }
228 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
229 template <typename PlatformT = Aws::String>
230 void SetPlatform(PlatformT&& value) {
231 m_platformHasBeenSet = true;
232 m_platform = std::forward<PlatformT>(value);
233 }
234 template <typename PlatformT = Aws::String>
235 Vm& WithPlatform(PlatformT&& value) {
236 SetPlatform(std::forward<PlatformT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
246 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
247 template <typename ExecutionRoleT = Aws::String>
248 void SetExecutionRole(ExecutionRoleT&& value) {
249 m_executionRoleHasBeenSet = true;
250 m_executionRole = std::forward<ExecutionRoleT>(value);
251 }
252 template <typename ExecutionRoleT = Aws::String>
253 Vm& WithExecutionRole(ExecutionRoleT&& value) {
254 SetExecutionRole(std::forward<ExecutionRoleT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::String& GetKeyName() const { return m_keyName; }
264 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
265 template <typename KeyNameT = Aws::String>
266 void SetKeyName(KeyNameT&& value) {
267 m_keyNameHasBeenSet = true;
268 m_keyName = std::forward<KeyNameT>(value);
269 }
270 template <typename KeyNameT = Aws::String>
271 Vm& WithKeyName(KeyNameT&& value) {
272 SetKeyName(std::forward<KeyNameT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_type;
278
279 Aws::String m_vmName;
280
281 Aws::String m_vmImageReference;
282
283 Aws::Vector<Aws::String> m_ipV4Addresses;
284
285 Aws::Vector<Aws::String> m_ipV6Addresses;
286
287 Aws::String m_networkId;
288
289 Aws::Vector<Aws::String> m_subnetIds;
290
291 Aws::Vector<Aws::String> m_securityGroupIds;
292
293 Aws::Utils::DateTime m_launchedAt{};
294
295 Aws::String m_platform;
296
297 Aws::String m_executionRole;
298
299 Aws::String m_keyName;
300 bool m_typeHasBeenSet = false;
301 bool m_vmNameHasBeenSet = false;
302 bool m_vmImageReferenceHasBeenSet = false;
303 bool m_ipV4AddressesHasBeenSet = false;
304 bool m_ipV6AddressesHasBeenSet = false;
305 bool m_networkIdHasBeenSet = false;
306 bool m_subnetIdsHasBeenSet = false;
307 bool m_securityGroupIdsHasBeenSet = false;
308 bool m_launchedAtHasBeenSet = false;
309 bool m_platformHasBeenSet = false;
310 bool m_executionRoleHasBeenSet = false;
311 bool m_keyNameHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace Inspector2
316} // namespace Aws
bool LaunchedAtHasBeenSet() const
Definition Vm.h:210
bool TypeHasBeenSet() const
Definition Vm.h:42
void SetIpV6Addresses(IpV6AddressesT &&value)
Definition Vm.h:122
void SetVmImageReference(VmImageReferenceT &&value)
Definition Vm.h:80
Vm & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Vm.h:198
const Aws::Vector< Aws::String > & GetIpV6Addresses() const
Definition Vm.h:119
Vm & WithVmImageReference(VmImageReferenceT &&value)
Definition Vm.h:85
void SetVmName(VmNameT &&value)
Definition Vm.h:62
bool IpV4AddressesHasBeenSet() const
Definition Vm.h:96
const Aws::String & GetKeyName() const
Definition Vm.h:263
void SetType(TypeT &&value)
Definition Vm.h:44
const Aws::String & GetNetworkId() const
Definition Vm.h:143
bool SubnetIdsHasBeenSet() const
Definition Vm.h:162
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPlatform() const
Definition Vm.h:227
const Aws::String & GetVmName() const
Definition Vm.h:59
Vm & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Vm.h:193
bool KeyNameHasBeenSet() const
Definition Vm.h:264
const Aws::Utils::DateTime & GetLaunchedAt() const
Definition Vm.h:209
bool IpV6AddressesHasBeenSet() const
Definition Vm.h:120
Vm & WithIpV6Addresses(IpV6AddressesT &&value)
Definition Vm.h:127
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition Vm.h:185
AWS_INSPECTOR2_API Vm(Aws::Utils::Json::JsonView jsonValue)
void SetIpV4Addresses(IpV4AddressesT &&value)
Definition Vm.h:98
void SetSubnetIds(SubnetIdsT &&value)
Definition Vm.h:164
AWS_INSPECTOR2_API Vm & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkId(NetworkIdT &&value)
Definition Vm.h:146
Vm & WithType(TypeT &&value)
Definition Vm.h:49
Vm & AddIpV6Addresses(IpV6AddressesT &&value)
Definition Vm.h:132
Vm & WithNetworkId(NetworkIdT &&value)
Definition Vm.h:151
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Vm.h:188
bool NetworkIdHasBeenSet() const
Definition Vm.h:144
Vm & AddIpV4Addresses(IpV4AddressesT &&value)
Definition Vm.h:108
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Vm.h:161
bool PlatformHasBeenSet() const
Definition Vm.h:228
const Aws::String & GetVmImageReference() const
Definition Vm.h:77
Vm & WithExecutionRole(ExecutionRoleT &&value)
Definition Vm.h:253
Vm & WithVmName(VmNameT &&value)
Definition Vm.h:67
bool VmImageReferenceHasBeenSet() const
Definition Vm.h:78
Vm & WithLaunchedAt(LaunchedAtT &&value)
Definition Vm.h:217
void SetLaunchedAt(LaunchedAtT &&value)
Definition Vm.h:212
AWS_INSPECTOR2_API Vm()=default
Vm & AddSubnetIds(SubnetIdsT &&value)
Definition Vm.h:174
bool ExecutionRoleHasBeenSet() const
Definition Vm.h:246
const Aws::String & GetType() const
Definition Vm.h:41
bool VmNameHasBeenSet() const
Definition Vm.h:60
void SetPlatform(PlatformT &&value)
Definition Vm.h:230
Vm & WithPlatform(PlatformT &&value)
Definition Vm.h:235
Vm & WithIpV4Addresses(IpV4AddressesT &&value)
Definition Vm.h:103
const Aws::String & GetExecutionRole() const
Definition Vm.h:245
bool SecurityGroupIdsHasBeenSet() const
Definition Vm.h:186
const Aws::Vector< Aws::String > & GetIpV4Addresses() const
Definition Vm.h:95
void SetExecutionRole(ExecutionRoleT &&value)
Definition Vm.h:248
void SetKeyName(KeyNameT &&value)
Definition Vm.h:266
Vm & WithKeyName(KeyNameT &&value)
Definition Vm.h:271
Vm & WithSubnetIds(SubnetIdsT &&value)
Definition Vm.h:169
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue