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

com.amazonaws.services.auditmanager.model.ValidateAssessmentReportIntegrityResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Audit Manager module holds the client classes that are used for communicating with AWS Audit Manager Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.auditmanager.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* Specifies whether the signature key is valid. *

*/ private Boolean signatureValid; /** *

* The signature algorithm that's used to code sign the assessment report file. *

*/ private String signatureAlgorithm; /** *

* The date and time signature that specifies when the assessment report was created. *

*/ private String signatureDateTime; /** *

* The unique identifier for the validation signature key. *

*/ private String signatureKeyId; /** *

* Represents any errors that occurred when validating the assessment report. *

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

* Specifies whether the signature key is valid. *

* * @param signatureValid * Specifies whether the signature key is valid. */ public void setSignatureValid(Boolean signatureValid) { this.signatureValid = signatureValid; } /** *

* Specifies whether the signature key is valid. *

* * @return Specifies whether the signature key is valid. */ public Boolean getSignatureValid() { return this.signatureValid; } /** *

* Specifies whether the signature key is valid. *

* * @param signatureValid * Specifies whether the signature key is valid. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateAssessmentReportIntegrityResult withSignatureValid(Boolean signatureValid) { setSignatureValid(signatureValid); return this; } /** *

* Specifies whether the signature key is valid. *

* * @return Specifies whether the signature key is valid. */ public Boolean isSignatureValid() { return this.signatureValid; } /** *

* The signature algorithm that's used to code sign the assessment report file. *

* * @param signatureAlgorithm * The signature algorithm that's used to code sign the assessment report file. */ public void setSignatureAlgorithm(String signatureAlgorithm) { this.signatureAlgorithm = signatureAlgorithm; } /** *

* The signature algorithm that's used to code sign the assessment report file. *

* * @return The signature algorithm that's used to code sign the assessment report file. */ public String getSignatureAlgorithm() { return this.signatureAlgorithm; } /** *

* The signature algorithm that's used to code sign the assessment report file. *

* * @param signatureAlgorithm * The signature algorithm that's used to code sign the assessment report file. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateAssessmentReportIntegrityResult withSignatureAlgorithm(String signatureAlgorithm) { setSignatureAlgorithm(signatureAlgorithm); return this; } /** *

* The date and time signature that specifies when the assessment report was created. *

* * @param signatureDateTime * The date and time signature that specifies when the assessment report was created. */ public void setSignatureDateTime(String signatureDateTime) { this.signatureDateTime = signatureDateTime; } /** *

* The date and time signature that specifies when the assessment report was created. *

* * @return The date and time signature that specifies when the assessment report was created. */ public String getSignatureDateTime() { return this.signatureDateTime; } /** *

* The date and time signature that specifies when the assessment report was created. *

* * @param signatureDateTime * The date and time signature that specifies when the assessment report was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateAssessmentReportIntegrityResult withSignatureDateTime(String signatureDateTime) { setSignatureDateTime(signatureDateTime); return this; } /** *

* The unique identifier for the validation signature key. *

* * @param signatureKeyId * The unique identifier for the validation signature key. */ public void setSignatureKeyId(String signatureKeyId) { this.signatureKeyId = signatureKeyId; } /** *

* The unique identifier for the validation signature key. *

* * @return The unique identifier for the validation signature key. */ public String getSignatureKeyId() { return this.signatureKeyId; } /** *

* The unique identifier for the validation signature key. *

* * @param signatureKeyId * The unique identifier for the validation signature key. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateAssessmentReportIntegrityResult withSignatureKeyId(String signatureKeyId) { setSignatureKeyId(signatureKeyId); return this; } /** *

* Represents any errors that occurred when validating the assessment report. *

* * @return Represents any errors that occurred when validating the assessment report. */ public java.util.List getValidationErrors() { return validationErrors; } /** *

* Represents any errors that occurred when validating the assessment report. *

* * @param validationErrors * Represents any errors that occurred when validating the assessment report. */ public void setValidationErrors(java.util.Collection validationErrors) { if (validationErrors == null) { this.validationErrors = null; return; } this.validationErrors = new java.util.ArrayList(validationErrors); } /** *

* Represents any errors that occurred when validating the assessment report. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setValidationErrors(java.util.Collection)} or {@link #withValidationErrors(java.util.Collection)} if you * want to override the existing values. *

* * @param validationErrors * Represents any errors that occurred when validating the assessment report. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateAssessmentReportIntegrityResult withValidationErrors(String... validationErrors) { if (this.validationErrors == null) { setValidationErrors(new java.util.ArrayList(validationErrors.length)); } for (String ele : validationErrors) { this.validationErrors.add(ele); } return this; } /** *

* Represents any errors that occurred when validating the assessment report. *

* * @param validationErrors * Represents any errors that occurred when validating the assessment report. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateAssessmentReportIntegrityResult withValidationErrors(java.util.Collection validationErrors) { setValidationErrors(validationErrors); 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 (getSignatureValid() != null) sb.append("SignatureValid: ").append(getSignatureValid()).append(","); if (getSignatureAlgorithm() != null) sb.append("SignatureAlgorithm: ").append(getSignatureAlgorithm()).append(","); if (getSignatureDateTime() != null) sb.append("SignatureDateTime: ").append(getSignatureDateTime()).append(","); if (getSignatureKeyId() != null) sb.append("SignatureKeyId: ").append(getSignatureKeyId()).append(","); if (getValidationErrors() != null) sb.append("ValidationErrors: ").append(getValidationErrors()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ValidateAssessmentReportIntegrityResult == false) return false; ValidateAssessmentReportIntegrityResult other = (ValidateAssessmentReportIntegrityResult) obj; if (other.getSignatureValid() == null ^ this.getSignatureValid() == null) return false; if (other.getSignatureValid() != null && other.getSignatureValid().equals(this.getSignatureValid()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; if (other.getSignatureDateTime() == null ^ this.getSignatureDateTime() == null) return false; if (other.getSignatureDateTime() != null && other.getSignatureDateTime().equals(this.getSignatureDateTime()) == false) return false; if (other.getSignatureKeyId() == null ^ this.getSignatureKeyId() == null) return false; if (other.getSignatureKeyId() != null && other.getSignatureKeyId().equals(this.getSignatureKeyId()) == false) return false; if (other.getValidationErrors() == null ^ this.getValidationErrors() == null) return false; if (other.getValidationErrors() != null && other.getValidationErrors().equals(this.getValidationErrors()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignatureValid() == null) ? 0 : getSignatureValid().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureDateTime() == null) ? 0 : getSignatureDateTime().hashCode()); hashCode = prime * hashCode + ((getSignatureKeyId() == null) ? 0 : getSignatureKeyId().hashCode()); hashCode = prime * hashCode + ((getValidationErrors() == null) ? 0 : getValidationErrors().hashCode()); return hashCode; } @Override public ValidateAssessmentReportIntegrityResult clone() { try { return (ValidateAssessmentReportIntegrityResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy