
com.amazonaws.services.apigateway.model.CreateDomainNameRequest Maven / Gradle / Ivy
/*
* 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.apigateway.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* A request to create a new domain name.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDomainNameRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the DomainName resource.
*
*/
private String domainName;
/**
*
* The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
*
*/
private String certificateName;
/**
*
* [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name
* provided by your certificate authority.
*
*/
private String certificateBody;
/**
*
* [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
*
*/
private String certificatePrivateKey;
/**
*
* [Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any
* blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your
* certificate chain must start with intermediate certificates and end with the root certificate. Use the
* intermediate certificates that were provided by your certificate authority. Do not include any intermediaries
* that are not in the chain of trust path.
*
*/
private String certificateChain;
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*/
private String certificateArn;
/**
*
* The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
*
*/
private String regionalCertificateName;
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*/
private String regionalCertificateArn;
/**
*
* The endpoint configuration of this DomainName showing the endpoint types of the domain name.
*
*/
private EndpointConfiguration endpointConfiguration;
/**
*
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
* and must not start with aws:
. The tag value can be up to 256 characters.
*
*/
private java.util.Map tags;
/**
*
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
*
*/
private String securityPolicy;
private MutualTlsAuthenticationInput mutualTlsAuthentication;
/**
*
* The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when
* configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
*
*/
private String ownershipVerificationCertificateArn;
/**
*
* 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 CreateDomainNameRequest withDomainName(String domainName) {
setDomainName(domainName);
return this;
}
/**
*
* The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
*
*
* @param certificateName
* The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain
* name.
*/
public void setCertificateName(String certificateName) {
this.certificateName = certificateName;
}
/**
*
* The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
*
*
* @return The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain
* name.
*/
public String getCertificateName() {
return this.certificateName;
}
/**
*
* The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
*
*
* @param certificateName
* The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain
* name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withCertificateName(String certificateName) {
setCertificateName(certificateName);
return this;
}
/**
*
* [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name
* provided by your certificate authority.
*
*
* @param certificateBody
* [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this
* domain name provided by your certificate authority.
*/
public void setCertificateBody(String certificateBody) {
this.certificateBody = certificateBody;
}
/**
*
* [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name
* provided by your certificate authority.
*
*
* @return [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this
* domain name provided by your certificate authority.
*/
public String getCertificateBody() {
return this.certificateBody;
}
/**
*
* [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name
* provided by your certificate authority.
*
*
* @param certificateBody
* [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this
* domain name provided by your certificate authority.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withCertificateBody(String certificateBody) {
setCertificateBody(certificateBody);
return this;
}
/**
*
* [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
*
*
* @param certificatePrivateKey
* [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
*/
public void setCertificatePrivateKey(String certificatePrivateKey) {
this.certificatePrivateKey = certificatePrivateKey;
}
/**
*
* [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
*
*
* @return [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
*/
public String getCertificatePrivateKey() {
return this.certificatePrivateKey;
}
/**
*
* [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
*
*
* @param certificatePrivateKey
* [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withCertificatePrivateKey(String certificatePrivateKey) {
setCertificatePrivateKey(certificatePrivateKey);
return this;
}
/**
*
* [Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any
* blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your
* certificate chain must start with intermediate certificates and end with the root certificate. Use the
* intermediate certificates that were provided by your certificate authority. Do not include any intermediaries
* that are not in the chain of trust path.
*
*
* @param certificateChain
* [Deprecated] The intermediate certificates and optionally the root certificate, one after the other
* without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root
* certificate, your certificate chain must start with intermediate certificates and end with the root
* certificate. Use the intermediate certificates that were provided by your certificate authority. Do not
* include any intermediaries that are not in the chain of trust path.
*/
public void setCertificateChain(String certificateChain) {
this.certificateChain = certificateChain;
}
/**
*
* [Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any
* blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your
* certificate chain must start with intermediate certificates and end with the root certificate. Use the
* intermediate certificates that were provided by your certificate authority. Do not include any intermediaries
* that are not in the chain of trust path.
*
*
* @return [Deprecated] The intermediate certificates and optionally the root certificate, one after the other
* without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root
* certificate, your certificate chain must start with intermediate certificates and end with the root
* certificate. Use the intermediate certificates that were provided by your certificate authority. Do not
* include any intermediaries that are not in the chain of trust path.
*/
public String getCertificateChain() {
return this.certificateChain;
}
/**
*
* [Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any
* blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your
* certificate chain must start with intermediate certificates and end with the root certificate. Use the
* intermediate certificates that were provided by your certificate authority. Do not include any intermediaries
* that are not in the chain of trust path.
*
*
* @param certificateChain
* [Deprecated] The intermediate certificates and optionally the root certificate, one after the other
* without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root
* certificate, your certificate chain must start with intermediate certificates and end with the root
* certificate. Use the intermediate certificates that were provided by your certificate authority. Do not
* include any intermediaries that are not in the chain of trust path.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withCertificateChain(String certificateChain) {
setCertificateChain(certificateChain);
return this;
}
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*
* @param certificateArn
* The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint
* for this domain name. Certificate Manager is the only supported source.
*/
public void setCertificateArn(String certificateArn) {
this.certificateArn = certificateArn;
}
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*
* @return The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint
* for this domain name. Certificate Manager is the only supported source.
*/
public String getCertificateArn() {
return this.certificateArn;
}
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*
* @param certificateArn
* The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint
* for this domain name. Certificate Manager is the only supported source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withCertificateArn(String certificateArn) {
setCertificateArn(certificateArn);
return this;
}
/**
*
* The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
*
*
* @param regionalCertificateName
* The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
*/
public void setRegionalCertificateName(String regionalCertificateName) {
this.regionalCertificateName = regionalCertificateName;
}
/**
*
* The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
*
*
* @return The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
*/
public String getRegionalCertificateName() {
return this.regionalCertificateName;
}
/**
*
* The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
*
*
* @param regionalCertificateName
* The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withRegionalCertificateName(String regionalCertificateName) {
setRegionalCertificateName(regionalCertificateName);
return this;
}
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*
* @param regionalCertificateArn
* The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for
* this domain name. Certificate Manager is the only supported source.
*/
public void setRegionalCertificateArn(String regionalCertificateArn) {
this.regionalCertificateArn = regionalCertificateArn;
}
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*
* @return The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for
* this domain name. Certificate Manager is the only supported source.
*/
public String getRegionalCertificateArn() {
return this.regionalCertificateArn;
}
/**
*
* The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for this
* domain name. Certificate Manager is the only supported source.
*
*
* @param regionalCertificateArn
* The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for
* this domain name. Certificate Manager is the only supported source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withRegionalCertificateArn(String regionalCertificateArn) {
setRegionalCertificateArn(regionalCertificateArn);
return this;
}
/**
*
* The endpoint configuration of this DomainName showing the endpoint types of the domain name.
*
*
* @param endpointConfiguration
* The endpoint configuration of this DomainName showing the endpoint types of the domain name.
*/
public void setEndpointConfiguration(EndpointConfiguration endpointConfiguration) {
this.endpointConfiguration = endpointConfiguration;
}
/**
*
* The endpoint configuration of this DomainName showing the endpoint types of the domain name.
*
*
* @return The endpoint configuration of this DomainName showing the endpoint types of the domain name.
*/
public EndpointConfiguration getEndpointConfiguration() {
return this.endpointConfiguration;
}
/**
*
* The endpoint configuration of this DomainName showing the endpoint types of the domain name.
*
*
* @param endpointConfiguration
* The endpoint configuration of this DomainName showing the endpoint types of the domain name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withEndpointConfiguration(EndpointConfiguration endpointConfiguration) {
setEndpointConfiguration(endpointConfiguration);
return this;
}
/**
*
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
* and must not start with aws:
. The tag value can be up to 256 characters.
*
*
* @return The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
* characters and must not start with aws:
. The tag value can be up to 256 characters.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
* and must not start with aws:
. The tag value can be up to 256 characters.
*
*
* @param tags
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
* characters and must not start with aws:
. The tag value can be up to 256 characters.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
* and must not start with aws:
. The tag value can be up to 256 characters.
*
*
* @param tags
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
* characters and must not start with aws:
. The tag value can be up to 256 characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see CreateDomainNameRequest#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
*
*
* @param securityPolicy
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
* @see SecurityPolicy
*/
public void setSecurityPolicy(String securityPolicy) {
this.securityPolicy = securityPolicy;
}
/**
*
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
*
*
* @return The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
* @see SecurityPolicy
*/
public String getSecurityPolicy() {
return this.securityPolicy;
}
/**
*
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
*
*
* @param securityPolicy
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SecurityPolicy
*/
public CreateDomainNameRequest withSecurityPolicy(String securityPolicy) {
setSecurityPolicy(securityPolicy);
return this;
}
/**
*
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
*
*
* @param securityPolicy
* The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
* TLS_1_0
and TLS_1_2
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SecurityPolicy
*/
public CreateDomainNameRequest withSecurityPolicy(SecurityPolicy securityPolicy) {
this.securityPolicy = securityPolicy.toString();
return this;
}
/**
* @param mutualTlsAuthentication
*/
public void setMutualTlsAuthentication(MutualTlsAuthenticationInput mutualTlsAuthentication) {
this.mutualTlsAuthentication = mutualTlsAuthentication;
}
/**
* @return
*/
public MutualTlsAuthenticationInput getMutualTlsAuthentication() {
return this.mutualTlsAuthentication;
}
/**
* @param mutualTlsAuthentication
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withMutualTlsAuthentication(MutualTlsAuthenticationInput mutualTlsAuthentication) {
setMutualTlsAuthentication(mutualTlsAuthentication);
return this;
}
/**
*
* The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when
* configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
*
*
* @param ownershipVerificationCertificateArn
* The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required
* when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the
* regionalCertificateArn.
*/
public void setOwnershipVerificationCertificateArn(String ownershipVerificationCertificateArn) {
this.ownershipVerificationCertificateArn = ownershipVerificationCertificateArn;
}
/**
*
* The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when
* configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
*
*
* @return The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only
* required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the
* regionalCertificateArn.
*/
public String getOwnershipVerificationCertificateArn() {
return this.ownershipVerificationCertificateArn;
}
/**
*
* The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when
* configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
*
*
* @param ownershipVerificationCertificateArn
* The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required
* when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the
* regionalCertificateArn.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDomainNameRequest withOwnershipVerificationCertificateArn(String ownershipVerificationCertificateArn) {
setOwnershipVerificationCertificateArn(ownershipVerificationCertificateArn);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getDomainName() != null)
sb.append("DomainName: ").append(getDomainName()).append(",");
if (getCertificateName() != null)
sb.append("CertificateName: ").append(getCertificateName()).append(",");
if (getCertificateBody() != null)
sb.append("CertificateBody: ").append(getCertificateBody()).append(",");
if (getCertificatePrivateKey() != null)
sb.append("CertificatePrivateKey: ").append(getCertificatePrivateKey()).append(",");
if (getCertificateChain() != null)
sb.append("CertificateChain: ").append(getCertificateChain()).append(",");
if (getCertificateArn() != null)
sb.append("CertificateArn: ").append(getCertificateArn()).append(",");
if (getRegionalCertificateName() != null)
sb.append("RegionalCertificateName: ").append(getRegionalCertificateName()).append(",");
if (getRegionalCertificateArn() != null)
sb.append("RegionalCertificateArn: ").append(getRegionalCertificateArn()).append(",");
if (getEndpointConfiguration() != null)
sb.append("EndpointConfiguration: ").append(getEndpointConfiguration()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getSecurityPolicy() != null)
sb.append("SecurityPolicy: ").append(getSecurityPolicy()).append(",");
if (getMutualTlsAuthentication() != null)
sb.append("MutualTlsAuthentication: ").append(getMutualTlsAuthentication()).append(",");
if (getOwnershipVerificationCertificateArn() != null)
sb.append("OwnershipVerificationCertificateArn: ").append(getOwnershipVerificationCertificateArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateDomainNameRequest == false)
return false;
CreateDomainNameRequest other = (CreateDomainNameRequest) obj;
if (other.getDomainName() == null ^ this.getDomainName() == null)
return false;
if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false)
return false;
if (other.getCertificateName() == null ^ this.getCertificateName() == null)
return false;
if (other.getCertificateName() != null && other.getCertificateName().equals(this.getCertificateName()) == false)
return false;
if (other.getCertificateBody() == null ^ this.getCertificateBody() == null)
return false;
if (other.getCertificateBody() != null && other.getCertificateBody().equals(this.getCertificateBody()) == false)
return false;
if (other.getCertificatePrivateKey() == null ^ this.getCertificatePrivateKey() == null)
return false;
if (other.getCertificatePrivateKey() != null && other.getCertificatePrivateKey().equals(this.getCertificatePrivateKey()) == false)
return false;
if (other.getCertificateChain() == null ^ this.getCertificateChain() == null)
return false;
if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false)
return false;
if (other.getCertificateArn() == null ^ this.getCertificateArn() == null)
return false;
if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false)
return false;
if (other.getRegionalCertificateName() == null ^ this.getRegionalCertificateName() == null)
return false;
if (other.getRegionalCertificateName() != null && other.getRegionalCertificateName().equals(this.getRegionalCertificateName()) == false)
return false;
if (other.getRegionalCertificateArn() == null ^ this.getRegionalCertificateArn() == null)
return false;
if (other.getRegionalCertificateArn() != null && other.getRegionalCertificateArn().equals(this.getRegionalCertificateArn()) == false)
return false;
if (other.getEndpointConfiguration() == null ^ this.getEndpointConfiguration() == null)
return false;
if (other.getEndpointConfiguration() != null && other.getEndpointConfiguration().equals(this.getEndpointConfiguration()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getSecurityPolicy() == null ^ this.getSecurityPolicy() == null)
return false;
if (other.getSecurityPolicy() != null && other.getSecurityPolicy().equals(this.getSecurityPolicy()) == false)
return false;
if (other.getMutualTlsAuthentication() == null ^ this.getMutualTlsAuthentication() == null)
return false;
if (other.getMutualTlsAuthentication() != null && other.getMutualTlsAuthentication().equals(this.getMutualTlsAuthentication()) == false)
return false;
if (other.getOwnershipVerificationCertificateArn() == null ^ this.getOwnershipVerificationCertificateArn() == null)
return false;
if (other.getOwnershipVerificationCertificateArn() != null
&& other.getOwnershipVerificationCertificateArn().equals(this.getOwnershipVerificationCertificateArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode());
hashCode = prime * hashCode + ((getCertificateName() == null) ? 0 : getCertificateName().hashCode());
hashCode = prime * hashCode + ((getCertificateBody() == null) ? 0 : getCertificateBody().hashCode());
hashCode = prime * hashCode + ((getCertificatePrivateKey() == null) ? 0 : getCertificatePrivateKey().hashCode());
hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode());
hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode());
hashCode = prime * hashCode + ((getRegionalCertificateName() == null) ? 0 : getRegionalCertificateName().hashCode());
hashCode = prime * hashCode + ((getRegionalCertificateArn() == null) ? 0 : getRegionalCertificateArn().hashCode());
hashCode = prime * hashCode + ((getEndpointConfiguration() == null) ? 0 : getEndpointConfiguration().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getSecurityPolicy() == null) ? 0 : getSecurityPolicy().hashCode());
hashCode = prime * hashCode + ((getMutualTlsAuthentication() == null) ? 0 : getMutualTlsAuthentication().hashCode());
hashCode = prime * hashCode + ((getOwnershipVerificationCertificateArn() == null) ? 0 : getOwnershipVerificationCertificateArn().hashCode());
return hashCode;
}
@Override
public CreateDomainNameRequest clone() {
return (CreateDomainNameRequest) super.clone();
}
}