/** * 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 CreateCertificateRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateCertificateRequest(); // 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 "CreateCertificate"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the certificate.

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

The name for the certificate.

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

The name for the certificate.

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

The name for the certificate.

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

The name for the certificate.

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

The name for the certificate.

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

The name for the certificate.

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

The name for the certificate.

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

The domain name (e.g., example.com) for the certificate.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The domain name (e.g., example.com) for the certificate.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The domain name (e.g., example.com) for the certificate.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The domain name (e.g., example.com) for the certificate.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The domain name (e.g., example.com) for the certificate.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The domain name (e.g., example.com) for the certificate.

*/ inline CreateCertificateRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The domain name (e.g., example.com) for the certificate.

*/ inline CreateCertificateRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The domain name (e.g., example.com) for the certificate.

*/ inline CreateCertificateRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline const Aws::Vector& GetSubjectAlternativeNames() const{ return m_subjectAlternativeNames; } /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; } /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline void SetSubjectAlternativeNames(const Aws::Vector& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; } /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline void SetSubjectAlternativeNames(Aws::Vector&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::move(value); } /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline CreateCertificateRequest& WithSubjectAlternativeNames(const Aws::Vector& value) { SetSubjectAlternativeNames(value); return *this;} /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline CreateCertificateRequest& WithSubjectAlternativeNames(Aws::Vector&& value) { SetSubjectAlternativeNames(std::move(value)); return *this;} /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline CreateCertificateRequest& AddSubjectAlternativeNames(const Aws::String& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; } /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline CreateCertificateRequest& AddSubjectAlternativeNames(Aws::String&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(std::move(value)); return *this; } /** *

An array of strings that specify the alternate domains (e.g., * example2.com) and subdomains (e.g., blog.example.com) * for the certificate.

You can specify a maximum of nine alternate domains * (in addition to the primary domain name).

Wildcard domain entries (e.g., * *.example.com) are not supported.

*/ inline CreateCertificateRequest& AddSubjectAlternativeNames(const char* value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; } /** *

The tag keys and optional values to add to the certificate 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 certificate 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 certificate 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 certificate 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 certificate during create.

*

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

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

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

*

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

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

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

*

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

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

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

*

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

*/ inline CreateCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_certificateName; bool m_certificateNameHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::Vector m_subjectAlternativeNames; bool m_subjectAlternativeNamesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws