/** * 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 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 AWS_LIGHTSAIL_API Instance { public: Instance(); Instance(Aws::Utils::Json::JsonView jsonValue); Instance& operator=(Aws::Utils::Json::JsonView jsonValue); 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 Lightsail * Dev 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 Lightsail * Dev 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 Lightsail * Dev 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 Lightsail * Dev 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 Lightsail * Dev 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 Lightsail * Dev 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 Lightsail * Dev 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 Lightsail * Dev 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 address of the instance.

*/ inline const Aws::String& GetIpv6Address() const{ return m_ipv6Address; } /** *

The IPv6 address of the instance.

*/ inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; } /** *

The IPv6 address of the instance.

*/ inline void SetIpv6Address(const Aws::String& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = value; } /** *

The IPv6 address of the instance.

*/ inline void SetIpv6Address(Aws::String&& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = std::move(value); } /** *

The IPv6 address of the instance.

*/ inline void SetIpv6Address(const char* value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address.assign(value); } /** *

The IPv6 address of the instance.

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

The IPv6 address of the instance.

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

The IPv6 address of the instance.

*/ inline Instance& WithIpv6Address(const char* value) { SetIpv6Address(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;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_supportCode; bool m_supportCodeHasBeenSet; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; ResourceLocation m_location; bool m_locationHasBeenSet; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; Aws::String m_blueprintId; bool m_blueprintIdHasBeenSet; Aws::String m_blueprintName; bool m_blueprintNameHasBeenSet; Aws::String m_bundleId; bool m_bundleIdHasBeenSet; Aws::Vector m_addOns; bool m_addOnsHasBeenSet; bool m_isStaticIp; bool m_isStaticIpHasBeenSet; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet; Aws::String m_publicIpAddress; bool m_publicIpAddressHasBeenSet; Aws::String m_ipv6Address; bool m_ipv6AddressHasBeenSet; InstanceHardware m_hardware; bool m_hardwareHasBeenSet; InstanceNetworking m_networking; bool m_networkingHasBeenSet; InstanceState m_state; bool m_stateHasBeenSet; Aws::String m_username; bool m_usernameHasBeenSet; Aws::String m_sshKeyName; bool m_sshKeyNameHasBeenSet; }; } // namespace Model } // namespace Lightsail } // namespace Aws