/* * 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.apigatewayv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents a domain name. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DomainName implements Serializable, Cloneable, StructuredPojo { /** ** The API mapping selection expression. *
*/ private String apiMappingSelectionExpression; /** ** The name of the DomainName resource. *
*/ private String domainName; /** ** The domain name configurations. *
*/ private java.util.List* The mutual TLS authentication configuration for a custom domain name. *
*/ private MutualTlsAuthentication mutualTlsAuthentication; /** ** The collection of tags associated with a domain name. *
*/ private java.util.Map* The API mapping selection expression. *
* * @param apiMappingSelectionExpression * The API mapping selection expression. */ public void setApiMappingSelectionExpression(String apiMappingSelectionExpression) { this.apiMappingSelectionExpression = apiMappingSelectionExpression; } /** ** The API mapping selection expression. *
* * @return The API mapping selection expression. */ public String getApiMappingSelectionExpression() { return this.apiMappingSelectionExpression; } /** ** The API mapping selection expression. *
* * @param apiMappingSelectionExpression * The API mapping selection expression. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainName withApiMappingSelectionExpression(String apiMappingSelectionExpression) { setApiMappingSelectionExpression(apiMappingSelectionExpression); return this; } /** ** The name of the DomainName resource. *
* * @param domainName * The name of the DomainName resource. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The name of the DomainName resource. *
* * @return The name of the DomainName resource. */ public String getDomainName() { return this.domainName; } /** ** The name of the DomainName resource. *
* * @param domainName * The name of the DomainName resource. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainName withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** The domain name configurations. *
* * @return The domain name configurations. */ public java.util.List* The domain name configurations. *
* * @param domainNameConfigurations * The domain name configurations. */ public void setDomainNameConfigurations(java.util.Collection* The domain name configurations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDomainNameConfigurations(java.util.Collection)} or * {@link #withDomainNameConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param domainNameConfigurations * The domain name configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainName withDomainNameConfigurations(DomainNameConfiguration... domainNameConfigurations) { if (this.domainNameConfigurations == null) { setDomainNameConfigurations(new java.util.ArrayList* The domain name configurations. *
* * @param domainNameConfigurations * The domain name configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainName withDomainNameConfigurations(java.util.Collection* The mutual TLS authentication configuration for a custom domain name. *
* * @param mutualTlsAuthentication * The mutual TLS authentication configuration for a custom domain name. */ public void setMutualTlsAuthentication(MutualTlsAuthentication mutualTlsAuthentication) { this.mutualTlsAuthentication = mutualTlsAuthentication; } /** ** The mutual TLS authentication configuration for a custom domain name. *
* * @return The mutual TLS authentication configuration for a custom domain name. */ public MutualTlsAuthentication getMutualTlsAuthentication() { return this.mutualTlsAuthentication; } /** ** The mutual TLS authentication configuration for a custom domain name. *
* * @param mutualTlsAuthentication * The mutual TLS authentication configuration for a custom domain name. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainName withMutualTlsAuthentication(MutualTlsAuthentication mutualTlsAuthentication) { setMutualTlsAuthentication(mutualTlsAuthentication); return this; } /** ** The collection of tags associated with a domain name. *
* * @return The collection of tags associated with a domain name. */ public java.util.Map* The collection of tags associated with a domain name. *
* * @param tags * The collection of tags associated with a domain name. */ public void setTags(java.util.Map* The collection of tags associated with a domain name. *
* * @param tags * The collection of tags associated with a domain name. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainName withTags(java.util.Map