/* * 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.acmpca.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions. Your private certificate authority (CA) can configure Online Certificate * Status Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation * information about certificates as requested by clients, and a CRL contains an updated list of certificates revoked by * your CA. For more information, see RevokeCertificate and * Setting up a certificate * revocation method in the Amazon Web Services Private Certificate Authority User Guide. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RevocationConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is typically * updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes. *
*/ private CrlConfiguration crlConfiguration; /** ** Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA. When * you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. *
*/ private OcspConfiguration ocspConfiguration; /** ** Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is typically * updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes. *
* * @param crlConfiguration * Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is * typically updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update * fails, Amazon Web Services Private CA makes further attempts every 15 minutes. */ public void setCrlConfiguration(CrlConfiguration crlConfiguration) { this.crlConfiguration = crlConfiguration; } /** ** Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is typically * updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes. *
* * @return Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is * typically updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update * fails, Amazon Web Services Private CA makes further attempts every 15 minutes. */ public CrlConfiguration getCrlConfiguration() { return this.crlConfiguration; } /** ** Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is typically * updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes. *
* * @param crlConfiguration * Configuration of the certificate revocation list (CRL), if any, maintained by your private CA. A CRL is * typically updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update * fails, Amazon Web Services Private CA makes further attempts every 15 minutes. * @return Returns a reference to this object so that method calls can be chained together. */ public RevocationConfiguration withCrlConfiguration(CrlConfiguration crlConfiguration) { setCrlConfiguration(crlConfiguration); return this; } /** ** Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA. When * you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. *
* * @param ocspConfiguration * Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA. * When you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. */ public void setOcspConfiguration(OcspConfiguration ocspConfiguration) { this.ocspConfiguration = ocspConfiguration; } /** ** Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA. When * you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. *
* * @return Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private * CA. When you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. */ public OcspConfiguration getOcspConfiguration() { return this.ocspConfiguration; } /** ** Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA. When * you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. *
* * @param ocspConfiguration * Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA. * When you revoke a certificate, OCSP responses may take up to 60 minutes to reflect the new status. * @return Returns a reference to this object so that method calls can be chained together. */ public RevocationConfiguration withOcspConfiguration(OcspConfiguration ocspConfiguration) { setOcspConfiguration(ocspConfiguration); 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 (getCrlConfiguration() != null) sb.append("CrlConfiguration: ").append(getCrlConfiguration()).append(","); if (getOcspConfiguration() != null) sb.append("OcspConfiguration: ").append(getOcspConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RevocationConfiguration == false) return false; RevocationConfiguration other = (RevocationConfiguration) obj; if (other.getCrlConfiguration() == null ^ this.getCrlConfiguration() == null) return false; if (other.getCrlConfiguration() != null && other.getCrlConfiguration().equals(this.getCrlConfiguration()) == false) return false; if (other.getOcspConfiguration() == null ^ this.getOcspConfiguration() == null) return false; if (other.getOcspConfiguration() != null && other.getOcspConfiguration().equals(this.getOcspConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCrlConfiguration() == null) ? 0 : getCrlConfiguration().hashCode()); hashCode = prime * hashCode + ((getOcspConfiguration() == null) ? 0 : getOcspConfiguration().hashCode()); return hashCode; } @Override public RevocationConfiguration clone() { try { return (RevocationConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.acmpca.model.transform.RevocationConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }