AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/IpAddressType.h>
14#include <aws/lightsail/model/InstanceHardware.h>
15#include <aws/lightsail/model/InstanceNetworking.h>
16#include <aws/lightsail/model/InstanceState.h>
17#include <aws/lightsail/model/InstanceMetadataOptions.h>
18#include <aws/lightsail/model/Tag.h>
19#include <aws/lightsail/model/AddOn.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace Lightsail
33{
34namespace Model
35{
36
44 {
45 public:
46 AWS_LIGHTSAIL_API Instance();
47 AWS_LIGHTSAIL_API Instance(Aws::Utils::Json::JsonView jsonValue);
48 AWS_LIGHTSAIL_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline Instance& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline Instance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline Instance& WithName(const char* value) { SetName(value); return *this;}
65
67
71 inline const Aws::String& GetArn() const{ return m_arn; }
72 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
73 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
74 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
75 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
76 inline Instance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
77 inline Instance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
78 inline Instance& WithArn(const char* value) { SetArn(value); return *this;}
80
82
87 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
88 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
89 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
90 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
91 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
92 inline Instance& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
93 inline Instance& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
94 inline Instance& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
103 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
104 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
105 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
106 inline Instance& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
107 inline Instance& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
109
111
114 inline const ResourceLocation& GetLocation() const{ return m_location; }
115 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
116 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
117 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
118 inline Instance& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
119 inline Instance& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
121
123
126 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
127 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
128 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
129 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
130 inline Instance& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
131 inline Instance& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
133
135
141 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline Instance& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 inline Instance& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
147 inline Instance& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
148 inline Instance& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
150
152
155 inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; }
156 inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; }
157 inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; }
158 inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); }
159 inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); }
160 inline Instance& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;}
161 inline Instance& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;}
162 inline Instance& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;}
164
166
169 inline const Aws::String& GetBlueprintName() const{ return m_blueprintName; }
170 inline bool BlueprintNameHasBeenSet() const { return m_blueprintNameHasBeenSet; }
171 inline void SetBlueprintName(const Aws::String& value) { m_blueprintNameHasBeenSet = true; m_blueprintName = value; }
172 inline void SetBlueprintName(Aws::String&& value) { m_blueprintNameHasBeenSet = true; m_blueprintName = std::move(value); }
173 inline void SetBlueprintName(const char* value) { m_blueprintNameHasBeenSet = true; m_blueprintName.assign(value); }
174 inline Instance& WithBlueprintName(const Aws::String& value) { SetBlueprintName(value); return *this;}
175 inline Instance& WithBlueprintName(Aws::String&& value) { SetBlueprintName(std::move(value)); return *this;}
176 inline Instance& WithBlueprintName(const char* value) { SetBlueprintName(value); return *this;}
178
180
183 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
184 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
185 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
186 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
187 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
188 inline Instance& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
189 inline Instance& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
190 inline Instance& WithBundleId(const char* value) { SetBundleId(value); return *this;}
192
194
197 inline const Aws::Vector<AddOn>& GetAddOns() const{ return m_addOns; }
198 inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; }
199 inline void SetAddOns(const Aws::Vector<AddOn>& value) { m_addOnsHasBeenSet = true; m_addOns = value; }
200 inline void SetAddOns(Aws::Vector<AddOn>&& value) { m_addOnsHasBeenSet = true; m_addOns = std::move(value); }
201 inline Instance& WithAddOns(const Aws::Vector<AddOn>& value) { SetAddOns(value); return *this;}
202 inline Instance& WithAddOns(Aws::Vector<AddOn>&& value) { SetAddOns(std::move(value)); return *this;}
203 inline Instance& AddAddOns(const AddOn& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(value); return *this; }
204 inline Instance& AddAddOns(AddOn&& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(std::move(value)); return *this; }
206
208
212 inline bool GetIsStaticIp() const{ return m_isStaticIp; }
213 inline bool IsStaticIpHasBeenSet() const { return m_isStaticIpHasBeenSet; }
214 inline void SetIsStaticIp(bool value) { m_isStaticIpHasBeenSet = true; m_isStaticIp = value; }
215 inline Instance& WithIsStaticIp(bool value) { SetIsStaticIp(value); return *this;}
217
219
222 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
223 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
224 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
225 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
226 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
227 inline Instance& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
228 inline Instance& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
229 inline Instance& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
231
233
236 inline const Aws::String& GetPublicIpAddress() const{ return m_publicIpAddress; }
237 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
238 inline void SetPublicIpAddress(const Aws::String& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = value; }
239 inline void SetPublicIpAddress(Aws::String&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::move(value); }
240 inline void SetPublicIpAddress(const char* value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress.assign(value); }
241 inline Instance& WithPublicIpAddress(const Aws::String& value) { SetPublicIpAddress(value); return *this;}
242 inline Instance& WithPublicIpAddress(Aws::String&& value) { SetPublicIpAddress(std::move(value)); return *this;}
243 inline Instance& WithPublicIpAddress(const char* value) { SetPublicIpAddress(value); return *this;}
245
247
250 inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
251 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
252 inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
253 inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
254 inline Instance& WithIpv6Addresses(const Aws::Vector<Aws::String>& value) { SetIpv6Addresses(value); return *this;}
255 inline Instance& WithIpv6Addresses(Aws::Vector<Aws::String>&& value) { SetIpv6Addresses(std::move(value)); return *this;}
256 inline Instance& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
257 inline Instance& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
258 inline Instance& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
260
262
267 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
268 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
269 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
270 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
271 inline Instance& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
272 inline Instance& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
274
276
279 inline const InstanceHardware& GetHardware() const{ return m_hardware; }
280 inline bool HardwareHasBeenSet() const { return m_hardwareHasBeenSet; }
281 inline void SetHardware(const InstanceHardware& value) { m_hardwareHasBeenSet = true; m_hardware = value; }
282 inline void SetHardware(InstanceHardware&& value) { m_hardwareHasBeenSet = true; m_hardware = std::move(value); }
283 inline Instance& WithHardware(const InstanceHardware& value) { SetHardware(value); return *this;}
284 inline Instance& WithHardware(InstanceHardware&& value) { SetHardware(std::move(value)); return *this;}
286
288
292 inline const InstanceNetworking& GetNetworking() const{ return m_networking; }
293 inline bool NetworkingHasBeenSet() const { return m_networkingHasBeenSet; }
294 inline void SetNetworking(const InstanceNetworking& value) { m_networkingHasBeenSet = true; m_networking = value; }
295 inline void SetNetworking(InstanceNetworking&& value) { m_networkingHasBeenSet = true; m_networking = std::move(value); }
296 inline Instance& WithNetworking(const InstanceNetworking& value) { SetNetworking(value); return *this;}
297 inline Instance& WithNetworking(InstanceNetworking&& value) { SetNetworking(std::move(value)); return *this;}
299
301
304 inline const InstanceState& GetState() const{ return m_state; }
305 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
306 inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
307 inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
308 inline Instance& WithState(const InstanceState& value) { SetState(value); return *this;}
309 inline Instance& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
311
313
316 inline const Aws::String& GetUsername() const{ return m_username; }
317 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
318 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
319 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
320 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
321 inline Instance& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
322 inline Instance& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
323 inline Instance& WithUsername(const char* value) { SetUsername(value); return *this;}
325
327
331 inline const Aws::String& GetSshKeyName() const{ return m_sshKeyName; }
332 inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; }
333 inline void SetSshKeyName(const Aws::String& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = value; }
334 inline void SetSshKeyName(Aws::String&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::move(value); }
335 inline void SetSshKeyName(const char* value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName.assign(value); }
336 inline Instance& WithSshKeyName(const Aws::String& value) { SetSshKeyName(value); return *this;}
337 inline Instance& WithSshKeyName(Aws::String&& value) { SetSshKeyName(std::move(value)); return *this;}
338 inline Instance& WithSshKeyName(const char* value) { SetSshKeyName(value); return *this;}
340
342
345 inline const InstanceMetadataOptions& GetMetadataOptions() const{ return m_metadataOptions; }
346 inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; }
347 inline void SetMetadataOptions(const InstanceMetadataOptions& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; }
348 inline void SetMetadataOptions(InstanceMetadataOptions&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); }
349 inline Instance& WithMetadataOptions(const InstanceMetadataOptions& value) { SetMetadataOptions(value); return *this;}
350 inline Instance& WithMetadataOptions(InstanceMetadataOptions&& value) { SetMetadataOptions(std::move(value)); return *this;}
352 private:
353
354 Aws::String m_name;
355 bool m_nameHasBeenSet = false;
356
357 Aws::String m_arn;
358 bool m_arnHasBeenSet = false;
359
360 Aws::String m_supportCode;
361 bool m_supportCodeHasBeenSet = false;
362
363 Aws::Utils::DateTime m_createdAt;
364 bool m_createdAtHasBeenSet = false;
365
366 ResourceLocation m_location;
367 bool m_locationHasBeenSet = false;
368
369 ResourceType m_resourceType;
370 bool m_resourceTypeHasBeenSet = false;
371
372 Aws::Vector<Tag> m_tags;
373 bool m_tagsHasBeenSet = false;
374
375 Aws::String m_blueprintId;
376 bool m_blueprintIdHasBeenSet = false;
377
378 Aws::String m_blueprintName;
379 bool m_blueprintNameHasBeenSet = false;
380
381 Aws::String m_bundleId;
382 bool m_bundleIdHasBeenSet = false;
383
384 Aws::Vector<AddOn> m_addOns;
385 bool m_addOnsHasBeenSet = false;
386
387 bool m_isStaticIp;
388 bool m_isStaticIpHasBeenSet = false;
389
390 Aws::String m_privateIpAddress;
391 bool m_privateIpAddressHasBeenSet = false;
392
393 Aws::String m_publicIpAddress;
394 bool m_publicIpAddressHasBeenSet = false;
395
396 Aws::Vector<Aws::String> m_ipv6Addresses;
397 bool m_ipv6AddressesHasBeenSet = false;
398
399 IpAddressType m_ipAddressType;
400 bool m_ipAddressTypeHasBeenSet = false;
401
402 InstanceHardware m_hardware;
403 bool m_hardwareHasBeenSet = false;
404
405 InstanceNetworking m_networking;
406 bool m_networkingHasBeenSet = false;
407
408 InstanceState m_state;
409 bool m_stateHasBeenSet = false;
410
411 Aws::String m_username;
412 bool m_usernameHasBeenSet = false;
413
414 Aws::String m_sshKeyName;
415 bool m_sshKeyNameHasBeenSet = false;
416
417 InstanceMetadataOptions m_metadataOptions;
418 bool m_metadataOptionsHasBeenSet = false;
419 };
420
421} // namespace Model
422} // namespace Lightsail
423} // namespace Aws
Instance & AddIpv6Addresses(const char *value)
Definition Instance.h:258
const InstanceMetadataOptions & GetMetadataOptions() const
Definition Instance.h:345
void SetAddOns(Aws::Vector< AddOn > &&value)
Definition Instance.h:200
bool Ipv6AddressesHasBeenSet() const
Definition Instance.h:251
const ResourceType & GetResourceType() const
Definition Instance.h:126
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Instance.h:105
bool IpAddressTypeHasBeenSet() const
Definition Instance.h:268
void SetBundleId(const char *value)
Definition Instance.h:187
Instance & WithResourceType(const ResourceType &value)
Definition Instance.h:130
void SetBlueprintName(Aws::String &&value)
Definition Instance.h:172
Instance & WithTags(Aws::Vector< Tag > &&value)
Definition Instance.h:146
const IpAddressType & GetIpAddressType() const
Definition Instance.h:267
const Aws::String & GetBlueprintId() const
Definition Instance.h:155
const Aws::String & GetPublicIpAddress() const
Definition Instance.h:236
Instance & WithSshKeyName(Aws::String &&value)
Definition Instance.h:337
Instance & WithArn(Aws::String &&value)
Definition Instance.h:77
const Aws::String & GetName() const
Definition Instance.h:56
Instance & AddIpv6Addresses(Aws::String &&value)
Definition Instance.h:257
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
Definition Instance.h:253
const ResourceLocation & GetLocation() const
Definition Instance.h:114
void SetNetworking(InstanceNetworking &&value)
Definition Instance.h:295
const Aws::String & GetBundleId() const
Definition Instance.h:183
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
Definition Instance.h:252
void SetName(const char *value)
Definition Instance.h:60
void SetPublicIpAddress(const Aws::String &value)
Definition Instance.h:238
void SetSshKeyName(const Aws::String &value)
Definition Instance.h:333
void SetBlueprintName(const char *value)
Definition Instance.h:173
AWS_LIGHTSAIL_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithState(InstanceState &&value)
Definition Instance.h:309
Instance & WithSupportCode(const char *value)
Definition Instance.h:94
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Instance.h:104
Instance & WithBundleId(const Aws::String &value)
Definition Instance.h:188
Instance & WithIsStaticIp(bool value)
Definition Instance.h:215
Instance & AddIpv6Addresses(const Aws::String &value)
Definition Instance.h:256
Instance & WithPrivateIpAddress(const Aws::String &value)
Definition Instance.h:227
const InstanceHardware & GetHardware() const
Definition Instance.h:279
void SetMetadataOptions(const InstanceMetadataOptions &value)
Definition Instance.h:347
bool BlueprintNameHasBeenSet() const
Definition Instance.h:170
void SetTags(const Aws::Vector< Tag > &value)
Definition Instance.h:143
Instance & WithBlueprintName(Aws::String &&value)
Definition Instance.h:175
bool SupportCodeHasBeenSet() const
Definition Instance.h:88
const Aws::String & GetUsername() const
Definition Instance.h:316
Instance & WithLocation(const ResourceLocation &value)
Definition Instance.h:118
Instance & WithNetworking(InstanceNetworking &&value)
Definition Instance.h:297
Instance & WithSupportCode(const Aws::String &value)
Definition Instance.h:92
void SetSupportCode(const char *value)
Definition Instance.h:91
void SetTags(Aws::Vector< Tag > &&value)
Definition Instance.h:144
Instance & WithPrivateIpAddress(Aws::String &&value)
Definition Instance.h:228
Instance & WithSshKeyName(const Aws::String &value)
Definition Instance.h:336
Instance & WithBlueprintName(const char *value)
Definition Instance.h:176
Instance & WithBundleId(const char *value)
Definition Instance.h:190
void SetPrivateIpAddress(Aws::String &&value)
Definition Instance.h:225
void SetBlueprintId(const Aws::String &value)
Definition Instance.h:157
bool ResourceTypeHasBeenSet() const
Definition Instance.h:127
bool PublicIpAddressHasBeenSet() const
Definition Instance.h:237
void SetArn(const Aws::String &value)
Definition Instance.h:73
void SetArn(Aws::String &&value)
Definition Instance.h:74
bool MetadataOptionsHasBeenSet() const
Definition Instance.h:346
Instance & WithPublicIpAddress(Aws::String &&value)
Definition Instance.h:242
Instance & AddTags(const Tag &value)
Definition Instance.h:147
Instance & WithBlueprintId(Aws::String &&value)
Definition Instance.h:161
void SetName(Aws::String &&value)
Definition Instance.h:59
Instance & WithPrivateIpAddress(const char *value)
Definition Instance.h:229
Instance & AddAddOns(AddOn &&value)
Definition Instance.h:204
Instance & WithHardware(const InstanceHardware &value)
Definition Instance.h:283
const Aws::Vector< AddOn > & GetAddOns() const
Definition Instance.h:197
void SetSupportCode(const Aws::String &value)
Definition Instance.h:89
void SetState(InstanceState &&value)
Definition Instance.h:307
void SetResourceType(const ResourceType &value)
Definition Instance.h:128
Instance & AddTags(Tag &&value)
Definition Instance.h:148
Instance & WithUsername(const Aws::String &value)
Definition Instance.h:321
Instance & WithSshKeyName(const char *value)
Definition Instance.h:338
Instance & WithPublicIpAddress(const Aws::String &value)
Definition Instance.h:241
Instance & WithMetadataOptions(InstanceMetadataOptions &&value)
Definition Instance.h:350
Instance & WithMetadataOptions(const InstanceMetadataOptions &value)
Definition Instance.h:349
void SetState(const InstanceState &value)
Definition Instance.h:306
void SetPublicIpAddress(const char *value)
Definition Instance.h:240
Instance & WithName(const Aws::String &value)
Definition Instance.h:61
Instance & WithArn(const char *value)
Definition Instance.h:78
const Aws::String & GetPrivateIpAddress() const
Definition Instance.h:222
void SetSshKeyName(const char *value)
Definition Instance.h:335
Instance & WithSupportCode(Aws::String &&value)
Definition Instance.h:93
bool PrivateIpAddressHasBeenSet() const
Definition Instance.h:223
Instance & WithState(const InstanceState &value)
Definition Instance.h:308
void SetIsStaticIp(bool value)
Definition Instance.h:214
Instance & WithBlueprintName(const Aws::String &value)
Definition Instance.h:174
const Aws::String & GetBlueprintName() const
Definition Instance.h:169
const Aws::String & GetSupportCode() const
Definition Instance.h:87
void SetResourceType(ResourceType &&value)
Definition Instance.h:129
Instance & WithAddOns(Aws::Vector< AddOn > &&value)
Definition Instance.h:202
void SetPublicIpAddress(Aws::String &&value)
Definition Instance.h:239
AWS_LIGHTSAIL_API Instance()
Instance & WithUsername(Aws::String &&value)
Definition Instance.h:322
Instance & WithBlueprintId(const char *value)
Definition Instance.h:162
Instance & WithNetworking(const InstanceNetworking &value)
Definition Instance.h:296
void SetBundleId(const Aws::String &value)
Definition Instance.h:185
void SetHardware(const InstanceHardware &value)
Definition Instance.h:281
Instance & WithResourceType(ResourceType &&value)
Definition Instance.h:131
const Aws::String & GetArn() const
Definition Instance.h:71
Instance & WithName(Aws::String &&value)
Definition Instance.h:62
void SetHardware(InstanceHardware &&value)
Definition Instance.h:282
Instance & WithBundleId(Aws::String &&value)
Definition Instance.h:189
Instance & WithAddOns(const Aws::Vector< AddOn > &value)
Definition Instance.h:201
const Aws::Vector< Tag > & GetTags() const
Definition Instance.h:141
void SetName(const Aws::String &value)
Definition Instance.h:58
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Instance.h:102
void SetBlueprintId(const char *value)
Definition Instance.h:159
AWS_LIGHTSAIL_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsername(const char *value)
Definition Instance.h:320
Instance & WithPublicIpAddress(const char *value)
Definition Instance.h:243
const Aws::String & GetSshKeyName() const
Definition Instance.h:331
Instance & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Instance.h:106
void SetSshKeyName(Aws::String &&value)
Definition Instance.h:334
Instance & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
Definition Instance.h:254
const InstanceNetworking & GetNetworking() const
Definition Instance.h:292
Instance & WithName(const char *value)
Definition Instance.h:63
void SetPrivateIpAddress(const Aws::String &value)
Definition Instance.h:224
void SetLocation(ResourceLocation &&value)
Definition Instance.h:117
Instance & WithLocation(ResourceLocation &&value)
Definition Instance.h:119
void SetSupportCode(Aws::String &&value)
Definition Instance.h:90
void SetIpAddressType(IpAddressType &&value)
Definition Instance.h:270
Instance & WithBlueprintId(const Aws::String &value)
Definition Instance.h:160
void SetMetadataOptions(InstanceMetadataOptions &&value)
Definition Instance.h:348
const InstanceState & GetState() const
Definition Instance.h:304
void SetUsername(const Aws::String &value)
Definition Instance.h:318
Instance & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
Definition Instance.h:255
void SetBlueprintId(Aws::String &&value)
Definition Instance.h:158
void SetNetworking(const InstanceNetworking &value)
Definition Instance.h:294
void SetBlueprintName(const Aws::String &value)
Definition Instance.h:171
void SetUsername(Aws::String &&value)
Definition Instance.h:319
void SetArn(const char *value)
Definition Instance.h:75
void SetAddOns(const Aws::Vector< AddOn > &value)
Definition Instance.h:199
void SetBundleId(Aws::String &&value)
Definition Instance.h:186
Instance & WithHardware(InstanceHardware &&value)
Definition Instance.h:284
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
Definition Instance.h:250
Instance & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Instance.h:107
Instance & WithUsername(const char *value)
Definition Instance.h:323
void SetPrivateIpAddress(const char *value)
Definition Instance.h:226
Instance & WithArn(const Aws::String &value)
Definition Instance.h:76
void SetIpAddressType(const IpAddressType &value)
Definition Instance.h:269
Instance & AddAddOns(const AddOn &value)
Definition Instance.h:203
Instance & WithIpAddressType(const IpAddressType &value)
Definition Instance.h:271
void SetLocation(const ResourceLocation &value)
Definition Instance.h:116
Instance & WithTags(const Aws::Vector< Tag > &value)
Definition Instance.h:145
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Instance & WithIpAddressType(IpAddressType &&value)
Definition Instance.h:272
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue