All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lightsail.model.LoadBalancerTlsCertificateRenewalSummary Maven / Gradle / Ivy

/*
 * 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.lightsail.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 Lightsail's managed renewal for the certificate. *

*

* The renewal status of the certificate. *

*

* The following renewal status are possible: *

*
    *
  • *

    * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names in the * certificate. No further action is required. *

    *
  • *
  • *

    * PendingValidation - Lightsail couldn't automatically validate one or more domain names in the * certificate. You must take action to validate these domain names or the certificate won't be renewed. If you used DNS * validation, check to make sure your certificate's domain validation records exist in your domain's DNS, and that your * certificate remains in use. *

    *
  • *
  • *

    * Success - All domain names in the certificate are validated, and Lightsail renewed the * certificate. No further action is required. *

    *
  • *
  • *

    * Failed - One or more domain names were not validated before the certificate expired, and * Lightsail did not renew the certificate. You can request a new certificate using the CreateCertificate * action. *

    *
  • *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancerTlsCertificateRenewalSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The renewal status of the certificate. *

*

* The following renewal status are possible: *

*
    *
  • *

    * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of * the certificate. No further action is required. *

    *
  • *
  • *

    * PendingValidation - Lightsail couldn't automatically validate one or more domain names of * the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check * to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate * remains in use. *

    *
  • *
  • *

    * Success - All domain names in the certificate are validated, and Lightsail renewed the * certificate. No further action is required. *

    *
  • *
  • *

    * Failed - One or more domain names were not validated before the certificate expired, and * Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

    *
  • *
*/ private String renewalStatus; /** *

* Contains information about the validation of each domain name in the certificate, as it pertains to Lightsail's * managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate * request. *

*/ private java.util.List domainValidationOptions; /** *

* The renewal status of the certificate. *

*

* The following renewal status are possible: *

*
    *
  • *

    * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of * the certificate. No further action is required. *

    *
  • *
  • *

    * PendingValidation - Lightsail couldn't automatically validate one or more domain names of * the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check * to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate * remains in use. *

    *
  • *
  • *

    * Success - All domain names in the certificate are validated, and Lightsail renewed the * certificate. No further action is required. *

    *
  • *
  • *

    * Failed - One or more domain names were not validated before the certificate expired, and * Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

    *
  • *
* * @param renewalStatus * The renewal status of the certificate.

*

* The following renewal status are possible: *

*
    *
  • *

    * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain * names of the certificate. No further action is required. *

    *
  • *
  • *

    * PendingValidation - Lightsail couldn't automatically validate one or more domain * names of the certificate. You must take action to validate these domain names or the certificate won't be * renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and * that your certificate remains in use. *

    *
  • *
  • *

    * Success - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required. *

    *
  • *
  • *

    * Failed - One or more domain names were not validated before the certificate expired, * and Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

    *
  • * @see LoadBalancerTlsCertificateRenewalStatus */ public void setRenewalStatus(String renewalStatus) { this.renewalStatus = renewalStatus; } /** *

    * The renewal status of the certificate. *

    *

    * The following renewal status are possible: *

    *
      *
    • *

      * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of * the certificate. No further action is required. *

      *
    • *
    • *

      * PendingValidation - Lightsail couldn't automatically validate one or more domain names of * the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check * to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate * remains in use. *

      *
    • *
    • *

      * Success - All domain names in the certificate are validated, and Lightsail renewed the * certificate. No further action is required. *

      *
    • *
    • *

      * Failed - One or more domain names were not validated before the certificate expired, and * Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

      *
    • *
    * * @return The renewal status of the certificate.

    *

    * The following renewal status are possible: *

    *
      *
    • *

      * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain * names of the certificate. No further action is required. *

      *
    • *
    • *

      * PendingValidation - Lightsail couldn't automatically validate one or more domain * names of the certificate. You must take action to validate these domain names or the certificate won't be * renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and * that your certificate remains in use. *

      *
    • *
    • *

      * Success - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required. *

      *
    • *
    • *

      * Failed - One or more domain names were not validated before the certificate * expired, and Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

      *
    • * @see LoadBalancerTlsCertificateRenewalStatus */ public String getRenewalStatus() { return this.renewalStatus; } /** *

      * The renewal status of the certificate. *

      *

      * The following renewal status are possible: *

      *
        *
      • *

        * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of * the certificate. No further action is required. *

        *
      • *
      • *

        * PendingValidation - Lightsail couldn't automatically validate one or more domain names of * the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check * to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate * remains in use. *

        *
      • *
      • *

        * Success - All domain names in the certificate are validated, and Lightsail renewed the * certificate. No further action is required. *

        *
      • *
      • *

        * Failed - One or more domain names were not validated before the certificate expired, and * Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

        *
      • *
      * * @param renewalStatus * The renewal status of the certificate.

      *

      * The following renewal status are possible: *

      *
        *
      • *

        * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain * names of the certificate. No further action is required. *

        *
      • *
      • *

        * PendingValidation - Lightsail couldn't automatically validate one or more domain * names of the certificate. You must take action to validate these domain names or the certificate won't be * renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and * that your certificate remains in use. *

        *
      • *
      • *

        * Success - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required. *

        *
      • *
      • *

        * Failed - One or more domain names were not validated before the certificate expired, * and Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see LoadBalancerTlsCertificateRenewalStatus */ public LoadBalancerTlsCertificateRenewalSummary withRenewalStatus(String renewalStatus) { setRenewalStatus(renewalStatus); return this; } /** *

        * The renewal status of the certificate. *

        *

        * The following renewal status are possible: *

        *
          *
        • *

          * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of * the certificate. No further action is required. *

          *
        • *
        • *

          * PendingValidation - Lightsail couldn't automatically validate one or more domain names of * the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check * to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate * remains in use. *

          *
        • *
        • *

          * Success - All domain names in the certificate are validated, and Lightsail renewed the * certificate. No further action is required. *

          *
        • *
        • *

          * Failed - One or more domain names were not validated before the certificate expired, and * Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

          *
        • *
        * * @param renewalStatus * The renewal status of the certificate.

        *

        * The following renewal status are possible: *

        *
          *
        • *

          * PendingAutoRenewal - Lightsail is attempting to automatically validate the domain * names of the certificate. No further action is required. *

          *
        • *
        • *

          * PendingValidation - Lightsail couldn't automatically validate one or more domain * names of the certificate. You must take action to validate these domain names or the certificate won't be * renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and * that your certificate remains in use. *

          *
        • *
        • *

          * Success - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required. *

          *
        • *
        • *

          * Failed - One or more domain names were not validated before the certificate expired, * and Lightsail did not renew the certificate. You can request a new certificate using the * CreateCertificate action. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see LoadBalancerTlsCertificateRenewalStatus */ public LoadBalancerTlsCertificateRenewalSummary withRenewalStatus(LoadBalancerTlsCertificateRenewalStatus renewalStatus) { this.renewalStatus = renewalStatus.toString(); return this; } /** *

          * Contains information about the validation of each domain name in the certificate, as it pertains to Lightsail's * managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate * request. *

          * * @return Contains information about the validation of each domain name in the certificate, as it pertains to * Lightsail's managed renewal. This is different from the initial validation that occurs as a result of the * RequestCertificate request. */ public java.util.List getDomainValidationOptions() { return domainValidationOptions; } /** *

          * Contains information about the validation of each domain name in the certificate, as it pertains to Lightsail's * managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate * request. *

          * * @param domainValidationOptions * Contains information about the validation of each domain name in the certificate, as it pertains to * Lightsail's managed renewal. This is different from the initial validation that occurs as a result of the * RequestCertificate request. */ public void setDomainValidationOptions(java.util.Collection domainValidationOptions) { if (domainValidationOptions == null) { this.domainValidationOptions = null; return; } this.domainValidationOptions = new java.util.ArrayList(domainValidationOptions); } /** *

          * Contains information about the validation of each domain name in the certificate, as it pertains to Lightsail's * managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate * request. *

          *

          * 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 * Lightsail's managed renewal. This is different from the initial validation that occurs as a result of the * RequestCertificate request. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsCertificateRenewalSummary withDomainValidationOptions(LoadBalancerTlsCertificateDomainValidationOption... domainValidationOptions) { if (this.domainValidationOptions == null) { setDomainValidationOptions(new java.util.ArrayList(domainValidationOptions.length)); } for (LoadBalancerTlsCertificateDomainValidationOption ele : domainValidationOptions) { this.domainValidationOptions.add(ele); } return this; } /** *

          * Contains information about the validation of each domain name in the certificate, as it pertains to Lightsail's * managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate * request. *

          * * @param domainValidationOptions * Contains information about the validation of each domain name in the certificate, as it pertains to * Lightsail's managed renewal. This is different from the initial validation that occurs as a result of the * RequestCertificate request. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerTlsCertificateRenewalSummary withDomainValidationOptions( java.util.Collection domainValidationOptions) { setDomainValidationOptions(domainValidationOptions); 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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoadBalancerTlsCertificateRenewalSummary == false) return false; LoadBalancerTlsCertificateRenewalSummary other = (LoadBalancerTlsCertificateRenewalSummary) 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; 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()); return hashCode; } @Override public LoadBalancerTlsCertificateRenewalSummary clone() { try { return (LoadBalancerTlsCertificateRenewalSummary) 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.lightsail.model.transform.LoadBalancerTlsCertificateRenewalSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy