/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes an instance (a virtual private server).

See Also:

* AWS * API Reference

*/ class Instance { public: AWS_LIGHTSAIL_API Instance(); AWS_LIGHTSAIL_API Instance(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline Instance& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline Instance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name the user gave the instance (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline Instance& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline Instance& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline Instance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the instance (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

*/ inline Instance& WithArn(const char* value) { SetArn(value); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline const Aws::String& GetSupportCode() const{ return m_supportCode; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline Instance& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline Instance& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline Instance& WithSupportCode(const char* value) { SetSupportCode(value); return *this;} /** *

The timestamp when the instance was created (e.g., * 1479734909.17) in Unix time format.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the instance was created (e.g., * 1479734909.17) in Unix time format.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the instance was created (e.g., * 1479734909.17) in Unix time format.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the instance was created (e.g., * 1479734909.17) in Unix time format.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the instance was created (e.g., * 1479734909.17) in Unix time format.

*/ inline Instance& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the instance was created (e.g., * 1479734909.17) in Unix time format.

*/ inline Instance& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The region name and Availability Zone where the instance is located.

*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *

The region name and Availability Zone where the instance is located.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The region name and Availability Zone where the instance is located.

*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The region name and Availability Zone where the instance is located.

*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The region name and Availability Zone where the instance is located.

*/ inline Instance& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *

The region name and Availability Zone where the instance is located.

*/ inline Instance& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *

The type of resource (usually Instance).

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resource (usually Instance).

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource (usually Instance).

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource (usually Instance).

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource (usually Instance).

*/ inline Instance& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of resource (usually Instance).

*/ inline Instance& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline Instance& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline Instance& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline Instance& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline Instance& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; } /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; } /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; } /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); } /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); } /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline Instance& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;} /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline Instance& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;} /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ inline Instance& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;} /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline const Aws::String& GetBlueprintName() const{ return m_blueprintName; } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline bool BlueprintNameHasBeenSet() const { return m_blueprintNameHasBeenSet; } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline void SetBlueprintName(const Aws::String& value) { m_blueprintNameHasBeenSet = true; m_blueprintName = value; } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline void SetBlueprintName(Aws::String&& value) { m_blueprintNameHasBeenSet = true; m_blueprintName = std::move(value); } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline void SetBlueprintName(const char* value) { m_blueprintNameHasBeenSet = true; m_blueprintName.assign(value); } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline Instance& WithBlueprintName(const Aws::String& value) { SetBlueprintName(value); return *this;} /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline Instance& WithBlueprintName(Aws::String&& value) { SetBlueprintName(std::move(value)); return *this;} /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline Instance& WithBlueprintName(const char* value) { SetBlueprintName(value); return *this;} /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline Instance& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline Instance& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The bundle for the instance (e.g., micro_1_0).

*/ inline Instance& WithBundleId(const char* value) { SetBundleId(value); return *this;} /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline const Aws::Vector& GetAddOns() const{ return m_addOns; } /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; } /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline void SetAddOns(const Aws::Vector& value) { m_addOnsHasBeenSet = true; m_addOns = value; } /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline void SetAddOns(Aws::Vector&& value) { m_addOnsHasBeenSet = true; m_addOns = std::move(value); } /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline Instance& WithAddOns(const Aws::Vector& value) { SetAddOns(value); return *this;} /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline Instance& WithAddOns(Aws::Vector&& value) { SetAddOns(std::move(value)); return *this;} /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline Instance& AddAddOns(const AddOn& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(value); return *this; } /** *

An array of objects representing the add-ons enabled on the instance.

*/ inline Instance& AddAddOns(AddOn&& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(std::move(value)); return *this; } /** *

A Boolean value indicating whether this instance has a static IP assigned to * it.

*/ inline bool GetIsStaticIp() const{ return m_isStaticIp; } /** *

A Boolean value indicating whether this instance has a static IP assigned to * it.

*/ inline bool IsStaticIpHasBeenSet() const { return m_isStaticIpHasBeenSet; } /** *

A Boolean value indicating whether this instance has a static IP assigned to * it.

*/ inline void SetIsStaticIp(bool value) { m_isStaticIpHasBeenSet = true; m_isStaticIp = value; } /** *

A Boolean value indicating whether this instance has a static IP assigned to * it.

*/ inline Instance& WithIsStaticIp(bool value) { SetIsStaticIp(value); return *this;} /** *

The private IP address of the instance.

*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *

The private IP address of the instance.

*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *

The private IP address of the instance.

*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *

The private IP address of the instance.

*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *

The private IP address of the instance.

*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *

The private IP address of the instance.

*/ inline Instance& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *

The private IP address of the instance.

*/ inline Instance& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *

The private IP address of the instance.

*/ inline Instance& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *

The public IP address of the instance.

*/ inline const Aws::String& GetPublicIpAddress() const{ return m_publicIpAddress; } /** *

The public IP address of the instance.

*/ inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; } /** *

The public IP address of the instance.

*/ inline void SetPublicIpAddress(const Aws::String& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = value; } /** *

The public IP address of the instance.

*/ inline void SetPublicIpAddress(Aws::String&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::move(value); } /** *

The public IP address of the instance.

*/ inline void SetPublicIpAddress(const char* value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress.assign(value); } /** *

The public IP address of the instance.

*/ inline Instance& WithPublicIpAddress(const Aws::String& value) { SetPublicIpAddress(value); return *this;} /** *

The public IP address of the instance.

*/ inline Instance& WithPublicIpAddress(Aws::String&& value) { SetPublicIpAddress(std::move(value)); return *this;} /** *

The public IP address of the instance.

*/ inline Instance& WithPublicIpAddress(const char* value) { SetPublicIpAddress(value); return *this;} /** *

The IPv6 addresses of the instance.

*/ inline const Aws::Vector& GetIpv6Addresses() const{ return m_ipv6Addresses; } /** *

The IPv6 addresses of the instance.

*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *

The IPv6 addresses of the instance.

*/ inline void SetIpv6Addresses(const Aws::Vector& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; } /** *

The IPv6 addresses of the instance.

*/ inline void SetIpv6Addresses(Aws::Vector&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); } /** *

The IPv6 addresses of the instance.

*/ inline Instance& WithIpv6Addresses(const Aws::Vector& value) { SetIpv6Addresses(value); return *this;} /** *

The IPv6 addresses of the instance.

*/ inline Instance& WithIpv6Addresses(Aws::Vector&& value) { SetIpv6Addresses(std::move(value)); return *this;} /** *

The IPv6 addresses of the instance.

*/ inline Instance& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *

The IPv6 addresses of the instance.

*/ inline Instance& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; } /** *

The IPv6 addresses of the instance.

*/ inline Instance& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *

The IP address type of the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type of the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type of the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type of the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type of the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

*/ inline Instance& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type of the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

*/ inline Instance& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} /** *

The size of the vCPU and the amount of RAM for the instance.

*/ inline const InstanceHardware& GetHardware() const{ return m_hardware; } /** *

The size of the vCPU and the amount of RAM for the instance.

*/ inline bool HardwareHasBeenSet() const { return m_hardwareHasBeenSet; } /** *

The size of the vCPU and the amount of RAM for the instance.

*/ inline void SetHardware(const InstanceHardware& value) { m_hardwareHasBeenSet = true; m_hardware = value; } /** *

The size of the vCPU and the amount of RAM for the instance.

*/ inline void SetHardware(InstanceHardware&& value) { m_hardwareHasBeenSet = true; m_hardware = std::move(value); } /** *

The size of the vCPU and the amount of RAM for the instance.

*/ inline Instance& WithHardware(const InstanceHardware& value) { SetHardware(value); return *this;} /** *

The size of the vCPU and the amount of RAM for the instance.

*/ inline Instance& WithHardware(InstanceHardware&& value) { SetHardware(std::move(value)); return *this;} /** *

Information about the public ports and monthly data transfer rates for the * instance.

*/ inline const InstanceNetworking& GetNetworking() const{ return m_networking; } /** *

Information about the public ports and monthly data transfer rates for the * instance.

*/ inline bool NetworkingHasBeenSet() const { return m_networkingHasBeenSet; } /** *

Information about the public ports and monthly data transfer rates for the * instance.

*/ inline void SetNetworking(const InstanceNetworking& value) { m_networkingHasBeenSet = true; m_networking = value; } /** *

Information about the public ports and monthly data transfer rates for the * instance.

*/ inline void SetNetworking(InstanceNetworking&& value) { m_networkingHasBeenSet = true; m_networking = std::move(value); } /** *

Information about the public ports and monthly data transfer rates for the * instance.

*/ inline Instance& WithNetworking(const InstanceNetworking& value) { SetNetworking(value); return *this;} /** *

Information about the public ports and monthly data transfer rates for the * instance.

*/ inline Instance& WithNetworking(InstanceNetworking&& value) { SetNetworking(std::move(value)); return *this;} /** *

The status code and the state (e.g., running) for the * instance.

*/ inline const InstanceState& GetState() const{ return m_state; } /** *

The status code and the state (e.g., running) for the * instance.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The status code and the state (e.g., running) for the * instance.

*/ inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The status code and the state (e.g., running) for the * instance.

*/ inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The status code and the state (e.g., running) for the * instance.

*/ inline Instance& WithState(const InstanceState& value) { SetState(value); return *this;} /** *

The status code and the state (e.g., running) for the * instance.

*/ inline Instance& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;} /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline Instance& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline Instance& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The user name for connecting to the instance (e.g., * ec2-user).

*/ inline Instance& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline const Aws::String& GetSshKeyName() const{ return m_sshKeyName; } /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; } /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline void SetSshKeyName(const Aws::String& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = value; } /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline void SetSshKeyName(Aws::String&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::move(value); } /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline void SetSshKeyName(const char* value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName.assign(value); } /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline Instance& WithSshKeyName(const Aws::String& value) { SetSshKeyName(value); return *this;} /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline Instance& WithSshKeyName(Aws::String&& value) { SetSshKeyName(std::move(value)); return *this;} /** *

The name of the SSH key being used to connect to the instance (e.g., * LightsailDefaultKeyPair).

*/ inline Instance& WithSshKeyName(const char* value) { SetSshKeyName(value); return *this;} /** *

The metadata options for the Amazon Lightsail instance.

*/ inline const InstanceMetadataOptions& GetMetadataOptions() const{ return m_metadataOptions; } /** *

The metadata options for the Amazon Lightsail instance.

*/ inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; } /** *

The metadata options for the Amazon Lightsail instance.

*/ inline void SetMetadataOptions(const InstanceMetadataOptions& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; } /** *

The metadata options for the Amazon Lightsail instance.

*/ inline void SetMetadataOptions(InstanceMetadataOptions&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); } /** *

The metadata options for the Amazon Lightsail instance.

*/ inline Instance& WithMetadataOptions(const InstanceMetadataOptions& value) { SetMetadataOptions(value); return *this;} /** *

The metadata options for the Amazon Lightsail instance.

*/ inline Instance& WithMetadataOptions(InstanceMetadataOptions&& value) { SetMetadataOptions(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_supportCode; bool m_supportCodeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResourceLocation m_location; bool m_locationHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_blueprintId; bool m_blueprintIdHasBeenSet = false; Aws::String m_blueprintName; bool m_blueprintNameHasBeenSet = false; Aws::String m_bundleId; bool m_bundleIdHasBeenSet = false; Aws::Vector m_addOns; bool m_addOnsHasBeenSet = false; bool m_isStaticIp; bool m_isStaticIpHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; Aws::String m_publicIpAddress; bool m_publicIpAddressHasBeenSet = false; Aws::Vector m_ipv6Addresses; bool m_ipv6AddressesHasBeenSet = false; IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; InstanceHardware m_hardware; bool m_hardwareHasBeenSet = false; InstanceNetworking m_networking; bool m_networkingHasBeenSet = false; InstanceState m_state; bool m_stateHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::String m_sshKeyName; bool m_sshKeyNameHasBeenSet = false; InstanceMetadataOptions m_metadataOptions; bool m_metadataOptionsHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws