/** * 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 namespace Aws { namespace Lightsail { namespace Model { /** */ class CreateLoadBalancerRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateLoadBalancerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateLoadBalancer"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of your load balancer.

*/ inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; } /** *

The name of your load balancer.

*/ inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; } /** *

The name of your load balancer.

*/ inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; } /** *

The name of your load balancer.

*/ inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); } /** *

The name of your load balancer.

*/ inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); } /** *

The name of your load balancer.

*/ inline CreateLoadBalancerRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;} /** *

The name of your load balancer.

*/ inline CreateLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;} /** *

The name of your load balancer.

*/ inline CreateLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;} /** *

The instance port where you're creating your load balancer.

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

The instance port where you're creating your load balancer.

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

The instance port where you're creating your load balancer.

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

The instance port where you're creating your load balancer.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The path you provided to perform the load balancer health check. If you * didn't specify a health check path, Lightsail uses the root path of your website * (e.g., "/").

You may want to specify a custom health check * path other than the root of your application if your home page loads slowly or * has a lot of media or scripting on it.

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

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline const Aws::String& GetCertificateName() const{ return m_certificateName; } /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; } /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; } /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); } /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); } /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline CreateLoadBalancerRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;} /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline CreateLoadBalancerRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;} /** *

The name of the SSL/TLS certificate.

If you specify * certificateName, then certificateDomainName is * required (and vice-versa).

*/ inline CreateLoadBalancerRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;} /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline const Aws::String& GetCertificateDomainName() const{ return m_certificateDomainName; } /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline bool CertificateDomainNameHasBeenSet() const { return m_certificateDomainNameHasBeenSet; } /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline void SetCertificateDomainName(const Aws::String& value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName = value; } /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline void SetCertificateDomainName(Aws::String&& value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName = std::move(value); } /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline void SetCertificateDomainName(const char* value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName.assign(value); } /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline CreateLoadBalancerRequest& WithCertificateDomainName(const Aws::String& value) { SetCertificateDomainName(value); return *this;} /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline CreateLoadBalancerRequest& WithCertificateDomainName(Aws::String&& value) { SetCertificateDomainName(std::move(value)); return *this;} /** *

The domain name with which your certificate is associated (e.g., * example.com).

If you specify * certificateDomainName, then certificateName is * required (and vice-versa).

*/ inline CreateLoadBalancerRequest& WithCertificateDomainName(const char* value) { SetCertificateDomainName(value); return *this;} /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline const Aws::Vector& GetCertificateAlternativeNames() const{ return m_certificateAlternativeNames; } /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline bool CertificateAlternativeNamesHasBeenSet() const { return m_certificateAlternativeNamesHasBeenSet; } /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline void SetCertificateAlternativeNames(const Aws::Vector& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames = value; } /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline void SetCertificateAlternativeNames(Aws::Vector&& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames = std::move(value); } /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline CreateLoadBalancerRequest& WithCertificateAlternativeNames(const Aws::Vector& value) { SetCertificateAlternativeNames(value); return *this;} /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline CreateLoadBalancerRequest& WithCertificateAlternativeNames(Aws::Vector&& value) { SetCertificateAlternativeNames(std::move(value)); return *this;} /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(const Aws::String& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(value); return *this; } /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(Aws::String&& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(std::move(value)); return *this; } /** *

The optional alternative domains and subdomains to use with your SSL/TLS * certificate (e.g., www.example.com, example.com, * m.example.com, blog.example.com).

*/ inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(const char* value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(value); return *this; } /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

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

The IP address type for the load balancer.

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

The default value is dualstack.

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

The IP address type for the load balancer.

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

The default value is dualstack.

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

The IP address type for the load balancer.

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

The default value is dualstack.

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

The IP address type for the load balancer.

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

The default value is dualstack.

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

The IP address type for the load balancer.

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

The default value is dualstack.

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

The IP address type for the load balancer.

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

The default value is dualstack.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

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

The name of the TLS policy to apply to the load balancer.

Use the GetLoadBalancerTlsPolicies * action to get a list of TLS policy names that you can specify.

For more * information about load balancer TLS policies, see Configuring * TLS security policies on your Amazon Lightsail load balancers in the * Amazon Lightsail Developer Guide.

*/ inline CreateLoadBalancerRequest& WithTlsPolicyName(const char* value) { SetTlsPolicyName(value); return *this;} private: Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = false; int m_instancePort; bool m_instancePortHasBeenSet = false; Aws::String m_healthCheckPath; bool m_healthCheckPathHasBeenSet = false; Aws::String m_certificateName; bool m_certificateNameHasBeenSet = false; Aws::String m_certificateDomainName; bool m_certificateDomainNameHasBeenSet = false; Aws::Vector m_certificateAlternativeNames; bool m_certificateAlternativeNamesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; Aws::String m_tlsPolicyName; bool m_tlsPolicyNameHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws