com.amazonaws.services.worklink.model.DescribeWebsiteCertificateAuthorityResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-worklink Show documentation
Show all versions of aws-java-sdk-worklink Show documentation
The AWS Java SDK for Amazon WorkLink module holds the client classes that are used for communicating with Amazon WorkLink Service
The newest version!
/*
* Copyright 2019-2024 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.worklink.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeWebsiteCertificateAuthorityResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
Cloneable {
/**
*
* The root certificate of the certificate authority.
*
*/
private String certificate;
/**
*
* The time that the certificate authority was added.
*
*/
private java.util.Date createdTime;
/**
*
* The certificate name to display.
*
*/
private String displayName;
/**
*
* The root certificate of the certificate authority.
*
*
* @param certificate
* The root certificate of the certificate authority.
*/
public void setCertificate(String certificate) {
this.certificate = certificate;
}
/**
*
* The root certificate of the certificate authority.
*
*
* @return The root certificate of the certificate authority.
*/
public String getCertificate() {
return this.certificate;
}
/**
*
* The root certificate of the certificate authority.
*
*
* @param certificate
* The root certificate of the certificate authority.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeWebsiteCertificateAuthorityResult withCertificate(String certificate) {
setCertificate(certificate);
return this;
}
/**
*
* The time that the certificate authority was added.
*
*
* @param createdTime
* The time that the certificate authority was added.
*/
public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime;
}
/**
*
* The time that the certificate authority was added.
*
*
* @return The time that the certificate authority was added.
*/
public java.util.Date getCreatedTime() {
return this.createdTime;
}
/**
*
* The time that the certificate authority was added.
*
*
* @param createdTime
* The time that the certificate authority was added.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeWebsiteCertificateAuthorityResult withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The certificate name to display.
*
*
* @param displayName
* The certificate name to display.
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
* The certificate name to display.
*
*
* @return The certificate name to display.
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
* The certificate name to display.
*
*
* @param displayName
* The certificate name to display.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeWebsiteCertificateAuthorityResult withDisplayName(String displayName) {
setDisplayName(displayName);
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 (getCertificate() != null)
sb.append("Certificate: ").append(getCertificate()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getDisplayName() != null)
sb.append("DisplayName: ").append(getDisplayName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeWebsiteCertificateAuthorityResult == false)
return false;
DescribeWebsiteCertificateAuthorityResult other = (DescribeWebsiteCertificateAuthorityResult) obj;
if (other.getCertificate() == null ^ this.getCertificate() == null)
return false;
if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getDisplayName() == null ^ this.getDisplayName() == null)
return false;
if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCertificate() == null) ? 0 : getCertificate().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode());
return hashCode;
}
@Override
public DescribeWebsiteCertificateAuthorityResult clone() {
try {
return (DescribeWebsiteCertificateAuthorityResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy