/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppSync { namespace Model { /** *

Describes a configuration for a custom domain.

See Also:

AWS * API Reference

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

A description of the DomainName configuration.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the DomainName configuration.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the DomainName configuration.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the DomainName configuration.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the DomainName configuration.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the DomainName configuration.

*/ inline DomainNameConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the DomainName configuration.

*/ inline DomainNameConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the DomainName configuration.

*/ inline DomainNameConfig& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline DomainNameConfig& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline DomainNameConfig& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate. This can be an Certificate * Manager (ACM) certificate or an Identity and Access Management (IAM) server * certificate.

*/ inline DomainNameConfig& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

The domain name that AppSync provides.

*/ inline const Aws::String& GetAppsyncDomainName() const{ return m_appsyncDomainName; } /** *

The domain name that AppSync provides.

*/ inline bool AppsyncDomainNameHasBeenSet() const { return m_appsyncDomainNameHasBeenSet; } /** *

The domain name that AppSync provides.

*/ inline void SetAppsyncDomainName(const Aws::String& value) { m_appsyncDomainNameHasBeenSet = true; m_appsyncDomainName = value; } /** *

The domain name that AppSync provides.

*/ inline void SetAppsyncDomainName(Aws::String&& value) { m_appsyncDomainNameHasBeenSet = true; m_appsyncDomainName = std::move(value); } /** *

The domain name that AppSync provides.

*/ inline void SetAppsyncDomainName(const char* value) { m_appsyncDomainNameHasBeenSet = true; m_appsyncDomainName.assign(value); } /** *

The domain name that AppSync provides.

*/ inline DomainNameConfig& WithAppsyncDomainName(const Aws::String& value) { SetAppsyncDomainName(value); return *this;} /** *

The domain name that AppSync provides.

*/ inline DomainNameConfig& WithAppsyncDomainName(Aws::String&& value) { SetAppsyncDomainName(std::move(value)); return *this;} /** *

The domain name that AppSync provides.

*/ inline DomainNameConfig& WithAppsyncDomainName(const char* value) { SetAppsyncDomainName(value); return *this;} /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline DomainNameConfig& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline DomainNameConfig& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

The ID of your Amazon Route 53 hosted zone.

*/ inline DomainNameConfig& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::String m_appsyncDomainName; bool m_appsyncDomainNameHasBeenSet = false; Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws