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

commonMain.aws.sdk.kotlin.services.auditmanager.model.ValidateAssessmentReportIntegrityResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.auditmanager.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ValidateAssessmentReportIntegrityResponse private constructor(builder: Builder) {
    /**
     * The signature algorithm that's used to code sign the assessment report file.
     */
    public val signatureAlgorithm: kotlin.String? = builder.signatureAlgorithm
    /**
     * The date and time signature that specifies when the assessment report was created.
     */
    public val signatureDateTime: kotlin.String? = builder.signatureDateTime
    /**
     * The unique identifier for the validation signature key.
     */
    public val signatureKeyId: kotlin.String? = builder.signatureKeyId
    /**
     * Specifies whether the signature key is valid.
     */
    public val signatureValid: kotlin.Boolean? = builder.signatureValid
    /**
     * Represents any errors that occurred when validating the assessment report.
     */
    public val validationErrors: List? = builder.validationErrors

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.ValidateAssessmentReportIntegrityResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ValidateAssessmentReportIntegrityResponse(")
        append("signatureAlgorithm=$signatureAlgorithm,")
        append("signatureDateTime=$signatureDateTime,")
        append("signatureKeyId=$signatureKeyId,")
        append("signatureValid=$signatureValid,")
        append("validationErrors=$validationErrors")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = signatureAlgorithm?.hashCode() ?: 0
        result = 31 * result + (signatureDateTime?.hashCode() ?: 0)
        result = 31 * result + (signatureKeyId?.hashCode() ?: 0)
        result = 31 * result + (signatureValid?.hashCode() ?: 0)
        result = 31 * result + (validationErrors?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as ValidateAssessmentReportIntegrityResponse

        if (signatureAlgorithm != other.signatureAlgorithm) return false
        if (signatureDateTime != other.signatureDateTime) return false
        if (signatureKeyId != other.signatureKeyId) return false
        if (signatureValid != other.signatureValid) return false
        if (validationErrors != other.validationErrors) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.ValidateAssessmentReportIntegrityResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The signature algorithm that's used to code sign the assessment report file.
         */
        public var signatureAlgorithm: kotlin.String? = null
        /**
         * The date and time signature that specifies when the assessment report was created.
         */
        public var signatureDateTime: kotlin.String? = null
        /**
         * The unique identifier for the validation signature key.
         */
        public var signatureKeyId: kotlin.String? = null
        /**
         * Specifies whether the signature key is valid.
         */
        public var signatureValid: kotlin.Boolean? = null
        /**
         * Represents any errors that occurred when validating the assessment report.
         */
        public var validationErrors: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.ValidateAssessmentReportIntegrityResponse) : this() {
            this.signatureAlgorithm = x.signatureAlgorithm
            this.signatureDateTime = x.signatureDateTime
            this.signatureKeyId = x.signatureKeyId
            this.signatureValid = x.signatureValid
            this.validationErrors = x.validationErrors
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.auditmanager.model.ValidateAssessmentReportIntegrityResponse = ValidateAssessmentReportIntegrityResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy