/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a domain association that associates a custom domain with an
* Amplify app. See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) for the domain association.
*/ inline const Aws::String& GetDomainAssociationArn() const{ return m_domainAssociationArn; } /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline bool DomainAssociationArnHasBeenSet() const { return m_domainAssociationArnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline void SetDomainAssociationArn(const Aws::String& value) { m_domainAssociationArnHasBeenSet = true; m_domainAssociationArn = value; } /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline void SetDomainAssociationArn(Aws::String&& value) { m_domainAssociationArnHasBeenSet = true; m_domainAssociationArn = std::move(value); } /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline void SetDomainAssociationArn(const char* value) { m_domainAssociationArnHasBeenSet = true; m_domainAssociationArn.assign(value); } /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline DomainAssociation& WithDomainAssociationArn(const Aws::String& value) { SetDomainAssociationArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline DomainAssociation& WithDomainAssociationArn(Aws::String&& value) { SetDomainAssociationArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the domain association.
*/ inline DomainAssociation& WithDomainAssociationArn(const char* value) { SetDomainAssociationArn(value); return *this;} /** *The name of the domain.
*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *The name of the domain.
*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *The name of the domain.
*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *The name of the domain.
*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *The name of the domain.
*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *The name of the domain.
*/ inline DomainAssociation& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *The name of the domain.
*/ inline DomainAssociation& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *The name of the domain.
*/ inline DomainAssociation& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *Enables the automated creation of subdomains for branches.
*/ inline bool GetEnableAutoSubDomain() const{ return m_enableAutoSubDomain; } /** *Enables the automated creation of subdomains for branches.
*/ inline bool EnableAutoSubDomainHasBeenSet() const { return m_enableAutoSubDomainHasBeenSet; } /** *Enables the automated creation of subdomains for branches.
*/ inline void SetEnableAutoSubDomain(bool value) { m_enableAutoSubDomainHasBeenSet = true; m_enableAutoSubDomain = value; } /** *Enables the automated creation of subdomains for branches.
*/ inline DomainAssociation& WithEnableAutoSubDomain(bool value) { SetEnableAutoSubDomain(value); return *this;} /** *Sets branch patterns for automatic subdomain creation.
*/ inline const Aws::VectorSets branch patterns for automatic subdomain creation.
*/ inline bool AutoSubDomainCreationPatternsHasBeenSet() const { return m_autoSubDomainCreationPatternsHasBeenSet; } /** *Sets branch patterns for automatic subdomain creation.
*/ inline void SetAutoSubDomainCreationPatterns(const Aws::VectorSets branch patterns for automatic subdomain creation.
*/ inline void SetAutoSubDomainCreationPatterns(Aws::VectorSets branch patterns for automatic subdomain creation.
*/ inline DomainAssociation& WithAutoSubDomainCreationPatterns(const Aws::VectorSets branch patterns for automatic subdomain creation.
*/ inline DomainAssociation& WithAutoSubDomainCreationPatterns(Aws::VectorSets branch patterns for automatic subdomain creation.
*/ inline DomainAssociation& AddAutoSubDomainCreationPatterns(const Aws::String& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; } /** *Sets branch patterns for automatic subdomain creation.
*/ inline DomainAssociation& AddAutoSubDomainCreationPatterns(Aws::String&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(std::move(value)); return *this; } /** *Sets branch patterns for automatic subdomain creation.
*/ inline DomainAssociation& AddAutoSubDomainCreationPatterns(const char* value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; } /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline const Aws::String& GetAutoSubDomainIAMRole() const{ return m_autoSubDomainIAMRole; } /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline bool AutoSubDomainIAMRoleHasBeenSet() const { return m_autoSubDomainIAMRoleHasBeenSet; } /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline void SetAutoSubDomainIAMRole(const Aws::String& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = value; } /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline void SetAutoSubDomainIAMRole(Aws::String&& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = std::move(value); } /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline void SetAutoSubDomainIAMRole(const char* value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole.assign(value); } /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline DomainAssociation& WithAutoSubDomainIAMRole(const Aws::String& value) { SetAutoSubDomainIAMRole(value); return *this;} /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline DomainAssociation& WithAutoSubDomainIAMRole(Aws::String&& value) { SetAutoSubDomainIAMRole(std::move(value)); return *this;} /** *The required AWS Identity and Access Management (IAM) service role for the * Amazon Resource Name (ARN) for automatically creating subdomains.
*/ inline DomainAssociation& WithAutoSubDomainIAMRole(const char* value) { SetAutoSubDomainIAMRole(value); return *this;} /** *The current status of the domain association.
*/ inline const DomainStatus& GetDomainStatus() const{ return m_domainStatus; } /** *The current status of the domain association.
*/ inline bool DomainStatusHasBeenSet() const { return m_domainStatusHasBeenSet; } /** *The current status of the domain association.
*/ inline void SetDomainStatus(const DomainStatus& value) { m_domainStatusHasBeenSet = true; m_domainStatus = value; } /** *The current status of the domain association.
*/ inline void SetDomainStatus(DomainStatus&& value) { m_domainStatusHasBeenSet = true; m_domainStatus = std::move(value); } /** *The current status of the domain association.
*/ inline DomainAssociation& WithDomainStatus(const DomainStatus& value) { SetDomainStatus(value); return *this;} /** *The current status of the domain association.
*/ inline DomainAssociation& WithDomainStatus(DomainStatus&& value) { SetDomainStatus(std::move(value)); return *this;} /** *The reason for the current status of the domain association.
*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *The reason for the current status of the domain association.
*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *The reason for the current status of the domain association.
*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *The reason for the current status of the domain association.
*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *The reason for the current status of the domain association.
*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *The reason for the current status of the domain association.
*/ inline DomainAssociation& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *The reason for the current status of the domain association.
*/ inline DomainAssociation& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *The reason for the current status of the domain association.
*/ inline DomainAssociation& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *The DNS record for certificate verification.
*/ inline const Aws::String& GetCertificateVerificationDNSRecord() const{ return m_certificateVerificationDNSRecord; } /** *The DNS record for certificate verification.
*/ inline bool CertificateVerificationDNSRecordHasBeenSet() const { return m_certificateVerificationDNSRecordHasBeenSet; } /** *The DNS record for certificate verification.
*/ inline void SetCertificateVerificationDNSRecord(const Aws::String& value) { m_certificateVerificationDNSRecordHasBeenSet = true; m_certificateVerificationDNSRecord = value; } /** *The DNS record for certificate verification.
*/ inline void SetCertificateVerificationDNSRecord(Aws::String&& value) { m_certificateVerificationDNSRecordHasBeenSet = true; m_certificateVerificationDNSRecord = std::move(value); } /** *The DNS record for certificate verification.
*/ inline void SetCertificateVerificationDNSRecord(const char* value) { m_certificateVerificationDNSRecordHasBeenSet = true; m_certificateVerificationDNSRecord.assign(value); } /** *The DNS record for certificate verification.
*/ inline DomainAssociation& WithCertificateVerificationDNSRecord(const Aws::String& value) { SetCertificateVerificationDNSRecord(value); return *this;} /** *The DNS record for certificate verification.
*/ inline DomainAssociation& WithCertificateVerificationDNSRecord(Aws::String&& value) { SetCertificateVerificationDNSRecord(std::move(value)); return *this;} /** *The DNS record for certificate verification.
*/ inline DomainAssociation& WithCertificateVerificationDNSRecord(const char* value) { SetCertificateVerificationDNSRecord(value); return *this;} /** *The subdomains for the domain association.
*/ inline const Aws::VectorThe subdomains for the domain association.
*/ inline bool SubDomainsHasBeenSet() const { return m_subDomainsHasBeenSet; } /** *The subdomains for the domain association.
*/ inline void SetSubDomains(const Aws::VectorThe subdomains for the domain association.
*/ inline void SetSubDomains(Aws::VectorThe subdomains for the domain association.
*/ inline DomainAssociation& WithSubDomains(const Aws::VectorThe subdomains for the domain association.
*/ inline DomainAssociation& WithSubDomains(Aws::VectorThe subdomains for the domain association.
*/ inline DomainAssociation& AddSubDomains(const SubDomain& value) { m_subDomainsHasBeenSet = true; m_subDomains.push_back(value); return *this; } /** *The subdomains for the domain association.
*/ inline DomainAssociation& AddSubDomains(SubDomain&& value) { m_subDomainsHasBeenSet = true; m_subDomains.push_back(std::move(value)); return *this; } private: Aws::String m_domainAssociationArn; bool m_domainAssociationArnHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; bool m_enableAutoSubDomain; bool m_enableAutoSubDomainHasBeenSet = false; Aws::Vector