/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class CreateLoadBalancerTlsCertificateRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateLoadBalancerTlsCertificateRequest(); // 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 "CreateLoadBalancerTlsCertificate"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The load balancer name where you want to create the SSL/TLS certificate.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The SSL/TLS certificate name.

You can have up to 10 certificates in * your account at one time. Each Lightsail load balancer can have up to 2 * certificates associated with it at one time. There is also an overall limit to * the number of certificates that can be issue in a 365-day period. For more * information, see Limits.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

The domain name (e.g., example.com) for your SSL/TLS * certificate.

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

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

An array of strings listing alternative domains and subdomains for your * SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a * maximum of 9 alternative names (in addition to the 1 primary domain). We do not * support wildcards (e.g., *.example.com).

*/ inline CreateLoadBalancerTlsCertificateRequest& 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 CreateLoadBalancerTlsCertificateRequest& 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 CreateLoadBalancerTlsCertificateRequest& 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 CreateLoadBalancerTlsCertificateRequest& 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 CreateLoadBalancerTlsCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = 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; }; } // namespace Model } // namespace Lightsail } // namespace Aws