/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes a load balancer.

See Also:

AWS * API Reference

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The name of the load balancer (e.g., my-load-balancer).

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The Amazon Resource Name (ARN) of the load balancer.

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

The support code. Include this code in your email to support when you have * questions about your Lightsail load balancer. 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 your Lightsail load balancer. 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 your Lightsail load balancer. 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 your Lightsail load balancer. 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 your Lightsail load balancer. 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 your Lightsail load balancer. This code enables our support team * to look up your Lightsail information more easily.

*/ inline LoadBalancer& 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 your Lightsail load balancer. This code enables our support team * to look up your Lightsail information more easily.

*/ inline LoadBalancer& 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 your Lightsail load balancer. This code enables our support team * to look up your Lightsail information more easily.

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

The date when your load balancer was created.

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

The date when your load balancer was created.

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

The date when your load balancer was created.

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

The date when your load balancer was created.

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

The date when your load balancer was created.

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

The date when your load balancer was created.

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

The AWS Region where your load balancer was created (e.g., * us-east-2a). Lightsail automatically creates your load balancer * across Availability Zones.

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

The AWS Region where your load balancer was created (e.g., * us-east-2a). Lightsail automatically creates your load balancer * across Availability Zones.

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

The AWS Region where your load balancer was created (e.g., * us-east-2a). Lightsail automatically creates your load balancer * across Availability Zones.

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

The AWS Region where your load balancer was created (e.g., * us-east-2a). Lightsail automatically creates your load balancer * across Availability Zones.

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

The AWS Region where your load balancer was created (e.g., * us-east-2a). Lightsail automatically creates your load balancer * across Availability Zones.

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

The AWS Region where your load balancer was created (e.g., * us-east-2a). Lightsail automatically creates your load balancer * across Availability Zones.

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

The resource type (e.g., LoadBalancer.

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

The resource type (e.g., LoadBalancer.

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

The resource type (e.g., LoadBalancer.

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

The resource type (e.g., LoadBalancer.

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

The resource type (e.g., LoadBalancer.

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

The resource type (e.g., LoadBalancer.

*/ inline LoadBalancer& 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 LoadBalancer& 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 LoadBalancer& 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 LoadBalancer& 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 LoadBalancer& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The DNS name of your Lightsail load balancer.

*/ inline const Aws::String& GetDnsName() const{ return m_dnsName; } /** *

The DNS name of your Lightsail load balancer.

*/ inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; } /** *

The DNS name of your Lightsail load balancer.

*/ inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; } /** *

The DNS name of your Lightsail load balancer.

*/ inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); } /** *

The DNS name of your Lightsail load balancer.

*/ inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); } /** *

The DNS name of your Lightsail load balancer.

*/ inline LoadBalancer& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;} /** *

The DNS name of your Lightsail load balancer.

*/ inline LoadBalancer& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;} /** *

The DNS name of your Lightsail load balancer.

*/ inline LoadBalancer& WithDnsName(const char* value) { SetDnsName(value); return *this;} /** *

The status of your load balancer. Valid values are below.

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

The status of your load balancer. Valid values are below.

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

The status of your load balancer. Valid values are below.

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

The status of your load balancer. Valid values are below.

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

The status of your load balancer. Valid values are below.

*/ inline LoadBalancer& WithState(const LoadBalancerState& value) { SetState(value); return *this;} /** *

The status of your load balancer. Valid values are below.

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

The protocol you have enabled for your load balancer. Valid values are * below.

You can't just have HTTP_HTTPS, but you can have just * HTTP.

*/ inline const LoadBalancerProtocol& GetProtocol() const{ return m_protocol; } /** *

The protocol you have enabled for your load balancer. Valid values are * below.

You can't just have HTTP_HTTPS, but you can have just * HTTP.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The protocol you have enabled for your load balancer. Valid values are * below.

You can't just have HTTP_HTTPS, but you can have just * HTTP.

*/ inline void SetProtocol(const LoadBalancerProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The protocol you have enabled for your load balancer. Valid values are * below.

You can't just have HTTP_HTTPS, but you can have just * HTTP.

*/ inline void SetProtocol(LoadBalancerProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The protocol you have enabled for your load balancer. Valid values are * below.

You can't just have HTTP_HTTPS, but you can have just * HTTP.

*/ inline LoadBalancer& WithProtocol(const LoadBalancerProtocol& value) { SetProtocol(value); return *this;} /** *

The protocol you have enabled for your load balancer. Valid values are * below.

You can't just have HTTP_HTTPS, but you can have just * HTTP.

*/ inline LoadBalancer& WithProtocol(LoadBalancerProtocol&& value) { SetProtocol(std::move(value)); return *this;} /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline const Aws::Vector& GetPublicPorts() const{ return m_publicPorts; } /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline bool PublicPortsHasBeenSet() const { return m_publicPortsHasBeenSet; } /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline void SetPublicPorts(const Aws::Vector& value) { m_publicPortsHasBeenSet = true; m_publicPorts = value; } /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline void SetPublicPorts(Aws::Vector&& value) { m_publicPortsHasBeenSet = true; m_publicPorts = std::move(value); } /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline LoadBalancer& WithPublicPorts(const Aws::Vector& value) { SetPublicPorts(value); return *this;} /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline LoadBalancer& WithPublicPorts(Aws::Vector&& value) { SetPublicPorts(std::move(value)); return *this;} /** *

An array of public port settings for your load balancer. For HTTP, use port * 80. For HTTPS, use port 443.

*/ inline LoadBalancer& AddPublicPorts(int value) { m_publicPortsHasBeenSet = true; m_publicPorts.push_back(value); return *this; } /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; } /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; } /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; } /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); } /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); } /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline LoadBalancer& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;} /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline LoadBalancer& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;} /** *

The path you specified to perform your health checks. If no path is * specified, the load balancer tries to make a request to the default (root) * page.

*/ inline LoadBalancer& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;} /** *

The port where the load balancer will direct traffic to your Lightsail * instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

*/ inline int GetInstancePort() const{ return m_instancePort; } /** *

The port where the load balancer will direct traffic to your Lightsail * instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

*/ inline bool InstancePortHasBeenSet() const { return m_instancePortHasBeenSet; } /** *

The port where the load balancer will direct traffic to your Lightsail * instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

*/ inline void SetInstancePort(int value) { m_instancePortHasBeenSet = true; m_instancePort = value; } /** *

The port where the load balancer will direct traffic to your Lightsail * instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

*/ inline LoadBalancer& WithInstancePort(int value) { SetInstancePort(value); return *this;} /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline const Aws::Vector& GetInstanceHealthSummary() const{ return m_instanceHealthSummary; } /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline bool InstanceHealthSummaryHasBeenSet() const { return m_instanceHealthSummaryHasBeenSet; } /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline void SetInstanceHealthSummary(const Aws::Vector& value) { m_instanceHealthSummaryHasBeenSet = true; m_instanceHealthSummary = value; } /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline void SetInstanceHealthSummary(Aws::Vector&& value) { m_instanceHealthSummaryHasBeenSet = true; m_instanceHealthSummary = std::move(value); } /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline LoadBalancer& WithInstanceHealthSummary(const Aws::Vector& value) { SetInstanceHealthSummary(value); return *this;} /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline LoadBalancer& WithInstanceHealthSummary(Aws::Vector&& value) { SetInstanceHealthSummary(std::move(value)); return *this;} /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline LoadBalancer& AddInstanceHealthSummary(const InstanceHealthSummary& value) { m_instanceHealthSummaryHasBeenSet = true; m_instanceHealthSummary.push_back(value); return *this; } /** *

An array of InstanceHealthSummary objects describing the health of the load * balancer.

*/ inline LoadBalancer& AddInstanceHealthSummary(InstanceHealthSummary&& value) { m_instanceHealthSummaryHasBeenSet = true; m_instanceHealthSummary.push_back(std::move(value)); return *this; } /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline const Aws::Vector& GetTlsCertificateSummaries() const{ return m_tlsCertificateSummaries; } /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline bool TlsCertificateSummariesHasBeenSet() const { return m_tlsCertificateSummariesHasBeenSet; } /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline void SetTlsCertificateSummaries(const Aws::Vector& value) { m_tlsCertificateSummariesHasBeenSet = true; m_tlsCertificateSummaries = value; } /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline void SetTlsCertificateSummaries(Aws::Vector&& value) { m_tlsCertificateSummariesHasBeenSet = true; m_tlsCertificateSummaries = std::move(value); } /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline LoadBalancer& WithTlsCertificateSummaries(const Aws::Vector& value) { SetTlsCertificateSummaries(value); return *this;} /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline LoadBalancer& WithTlsCertificateSummaries(Aws::Vector&& value) { SetTlsCertificateSummaries(std::move(value)); return *this;} /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline LoadBalancer& AddTlsCertificateSummaries(const LoadBalancerTlsCertificateSummary& value) { m_tlsCertificateSummariesHasBeenSet = true; m_tlsCertificateSummaries.push_back(value); return *this; } /** *

An array of LoadBalancerTlsCertificateSummary objects that provide additional * information about the SSL/TLS certificates. For example, if true, * the certificate is attached to the load balancer.

*/ inline LoadBalancer& AddTlsCertificateSummaries(LoadBalancerTlsCertificateSummary&& value) { m_tlsCertificateSummariesHasBeenSet = true; m_tlsCertificateSummaries.push_back(std::move(value)); return *this; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline const Aws::Map& GetConfigurationOptions() const{ return m_configurationOptions; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline bool ConfigurationOptionsHasBeenSet() const { return m_configurationOptionsHasBeenSet; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline void SetConfigurationOptions(const Aws::Map& value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions = value; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline void SetConfigurationOptions(Aws::Map&& value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions = std::move(value); } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& WithConfigurationOptions(const Aws::Map& value) { SetConfigurationOptions(value); return *this;} /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& WithConfigurationOptions(Aws::Map&& value) { SetConfigurationOptions(std::move(value)); return *this;} /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& AddConfigurationOptions(const LoadBalancerAttributeName& key, const Aws::String& value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions.emplace(key, value); return *this; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& AddConfigurationOptions(LoadBalancerAttributeName&& key, const Aws::String& value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions.emplace(std::move(key), value); return *this; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& AddConfigurationOptions(const LoadBalancerAttributeName& key, Aws::String&& value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions.emplace(key, std::move(value)); return *this; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& AddConfigurationOptions(LoadBalancerAttributeName&& key, Aws::String&& value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions.emplace(std::move(key), std::move(value)); return *this; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& AddConfigurationOptions(LoadBalancerAttributeName&& key, const char* value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions.emplace(std::move(key), value); return *this; } /** *

A string to string map of the configuration options for your load balancer. * Valid values are listed below.

*/ inline LoadBalancer& AddConfigurationOptions(const LoadBalancerAttributeName& key, const char* value) { m_configurationOptionsHasBeenSet = true; m_configurationOptions.emplace(key, value); return *this; } /** *

The IP address type of the load balancer.

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 load balancer.

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 load balancer.

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 load balancer.

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 load balancer.

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

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

The IP address type of the load balancer.

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

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

A Boolean value that indicates whether HTTPS redirection is enabled for the * load balancer.

*/ inline bool GetHttpsRedirectionEnabled() const{ return m_httpsRedirectionEnabled; } /** *

A Boolean value that indicates whether HTTPS redirection is enabled for the * load balancer.

*/ inline bool HttpsRedirectionEnabledHasBeenSet() const { return m_httpsRedirectionEnabledHasBeenSet; } /** *

A Boolean value that indicates whether HTTPS redirection is enabled for the * load balancer.

*/ inline void SetHttpsRedirectionEnabled(bool value) { m_httpsRedirectionEnabledHasBeenSet = true; m_httpsRedirectionEnabled = value; } /** *

A Boolean value that indicates whether HTTPS redirection is enabled for the * load balancer.

*/ inline LoadBalancer& WithHttpsRedirectionEnabled(bool value) { SetHttpsRedirectionEnabled(value); return *this;} /** *

The name of the TLS security policy for the load balancer.

*/ inline const Aws::String& GetTlsPolicyName() const{ return m_tlsPolicyName; } /** *

The name of the TLS security policy for the load balancer.

*/ inline bool TlsPolicyNameHasBeenSet() const { return m_tlsPolicyNameHasBeenSet; } /** *

The name of the TLS security policy for the load balancer.

*/ inline void SetTlsPolicyName(const Aws::String& value) { m_tlsPolicyNameHasBeenSet = true; m_tlsPolicyName = value; } /** *

The name of the TLS security policy for the load balancer.

*/ inline void SetTlsPolicyName(Aws::String&& value) { m_tlsPolicyNameHasBeenSet = true; m_tlsPolicyName = std::move(value); } /** *

The name of the TLS security policy for the load balancer.

*/ inline void SetTlsPolicyName(const char* value) { m_tlsPolicyNameHasBeenSet = true; m_tlsPolicyName.assign(value); } /** *

The name of the TLS security policy for the load balancer.

*/ inline LoadBalancer& WithTlsPolicyName(const Aws::String& value) { SetTlsPolicyName(value); return *this;} /** *

The name of the TLS security policy for the load balancer.

*/ inline LoadBalancer& WithTlsPolicyName(Aws::String&& value) { SetTlsPolicyName(std::move(value)); return *this;} /** *

The name of the TLS security policy for the load balancer.

*/ inline LoadBalancer& WithTlsPolicyName(const char* value) { SetTlsPolicyName(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_dnsName; bool m_dnsNameHasBeenSet = false; LoadBalancerState m_state; bool m_stateHasBeenSet = false; LoadBalancerProtocol m_protocol; bool m_protocolHasBeenSet = false; Aws::Vector m_publicPorts; bool m_publicPortsHasBeenSet = false; Aws::String m_healthCheckPath; bool m_healthCheckPathHasBeenSet = false; int m_instancePort; bool m_instancePortHasBeenSet = false; Aws::Vector m_instanceHealthSummary; bool m_instanceHealthSummaryHasBeenSet = false; Aws::Vector m_tlsCertificateSummaries; bool m_tlsCertificateSummariesHasBeenSet = false; Aws::Map m_configurationOptions; bool m_configurationOptionsHasBeenSet = false; IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; bool m_httpsRedirectionEnabled; bool m_httpsRedirectionEnabledHasBeenSet = false; Aws::String m_tlsPolicyName; bool m_tlsPolicyNameHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws