* The base64 PEM-encoded certificate specified by the CertificateArn
parameter.
*
* The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your * private CA certificate. *
*/ private String certificateChain; /** *
* The base64 PEM-encoded certificate specified by the CertificateArn
parameter.
*
CertificateArn
parameter.
*/
public void setCertificate(String certificate) {
this.certificate = certificate;
}
/**
*
* The base64 PEM-encoded certificate specified by the CertificateArn
parameter.
*
CertificateArn
parameter.
*/
public String getCertificate() {
return this.certificate;
}
/**
*
* The base64 PEM-encoded certificate specified by the CertificateArn
parameter.
*
CertificateArn
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCertificateResult withCertificate(String certificate) {
setCertificate(certificate);
return this;
}
/**
* * The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your * private CA certificate. *
* * @param certificateChain * The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign * your private CA certificate. */ public void setCertificateChain(String certificateChain) { this.certificateChain = certificateChain; } /** ** The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your * private CA certificate. *
* * @return The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign * your private CA certificate. */ public String getCertificateChain() { return this.certificateChain; } /** ** The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your * private CA certificate. *
* * @param certificateChain * The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign * your private CA certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCertificateResult withCertificateChain(String certificateChain) { setCertificateChain(certificateChain); 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 (getCertificateChain() != null) sb.append("CertificateChain: ").append(getCertificateChain()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetCertificateResult == false) return false; GetCertificateResult other = (GetCertificateResult) obj; if (other.getCertificate() == null ^ this.getCertificate() == null) return false; if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == 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 + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); return hashCode; } @Override public GetCertificateResult clone() { try { return (GetCertificateResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }