com.amazonaws.services.securityhub.model.AwsCertificateManagerCertificateRenewalSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* Copyright 2016-2021 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.securityhub.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains information about the Certificate Manager managed renewal for an AMAZON_ISSUED
certificate.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsCertificateManagerCertificateRenewalSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* Information about the validation of each domain name in the certificate, as it pertains to Certificate Manager
* managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
*
*/
private java.util.List domainValidationOptions;
/**
*
* The status of the Certificate Manager managed renewal of the certificate.
*
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
|
* FAILED
*
*/
private String renewalStatus;
/**
*
* The reason that a renewal request was unsuccessful.
*
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
| DOMAIN_VALIDATION_DENIED
|
* CAA_ERROR
| PCA_LIMIT_EXCEEDED
| PCA_INVALID_ARN
|
* PCA_INVALID_STATE
| PCA_REQUEST_FAILED
| PCA_NAME_CONSTRAINTS_VALIDATION
|
* PCA_RESOURCE_NOT_FOUND
| PCA_INVALID_ARGS
| PCA_INVALID_DURATION
|
* PCA_ACCESS_DENIED
| SLR_NOT_FOUND
| OTHER
*
*/
private String renewalStatusReason;
/**
*
* Indicates when the renewal summary was last updated.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*/
private String updatedAt;
/**
*
* Information about the validation of each domain name in the certificate, as it pertains to Certificate Manager
* managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
*
*
* @return Information about the validation of each domain name in the certificate, as it pertains to Certificate
* Manager managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
*/
public java.util.List getDomainValidationOptions() {
return domainValidationOptions;
}
/**
*
* Information about the validation of each domain name in the certificate, as it pertains to Certificate Manager
* managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
*
*
* @param domainValidationOptions
* Information about the validation of each domain name in the certificate, as it pertains to Certificate
* Manager managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
*/
public void setDomainValidationOptions(java.util.Collection domainValidationOptions) {
if (domainValidationOptions == null) {
this.domainValidationOptions = null;
return;
}
this.domainValidationOptions = new java.util.ArrayList(domainValidationOptions);
}
/**
*
* Information about the validation of each domain name in the certificate, as it pertains to Certificate Manager
* managed renewal. Provided 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
* Information about the validation of each domain name in the certificate, as it pertains to Certificate
* Manager managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsCertificateManagerCertificateRenewalSummary withDomainValidationOptions(
AwsCertificateManagerCertificateDomainValidationOption... domainValidationOptions) {
if (this.domainValidationOptions == null) {
setDomainValidationOptions(new java.util.ArrayList(domainValidationOptions.length));
}
for (AwsCertificateManagerCertificateDomainValidationOption ele : domainValidationOptions) {
this.domainValidationOptions.add(ele);
}
return this;
}
/**
*
* Information about the validation of each domain name in the certificate, as it pertains to Certificate Manager
* managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
*
*
* @param domainValidationOptions
* Information about the validation of each domain name in the certificate, as it pertains to Certificate
* Manager managed renewal. Provided only when the certificate type is AMAZON_ISSUED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsCertificateManagerCertificateRenewalSummary withDomainValidationOptions(
java.util.Collection domainValidationOptions) {
setDomainValidationOptions(domainValidationOptions);
return this;
}
/**
*
* The status of the Certificate Manager managed renewal of the certificate.
*
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
|
* FAILED
*
*
* @param renewalStatus
* The status of the Certificate Manager managed renewal of the certificate.
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
|
* FAILED
*/
public void setRenewalStatus(String renewalStatus) {
this.renewalStatus = renewalStatus;
}
/**
*
* The status of the Certificate Manager managed renewal of the certificate.
*
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
|
* FAILED
*
*
* @return The status of the Certificate Manager managed renewal of the certificate.
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
* | FAILED
*/
public String getRenewalStatus() {
return this.renewalStatus;
}
/**
*
* The status of the Certificate Manager managed renewal of the certificate.
*
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
|
* FAILED
*
*
* @param renewalStatus
* The status of the Certificate Manager managed renewal of the certificate.
*
* Valid values: PENDING_AUTO_RENEWAL
| PENDING_VALIDATION
| SUCCESS
|
* FAILED
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsCertificateManagerCertificateRenewalSummary withRenewalStatus(String renewalStatus) {
setRenewalStatus(renewalStatus);
return this;
}
/**
*
* The reason that a renewal request was unsuccessful.
*
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
| DOMAIN_VALIDATION_DENIED
|
* CAA_ERROR
| PCA_LIMIT_EXCEEDED
| PCA_INVALID_ARN
|
* PCA_INVALID_STATE
| PCA_REQUEST_FAILED
| PCA_NAME_CONSTRAINTS_VALIDATION
|
* PCA_RESOURCE_NOT_FOUND
| PCA_INVALID_ARGS
| PCA_INVALID_DURATION
|
* PCA_ACCESS_DENIED
| SLR_NOT_FOUND
| OTHER
*
*
* @param renewalStatusReason
* The reason that a renewal request was unsuccessful.
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
|
* DOMAIN_VALIDATION_DENIED
| CAA_ERROR
| PCA_LIMIT_EXCEEDED
|
* PCA_INVALID_ARN
| PCA_INVALID_STATE
| PCA_REQUEST_FAILED
|
* PCA_NAME_CONSTRAINTS_VALIDATION
| PCA_RESOURCE_NOT_FOUND
|
* PCA_INVALID_ARGS
| PCA_INVALID_DURATION
| PCA_ACCESS_DENIED
|
* SLR_NOT_FOUND
| OTHER
*/
public void setRenewalStatusReason(String renewalStatusReason) {
this.renewalStatusReason = renewalStatusReason;
}
/**
*
* The reason that a renewal request was unsuccessful.
*
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
| DOMAIN_VALIDATION_DENIED
|
* CAA_ERROR
| PCA_LIMIT_EXCEEDED
| PCA_INVALID_ARN
|
* PCA_INVALID_STATE
| PCA_REQUEST_FAILED
| PCA_NAME_CONSTRAINTS_VALIDATION
|
* PCA_RESOURCE_NOT_FOUND
| PCA_INVALID_ARGS
| PCA_INVALID_DURATION
|
* PCA_ACCESS_DENIED
| SLR_NOT_FOUND
| OTHER
*
*
* @return The reason that a renewal request was unsuccessful.
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
|
* DOMAIN_VALIDATION_DENIED
| CAA_ERROR
| PCA_LIMIT_EXCEEDED
|
* PCA_INVALID_ARN
| PCA_INVALID_STATE
| PCA_REQUEST_FAILED
|
* PCA_NAME_CONSTRAINTS_VALIDATION
| PCA_RESOURCE_NOT_FOUND
|
* PCA_INVALID_ARGS
| PCA_INVALID_DURATION
| PCA_ACCESS_DENIED
|
* SLR_NOT_FOUND
| OTHER
*/
public String getRenewalStatusReason() {
return this.renewalStatusReason;
}
/**
*
* The reason that a renewal request was unsuccessful.
*
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
| DOMAIN_VALIDATION_DENIED
|
* CAA_ERROR
| PCA_LIMIT_EXCEEDED
| PCA_INVALID_ARN
|
* PCA_INVALID_STATE
| PCA_REQUEST_FAILED
| PCA_NAME_CONSTRAINTS_VALIDATION
|
* PCA_RESOURCE_NOT_FOUND
| PCA_INVALID_ARGS
| PCA_INVALID_DURATION
|
* PCA_ACCESS_DENIED
| SLR_NOT_FOUND
| OTHER
*
*
* @param renewalStatusReason
* The reason that a renewal request was unsuccessful.
*
* Valid values: NO_AVAILABLE_CONTACTS
| ADDITIONAL_VERIFICATION_REQUIRED
|
* DOMAIN_NOT_ALLOWED
| INVALID_PUBLIC_DOMAIN
|
* DOMAIN_VALIDATION_DENIED
| CAA_ERROR
| PCA_LIMIT_EXCEEDED
|
* PCA_INVALID_ARN
| PCA_INVALID_STATE
| PCA_REQUEST_FAILED
|
* PCA_NAME_CONSTRAINTS_VALIDATION
| PCA_RESOURCE_NOT_FOUND
|
* PCA_INVALID_ARGS
| PCA_INVALID_DURATION
| PCA_ACCESS_DENIED
|
* SLR_NOT_FOUND
| OTHER
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsCertificateManagerCertificateRenewalSummary withRenewalStatusReason(String renewalStatusReason) {
setRenewalStatusReason(renewalStatusReason);
return this;
}
/**
*
* Indicates when the renewal summary was last updated.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @param updatedAt
* Indicates when the renewal summary was last updated.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
*/
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* Indicates when the renewal summary was last updated.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @return Indicates when the renewal summary was last updated.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
*/
public String getUpdatedAt() {
return this.updatedAt;
}
/**
*
* Indicates when the renewal summary was last updated.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @param updatedAt
* Indicates when the renewal summary was last updated.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsCertificateManagerCertificateRenewalSummary withUpdatedAt(String 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 (getDomainValidationOptions() != null)
sb.append("DomainValidationOptions: ").append(getDomainValidationOptions()).append(",");
if (getRenewalStatus() != null)
sb.append("RenewalStatus: ").append(getRenewalStatus()).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 AwsCertificateManagerCertificateRenewalSummary == false)
return false;
AwsCertificateManagerCertificateRenewalSummary other = (AwsCertificateManagerCertificateRenewalSummary) obj;
if (other.getDomainValidationOptions() == null ^ this.getDomainValidationOptions() == null)
return false;
if (other.getDomainValidationOptions() != null && other.getDomainValidationOptions().equals(this.getDomainValidationOptions()) == false)
return false;
if (other.getRenewalStatus() == null ^ this.getRenewalStatus() == null)
return false;
if (other.getRenewalStatus() != null && other.getRenewalStatus().equals(this.getRenewalStatus()) == 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 + ((getDomainValidationOptions() == null) ? 0 : getDomainValidationOptions().hashCode());
hashCode = prime * hashCode + ((getRenewalStatus() == null) ? 0 : getRenewalStatus().hashCode());
hashCode = prime * hashCode + ((getRenewalStatusReason() == null) ? 0 : getRenewalStatusReason().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
return hashCode;
}
@Override
public AwsCertificateManagerCertificateRenewalSummary clone() {
try {
return (AwsCertificateManagerCertificateRenewalSummary) 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.securityhub.model.transform.AwsCertificateManagerCertificateRenewalSummaryMarshaller.getInstance().marshall(this,
protocolMarshaller);
}
}