/* * 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.certificatemanager.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the status of ACM's managed renewal for the certificate.
* This structure exists only when the certificate type is AMAZON_ISSUED
.
*
* The status of ACM's managed * renewal of the certificate. *
*/ private String renewalStatus; /** *
* Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different
* from the initial validation that occurs as a result of the RequestCertificate request. This field exists
* only when the certificate type is AMAZON_ISSUED
.
*
* The reason that a renewal request was unsuccessful. *
*/ private String renewalStatusReason; /** ** The time at which the renewal summary was last updated. *
*/ private java.util.Date updatedAt; /** ** The status of ACM's managed * renewal of the certificate. *
* * @param renewalStatus * The status of ACM's managed * renewal of the certificate. * @see RenewalStatus */ public void setRenewalStatus(String renewalStatus) { this.renewalStatus = renewalStatus; } /** ** The status of ACM's managed * renewal of the certificate. *
* * @return The status of ACM's managed * renewal of the certificate. * @see RenewalStatus */ public String getRenewalStatus() { return this.renewalStatus; } /** ** The status of ACM's managed * renewal of the certificate. *
* * @param renewalStatus * The status of ACM's managed * renewal of the certificate. * @return Returns a reference to this object so that method calls can be chained together. * @see RenewalStatus */ public RenewalSummary withRenewalStatus(String renewalStatus) { setRenewalStatus(renewalStatus); return this; } /** ** The status of ACM's managed * renewal of the certificate. *
* * @param renewalStatus * The status of ACM's managed * renewal of the certificate. * @see RenewalStatus */ public void setRenewalStatus(RenewalStatus renewalStatus) { withRenewalStatus(renewalStatus); } /** ** The status of ACM's managed * renewal of the certificate. *
* * @param renewalStatus * The status of ACM's managed * renewal of the certificate. * @return Returns a reference to this object so that method calls can be chained together. * @see RenewalStatus */ public RenewalSummary withRenewalStatus(RenewalStatus renewalStatus) { this.renewalStatus = renewalStatus.toString(); return this; } /** *
* Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different
* from the initial validation that occurs as a result of the RequestCertificate request. This field exists
* only when the certificate type is AMAZON_ISSUED
.
*
AMAZON_ISSUED
.
*/
public java.util.List
* Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different
* from the initial validation that occurs as a result of the RequestCertificate request. This field exists
* only when the certificate type is AMAZON_ISSUED
.
*
AMAZON_ISSUED
.
*/
public void setDomainValidationOptions(java.util.Collection
* Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different
* from the initial validation that occurs as a result of the RequestCertificate request. This field exists
* only when the certificate type is AMAZON_ISSUED
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setDomainValidationOptions(java.util.Collection)} or * {@link #withDomainValidationOptions(java.util.Collection)} if you want to override the existing values. *
* * @param domainValidationOptions * Contains information about the validation of each domain name in the certificate, as it pertains to ACM's * managed renewal. This is * different from the initial validation that occurs as a result of the RequestCertificate request. * This field exists only when the certificate type isAMAZON_ISSUED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RenewalSummary withDomainValidationOptions(DomainValidation... domainValidationOptions) {
if (this.domainValidationOptions == null) {
setDomainValidationOptions(new java.util.ArrayList
* Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different
* from the initial validation that occurs as a result of the RequestCertificate request. This field exists
* only when the certificate type is AMAZON_ISSUED
.
*
AMAZON_ISSUED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RenewalSummary withDomainValidationOptions(java.util.Collection* The reason that a renewal request was unsuccessful. *
* * @param renewalStatusReason * The reason that a renewal request was unsuccessful. * @see FailureReason */ public void setRenewalStatusReason(String renewalStatusReason) { this.renewalStatusReason = renewalStatusReason; } /** ** The reason that a renewal request was unsuccessful. *
* * @return The reason that a renewal request was unsuccessful. * @see FailureReason */ public String getRenewalStatusReason() { return this.renewalStatusReason; } /** ** The reason that a renewal request was unsuccessful. *
* * @param renewalStatusReason * The reason that a renewal request was unsuccessful. * @return Returns a reference to this object so that method calls can be chained together. * @see FailureReason */ public RenewalSummary withRenewalStatusReason(String renewalStatusReason) { setRenewalStatusReason(renewalStatusReason); return this; } /** ** The reason that a renewal request was unsuccessful. *
* * @param renewalStatusReason * The reason that a renewal request was unsuccessful. * @see FailureReason */ public void setRenewalStatusReason(FailureReason renewalStatusReason) { withRenewalStatusReason(renewalStatusReason); } /** ** The reason that a renewal request was unsuccessful. *
* * @param renewalStatusReason * The reason that a renewal request was unsuccessful. * @return Returns a reference to this object so that method calls can be chained together. * @see FailureReason */ public RenewalSummary withRenewalStatusReason(FailureReason renewalStatusReason) { this.renewalStatusReason = renewalStatusReason.toString(); return this; } /** ** The time at which the renewal summary was last updated. *
* * @param updatedAt * The time at which the renewal summary was last updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** ** The time at which the renewal summary was last updated. *
* * @return The time at which the renewal summary was last updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** ** The time at which the renewal summary was last updated. *
* * @param updatedAt * The time at which the renewal summary was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public RenewalSummary withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); 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 (getRenewalStatus() != null) sb.append("RenewalStatus: ").append(getRenewalStatus()).append(","); if (getDomainValidationOptions() != null) sb.append("DomainValidationOptions: ").append(getDomainValidationOptions()).append(","); if (getRenewalStatusReason() != null) sb.append("RenewalStatusReason: ").append(getRenewalStatusReason()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RenewalSummary == false) return false; RenewalSummary other = (RenewalSummary) obj; if (other.getRenewalStatus() == null ^ this.getRenewalStatus() == null) return false; if (other.getRenewalStatus() != null && other.getRenewalStatus().equals(this.getRenewalStatus()) == false) return false; if (other.getDomainValidationOptions() == null ^ this.getDomainValidationOptions() == null) return false; if (other.getDomainValidationOptions() != null && other.getDomainValidationOptions().equals(this.getDomainValidationOptions()) == false) return false; if (other.getRenewalStatusReason() == null ^ this.getRenewalStatusReason() == null) return false; if (other.getRenewalStatusReason() != null && other.getRenewalStatusReason().equals(this.getRenewalStatusReason()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRenewalStatus() == null) ? 0 : getRenewalStatus().hashCode()); hashCode = prime * hashCode + ((getDomainValidationOptions() == null) ? 0 : getDomainValidationOptions().hashCode()); hashCode = prime * hashCode + ((getRenewalStatusReason() == null) ? 0 : getRenewalStatusReason().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public RenewalSummary clone() { try { return (RenewalSummary) 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.certificatemanager.model.transform.RenewalSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }