* Base64-encoded certificate authority (CA) certificate. *
*/ private String certificate; /** ** Base64-encoded certificate chain that includes any intermediate certificates and chains up to root certificate * that you used to sign your private CA certificate. The chain does not include your private CA certificate. If * this is a root CA, the value will be null. *
*/ private String certificateChain; /** ** Base64-encoded certificate authority (CA) certificate. *
* * @param certificate * Base64-encoded certificate authority (CA) certificate. */ public void setCertificate(String certificate) { this.certificate = certificate; } /** ** Base64-encoded certificate authority (CA) certificate. *
* * @return Base64-encoded certificate authority (CA) certificate. */ public String getCertificate() { return this.certificate; } /** ** Base64-encoded certificate authority (CA) certificate. *
* * @param certificate * Base64-encoded certificate authority (CA) certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCertificateAuthorityCertificateResult withCertificate(String certificate) { setCertificate(certificate); return this; } /** ** Base64-encoded certificate chain that includes any intermediate certificates and chains up to root certificate * that you used to sign your private CA certificate. The chain does not include your private CA certificate. If * this is a root CA, the value will be null. *
* * @param certificateChain * Base64-encoded certificate chain that includes any intermediate certificates and chains up to root * certificate that you used to sign your private CA certificate. The chain does not include your private CA * certificate. If this is a root CA, the value will be null. */ public void setCertificateChain(String certificateChain) { this.certificateChain = certificateChain; } /** ** Base64-encoded certificate chain that includes any intermediate certificates and chains up to root certificate * that you used to sign your private CA certificate. The chain does not include your private CA certificate. If * this is a root CA, the value will be null. *
* * @return Base64-encoded certificate chain that includes any intermediate certificates and chains up to root * certificate that you used to sign your private CA certificate. The chain does not include your private CA * certificate. If this is a root CA, the value will be null. */ public String getCertificateChain() { return this.certificateChain; } /** ** Base64-encoded certificate chain that includes any intermediate certificates and chains up to root certificate * that you used to sign your private CA certificate. The chain does not include your private CA certificate. If * this is a root CA, the value will be null. *
* * @param certificateChain * Base64-encoded certificate chain that includes any intermediate certificates and chains up to root * certificate that you used to sign your private CA certificate. The chain does not include your private CA * certificate. If this is a root CA, the value will be null. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCertificateAuthorityCertificateResult 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 GetCertificateAuthorityCertificateResult == false) return false; GetCertificateAuthorityCertificateResult other = (GetCertificateAuthorityCertificateResult) 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 GetCertificateAuthorityCertificateResult clone() { try { return (GetCertificateAuthorityCertificateResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }