/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.amplify.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a domain association that associates a custom domain with an Amplify app. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DomainAssociation implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) for the domain association. *
*/ private String domainAssociationArn; /** ** The name of the domain. *
*/ private String domainName; /** ** Enables the automated creation of subdomains for branches. *
*/ private Boolean enableAutoSubDomain; /** ** Sets branch patterns for automatic subdomain creation. *
*/ private java.util.List* The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. *
*/ private String autoSubDomainIAMRole; /** ** The current status of the domain association. *
*/ private String domainStatus; /** ** The reason for the current status of the domain association. *
*/ private String statusReason; /** ** The DNS record for certificate verification. *
*/ private String certificateVerificationDNSRecord; /** ** The subdomains for the domain association. *
*/ private java.util.List* The Amazon Resource Name (ARN) for the domain association. *
* * @param domainAssociationArn * The Amazon Resource Name (ARN) for the domain association. */ public void setDomainAssociationArn(String domainAssociationArn) { this.domainAssociationArn = domainAssociationArn; } /** ** The Amazon Resource Name (ARN) for the domain association. *
* * @return The Amazon Resource Name (ARN) for the domain association. */ public String getDomainAssociationArn() { return this.domainAssociationArn; } /** ** The Amazon Resource Name (ARN) for the domain association. *
* * @param domainAssociationArn * The Amazon Resource Name (ARN) for the domain association. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withDomainAssociationArn(String domainAssociationArn) { setDomainAssociationArn(domainAssociationArn); return this; } /** ** The name of the domain. *
* * @param domainName * The name of the domain. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The name of the domain. *
* * @return The name of the domain. */ public String getDomainName() { return this.domainName; } /** ** The name of the domain. *
* * @param domainName * The name of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** Enables the automated creation of subdomains for branches. *
* * @param enableAutoSubDomain * Enables the automated creation of subdomains for branches. */ public void setEnableAutoSubDomain(Boolean enableAutoSubDomain) { this.enableAutoSubDomain = enableAutoSubDomain; } /** ** Enables the automated creation of subdomains for branches. *
* * @return Enables the automated creation of subdomains for branches. */ public Boolean getEnableAutoSubDomain() { return this.enableAutoSubDomain; } /** ** Enables the automated creation of subdomains for branches. *
* * @param enableAutoSubDomain * Enables the automated creation of subdomains for branches. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withEnableAutoSubDomain(Boolean enableAutoSubDomain) { setEnableAutoSubDomain(enableAutoSubDomain); return this; } /** ** Enables the automated creation of subdomains for branches. *
* * @return Enables the automated creation of subdomains for branches. */ public Boolean isEnableAutoSubDomain() { return this.enableAutoSubDomain; } /** ** Sets branch patterns for automatic subdomain creation. *
* * @return Sets branch patterns for automatic subdomain creation. */ public java.util.List* Sets branch patterns for automatic subdomain creation. *
* * @param autoSubDomainCreationPatterns * Sets branch patterns for automatic subdomain creation. */ public void setAutoSubDomainCreationPatterns(java.util.Collection* Sets branch patterns for automatic subdomain creation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAutoSubDomainCreationPatterns(java.util.Collection)} or * {@link #withAutoSubDomainCreationPatterns(java.util.Collection)} if you want to override the existing values. *
* * @param autoSubDomainCreationPatterns * Sets branch patterns for automatic subdomain creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withAutoSubDomainCreationPatterns(String... autoSubDomainCreationPatterns) { if (this.autoSubDomainCreationPatterns == null) { setAutoSubDomainCreationPatterns(new java.util.ArrayList* Sets branch patterns for automatic subdomain creation. *
* * @param autoSubDomainCreationPatterns * Sets branch patterns for automatic subdomain creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withAutoSubDomainCreationPatterns(java.util.Collection* The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. *
* * @param autoSubDomainIAMRole * The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. */ public void setAutoSubDomainIAMRole(String autoSubDomainIAMRole) { this.autoSubDomainIAMRole = autoSubDomainIAMRole; } /** ** The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. *
* * @return The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. */ public String getAutoSubDomainIAMRole() { return this.autoSubDomainIAMRole; } /** ** The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. *
* * @param autoSubDomainIAMRole * The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for * automatically creating subdomains. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withAutoSubDomainIAMRole(String autoSubDomainIAMRole) { setAutoSubDomainIAMRole(autoSubDomainIAMRole); return this; } /** ** The current status of the domain association. *
* * @param domainStatus * The current status of the domain association. * @see DomainStatus */ public void setDomainStatus(String domainStatus) { this.domainStatus = domainStatus; } /** ** The current status of the domain association. *
* * @return The current status of the domain association. * @see DomainStatus */ public String getDomainStatus() { return this.domainStatus; } /** ** The current status of the domain association. *
* * @param domainStatus * The current status of the domain association. * @return Returns a reference to this object so that method calls can be chained together. * @see DomainStatus */ public DomainAssociation withDomainStatus(String domainStatus) { setDomainStatus(domainStatus); return this; } /** ** The current status of the domain association. *
* * @param domainStatus * The current status of the domain association. * @return Returns a reference to this object so that method calls can be chained together. * @see DomainStatus */ public DomainAssociation withDomainStatus(DomainStatus domainStatus) { this.domainStatus = domainStatus.toString(); return this; } /** ** The reason for the current status of the domain association. *
* * @param statusReason * The reason for the current status of the domain association. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** ** The reason for the current status of the domain association. *
* * @return The reason for the current status of the domain association. */ public String getStatusReason() { return this.statusReason; } /** ** The reason for the current status of the domain association. *
* * @param statusReason * The reason for the current status of the domain association. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** ** The DNS record for certificate verification. *
* * @param certificateVerificationDNSRecord * The DNS record for certificate verification. */ public void setCertificateVerificationDNSRecord(String certificateVerificationDNSRecord) { this.certificateVerificationDNSRecord = certificateVerificationDNSRecord; } /** ** The DNS record for certificate verification. *
* * @return The DNS record for certificate verification. */ public String getCertificateVerificationDNSRecord() { return this.certificateVerificationDNSRecord; } /** ** The DNS record for certificate verification. *
* * @param certificateVerificationDNSRecord * The DNS record for certificate verification. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withCertificateVerificationDNSRecord(String certificateVerificationDNSRecord) { setCertificateVerificationDNSRecord(certificateVerificationDNSRecord); return this; } /** ** The subdomains for the domain association. *
* * @return The subdomains for the domain association. */ public java.util.List* The subdomains for the domain association. *
* * @param subDomains * The subdomains for the domain association. */ public void setSubDomains(java.util.Collection* The subdomains for the domain association. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubDomains(java.util.Collection)} or {@link #withSubDomains(java.util.Collection)} if you want to * override the existing values. *
* * @param subDomains * The subdomains for the domain association. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withSubDomains(SubDomain... subDomains) { if (this.subDomains == null) { setSubDomains(new java.util.ArrayList* The subdomains for the domain association. *
* * @param subDomains * The subdomains for the domain association. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainAssociation withSubDomains(java.util.Collection