
com.amazonaws.services.apigateway.model.GetDomainNameResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-api-gateway Show documentation
/*
* Copyright 2011-2016 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;
/**
*
* Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
*
*
*/
public class GetDomainNameResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name of the DomainName resource.
*
*/
private String domainName;
/**
*
* The name of the certificate.
*
*/
private String certificateName;
/**
*
* The date when the certificate was uploaded, in ISO 8601 format.
*
*/
private java.util.Date certificateUploadDate;
/**
*
* The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.
*
*/
private String distributionDomainName;
/**
*
* 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 GetDomainNameResult withDomainName(String domainName) {
setDomainName(domainName);
return this;
}
/**
*
* The name of the certificate.
*
*
* @param certificateName
* The name of the certificate.
*/
public void setCertificateName(String certificateName) {
this.certificateName = certificateName;
}
/**
*
* The name of the certificate.
*
*
* @return The name of the certificate.
*/
public String getCertificateName() {
return this.certificateName;
}
/**
*
* The name of the certificate.
*
*
* @param certificateName
* The name of the certificate.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDomainNameResult withCertificateName(String certificateName) {
setCertificateName(certificateName);
return this;
}
/**
*
* The date when the certificate was uploaded, in ISO 8601 format.
*
*
* @param certificateUploadDate
* The date when the certificate was uploaded, in ISO 8601 format.
*/
public void setCertificateUploadDate(java.util.Date certificateUploadDate) {
this.certificateUploadDate = certificateUploadDate;
}
/**
*
* The date when the certificate was uploaded, in ISO 8601 format.
*
*
* @return The date when the certificate was uploaded, in ISO 8601 format.
*/
public java.util.Date getCertificateUploadDate() {
return this.certificateUploadDate;
}
/**
*
* The date when the certificate was uploaded, in ISO 8601 format.
*
*
* @param certificateUploadDate
* The date when the certificate was uploaded, in ISO 8601 format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDomainNameResult withCertificateUploadDate(java.util.Date certificateUploadDate) {
setCertificateUploadDate(certificateUploadDate);
return this;
}
/**
*
* The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.
*
*
* @param distributionDomainName
* The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront
* documentation.
*/
public void setDistributionDomainName(String distributionDomainName) {
this.distributionDomainName = distributionDomainName;
}
/**
*
* The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.
*
*
* @return The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront
* documentation.
*/
public String getDistributionDomainName() {
return this.distributionDomainName;
}
/**
*
* The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.
*
*
* @param distributionDomainName
* The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront
* documentation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDomainNameResult withDistributionDomainName(String distributionDomainName) {
setDistributionDomainName(distributionDomainName);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @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: " + getDomainName() + ",");
if (getCertificateName() != null)
sb.append("CertificateName: " + getCertificateName() + ",");
if (getCertificateUploadDate() != null)
sb.append("CertificateUploadDate: " + getCertificateUploadDate() + ",");
if (getDistributionDomainName() != null)
sb.append("DistributionDomainName: " + getDistributionDomainName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetDomainNameResult == false)
return false;
GetDomainNameResult other = (GetDomainNameResult) 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.getCertificateUploadDate() == null ^ this.getCertificateUploadDate() == null)
return false;
if (other.getCertificateUploadDate() != null && other.getCertificateUploadDate().equals(this.getCertificateUploadDate()) == false)
return false;
if (other.getDistributionDomainName() == null ^ this.getDistributionDomainName() == null)
return false;
if (other.getDistributionDomainName() != null && other.getDistributionDomainName().equals(this.getDistributionDomainName()) == 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 + ((getCertificateUploadDate() == null) ? 0 : getCertificateUploadDate().hashCode());
hashCode = prime * hashCode + ((getDistributionDomainName() == null) ? 0 : getDistributionDomainName().hashCode());
return hashCode;
}
@Override
public GetDomainNameResult clone() {
try {
return (GetDomainNameResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}