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/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/AddOn.h>
12#include <aws/lightsail/model/InstanceHardware.h>
13#include <aws/lightsail/model/InstanceHealthStatus.h>
14#include <aws/lightsail/model/InstanceMetadataOptions.h>
15#include <aws/lightsail/model/InstanceNetworking.h>
16#include <aws/lightsail/model/InstanceState.h>
17#include <aws/lightsail/model/IpAddressType.h>
18#include <aws/lightsail/model/ResourceLocation.h>
19#include <aws/lightsail/model/ResourceType.h>
20#include <aws/lightsail/model/Tag.h>
53 template <
typename NameT = Aws::String>
55 m_nameHasBeenSet =
true;
56 m_name = std::forward<NameT>(value);
58 template <
typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
72 template <
typename ArnT = Aws::String>
74 m_arnHasBeenSet =
true;
75 m_arn = std::forward<ArnT>(value);
77 template <
typename ArnT = Aws::String>
79 SetArn(std::forward<ArnT>(value));
92 template <
typename SupportCodeT = Aws::String>
94 m_supportCodeHasBeenSet =
true;
95 m_supportCode = std::forward<SupportCodeT>(value);
97 template <
typename SupportCodeT = Aws::String>
111 template <
typename CreatedAtT = Aws::Utils::DateTime>
113 m_createdAtHasBeenSet =
true;
114 m_createdAt = std::forward<CreatedAtT>(value);
116 template <
typename CreatedAtT = Aws::Utils::DateTime>
129 template <
typename LocationT = ResourceLocation>
131 m_locationHasBeenSet =
true;
132 m_location = std::forward<LocationT>(value);
134 template <
typename LocationT = ResourceLocation>
148 m_resourceTypeHasBeenSet =
true;
149 m_resourceType = value;
166 template <
typename TagsT = Aws::Vector<Tag>>
168 m_tagsHasBeenSet =
true;
169 m_tags = std::forward<TagsT>(value);
171 template <
typename TagsT = Aws::Vector<Tag>>
173 SetTags(std::forward<TagsT>(value));
176 template <
typename TagsT = Tag>
178 m_tagsHasBeenSet =
true;
179 m_tags.emplace_back(std::forward<TagsT>(value));
190 template <
typename Bluepr
intIdT = Aws::String>
192 m_blueprintIdHasBeenSet =
true;
193 m_blueprintId = std::forward<BlueprintIdT>(value);
195 template <
typename Bluepr
intIdT = Aws::String>
208 template <
typename Bluepr
intNameT = Aws::String>
210 m_blueprintNameHasBeenSet =
true;
211 m_blueprintName = std::forward<BlueprintNameT>(value);
213 template <
typename Bluepr
intNameT = Aws::String>
226 template <
typename BundleIdT = Aws::String>
228 m_bundleIdHasBeenSet =
true;
229 m_bundleId = std::forward<BundleIdT>(value);
231 template <
typename BundleIdT = Aws::String>
244 template <
typename AddOnsT = Aws::Vector<AddOn>>
246 m_addOnsHasBeenSet =
true;
247 m_addOns = std::forward<AddOnsT>(value);
249 template <
typename AddOnsT = Aws::Vector<AddOn>>
254 template <
typename AddOnsT = AddOn>
256 m_addOnsHasBeenSet =
true;
257 m_addOns.emplace_back(std::forward<AddOnsT>(value));
270 m_isStaticIpHasBeenSet =
true;
271 m_isStaticIp = value;
285 template <
typename PrivateIpAddressT = Aws::String>
287 m_privateIpAddressHasBeenSet =
true;
288 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
290 template <
typename PrivateIpAddressT = Aws::String>
303 template <
typename PublicIpAddressT = Aws::String>
305 m_publicIpAddressHasBeenSet =
true;
306 m_publicIpAddress = std::forward<PublicIpAddressT>(value);
308 template <
typename PublicIpAddressT = Aws::String>
321 template <
typename Ipv6AddressesT = Aws::Vector<Aws::String>>
323 m_ipv6AddressesHasBeenSet =
true;
324 m_ipv6Addresses = std::forward<Ipv6AddressesT>(value);
326 template <
typename Ipv6AddressesT = Aws::Vector<Aws::String>>
331 template <
typename Ipv6AddressesT = Aws::String>
333 m_ipv6AddressesHasBeenSet =
true;
334 m_ipv6Addresses.emplace_back(std::forward<Ipv6AddressesT>(value));
348 m_ipAddressTypeHasBeenSet =
true;
349 m_ipAddressType = value;
363 template <
typename HardwareT = InstanceHardware>
365 m_hardwareHasBeenSet =
true;
366 m_hardware = std::forward<HardwareT>(value);
368 template <
typename HardwareT = InstanceHardware>
382 template <
typename NetworkingT = InstanceNetworking>
384 m_networkingHasBeenSet =
true;
385 m_networking = std::forward<NetworkingT>(value);
387 template <
typename NetworkingT = InstanceNetworking>
400 template <
typename StateT = InstanceState>
402 m_stateHasBeenSet =
true;
403 m_state = std::forward<StateT>(value);
405 template <
typename StateT = InstanceState>
407 SetState(std::forward<StateT>(value));
418 template <
typename UsernameT = Aws::String>
420 m_usernameHasBeenSet =
true;
421 m_username = std::forward<UsernameT>(value);
423 template <
typename UsernameT = Aws::String>
437 template <
typename SshKeyNameT = Aws::String>
439 m_sshKeyNameHasBeenSet =
true;
440 m_sshKeyName = std::forward<SshKeyNameT>(value);
442 template <
typename SshKeyNameT = Aws::String>
455 template <
typename MetadataOptionsT = InstanceMetadataOptions>
457 m_metadataOptionsHasBeenSet =
true;
458 m_metadataOptions = std::forward<MetadataOptionsT>(value);
460 template <
typename MetadataOptionsT = InstanceMetadataOptions>
476 template <
typename InstanceStatusT = InstanceHealthStatus>
478 m_instanceStatusHasBeenSet =
true;
479 m_instanceStatus = std::forward<InstanceStatusT>(value);
481 template <
typename InstanceStatusT = InstanceHealthStatus>
497 template <
typename SystemStatusT = InstanceHealthStatus>
499 m_systemStatusHasBeenSet =
true;
500 m_systemStatus = std::forward<SystemStatusT>(value);
502 template <
typename SystemStatusT = InstanceHealthStatus>
517 ResourceLocation m_location;
531 bool m_isStaticIp{
false};
541 InstanceHardware m_hardware;
543 InstanceNetworking m_networking;
545 InstanceState m_state;
551 InstanceMetadataOptions m_metadataOptions;
553 InstanceHealthStatus m_instanceStatus;
555 InstanceHealthStatus m_systemStatus;
556 bool m_nameHasBeenSet =
false;
557 bool m_arnHasBeenSet =
false;
558 bool m_supportCodeHasBeenSet =
false;
559 bool m_createdAtHasBeenSet =
false;
560 bool m_locationHasBeenSet =
false;
561 bool m_resourceTypeHasBeenSet =
false;
562 bool m_tagsHasBeenSet =
false;
563 bool m_blueprintIdHasBeenSet =
false;
564 bool m_blueprintNameHasBeenSet =
false;
565 bool m_bundleIdHasBeenSet =
false;
566 bool m_addOnsHasBeenSet =
false;
567 bool m_isStaticIpHasBeenSet =
false;
568 bool m_privateIpAddressHasBeenSet =
false;
569 bool m_publicIpAddressHasBeenSet =
false;
570 bool m_ipv6AddressesHasBeenSet =
false;
571 bool m_ipAddressTypeHasBeenSet =
false;
572 bool m_hardwareHasBeenSet =
false;
573 bool m_networkingHasBeenSet =
false;
574 bool m_stateHasBeenSet =
false;
575 bool m_usernameHasBeenSet =
false;
576 bool m_sshKeyNameHasBeenSet =
false;
577 bool m_metadataOptionsHasBeenSet =
false;
578 bool m_instanceStatusHasBeenSet =
false;
579 bool m_systemStatusHasBeenSet =
false;
void SetCreatedAt(CreatedAtT &&value)
Instance & WithBlueprintId(BlueprintIdT &&value)
void SetNetworking(NetworkingT &&value)
const InstanceMetadataOptions & GetMetadataOptions() const
bool UsernameHasBeenSet() const
bool InstanceStatusHasBeenSet() const
bool Ipv6AddressesHasBeenSet() const
Instance & AddAddOns(AddOnsT &&value)
bool SystemStatusHasBeenSet() const
bool IpAddressTypeHasBeenSet() const
Instance & WithSshKeyName(SshKeyNameT &&value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
const Aws::String & GetBlueprintId() const
const Aws::String & GetPublicIpAddress() const
void SetTags(TagsT &&value)
AWS_LIGHTSAIL_API Instance()=default
Instance & AddIpv6Addresses(Ipv6AddressesT &&value)
const Aws::String & GetName() const
bool NameHasBeenSet() const
Instance & WithState(StateT &&value)
const ResourceLocation & GetLocation() const
Instance & WithSupportCode(SupportCodeT &&value)
const Aws::String & GetBundleId() const
AWS_LIGHTSAIL_API Instance(Aws::Utils::Json::JsonView jsonValue)
bool ArnHasBeenSet() const
bool TagsHasBeenSet() const
Instance & WithIsStaticIp(bool value)
const InstanceHardware & GetHardware() const
Instance & WithBundleId(BundleIdT &&value)
Instance & WithIpAddressType(IpAddressType value)
Instance & WithInstanceStatus(InstanceStatusT &&value)
ResourceType GetResourceType() const
bool BlueprintNameHasBeenSet() const
Instance & WithBlueprintName(BlueprintNameT &&value)
void SetSystemStatus(SystemStatusT &&value)
void SetSshKeyName(SshKeyNameT &&value)
void SetUsername(UsernameT &&value)
bool SupportCodeHasBeenSet() const
const Aws::String & GetUsername() const
void SetLocation(LocationT &&value)
Instance & WithAddOns(AddOnsT &&value)
void SetMetadataOptions(MetadataOptionsT &&value)
bool ResourceTypeHasBeenSet() const
bool PublicIpAddressHasBeenSet() const
bool AddOnsHasBeenSet() const
Instance & WithLocation(LocationT &&value)
Instance & WithSystemStatus(SystemStatusT &&value)
bool MetadataOptionsHasBeenSet() const
const InstanceHealthStatus & GetSystemStatus() const
void SetIpv6Addresses(Ipv6AddressesT &&value)
Instance & WithResourceType(ResourceType value)
Instance & WithName(NameT &&value)
Instance & AddTags(TagsT &&value)
const Aws::Vector< AddOn > & GetAddOns() const
Instance & WithIpv6Addresses(Ipv6AddressesT &&value)
bool NetworkingHasBeenSet() const
bool BundleIdHasBeenSet() const
bool CreatedAtHasBeenSet() const
void SetBundleId(BundleIdT &&value)
bool SshKeyNameHasBeenSet() const
bool BlueprintIdHasBeenSet() const
Instance & WithPrivateIpAddress(PrivateIpAddressT &&value)
bool LocationHasBeenSet() const
const Aws::String & GetPrivateIpAddress() const
bool PrivateIpAddressHasBeenSet() const
void SetIsStaticIp(bool value)
Instance & WithMetadataOptions(MetadataOptionsT &&value)
Instance & WithPublicIpAddress(PublicIpAddressT &&value)
const Aws::String & GetBlueprintName() const
const Aws::String & GetSupportCode() const
Instance & WithArn(ArnT &&value)
void SetIpAddressType(IpAddressType value)
const Aws::String & GetArn() const
void SetAddOns(AddOnsT &&value)
void SetHardware(HardwareT &&value)
bool GetIsStaticIp() const
Instance & WithHardware(HardwareT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetBlueprintId(BlueprintIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetBlueprintName(BlueprintNameT &&value)
AWS_LIGHTSAIL_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StateHasBeenSet() const
const Aws::String & GetSshKeyName() const
bool HardwareHasBeenSet() const
IpAddressType GetIpAddressType() const
void SetArn(ArnT &&value)
const InstanceNetworking & GetNetworking() const
void SetPublicIpAddress(PublicIpAddressT &&value)
Instance & WithNetworking(NetworkingT &&value)
void SetName(NameT &&value)
void SetResourceType(ResourceType value)
Instance & WithCreatedAt(CreatedAtT &&value)
const InstanceState & GetState() const
Instance & WithTags(TagsT &&value)
void SetState(StateT &&value)
void SetSupportCode(SupportCodeT &&value)
bool IsStaticIpHasBeenSet() const
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
Instance & WithUsername(UsernameT &&value)
const InstanceHealthStatus & GetInstanceStatus() const
void SetInstanceStatus(InstanceStatusT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue