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

commonMain.aws.sdk.kotlin.services.auditmanager.model.BatchImportEvidenceToAssessmentControlRequest.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 BatchImportEvidenceToAssessmentControlRequest private constructor(builder: Builder) {
    /**
     * The identifier for the assessment.
     */
    public val assessmentId: kotlin.String? = builder.assessmentId
    /**
     * The identifier for the control.
     */
    public val controlId: kotlin.String? = builder.controlId
    /**
     * The identifier for the control set.
     */
    public val controlSetId: kotlin.String? = builder.controlSetId
    /**
     * The list of manual evidence objects.
     */
    public val manualEvidence: List? = builder.manualEvidence

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

    override fun toString(): kotlin.String = buildString {
        append("BatchImportEvidenceToAssessmentControlRequest(")
        append("assessmentId=$assessmentId,")
        append("controlId=$controlId,")
        append("controlSetId=$controlSetId,")
        append("manualEvidence=$manualEvidence")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = assessmentId?.hashCode() ?: 0
        result = 31 * result + (controlId?.hashCode() ?: 0)
        result = 31 * result + (controlSetId?.hashCode() ?: 0)
        result = 31 * result + (manualEvidence?.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 BatchImportEvidenceToAssessmentControlRequest

        if (assessmentId != other.assessmentId) return false
        if (controlId != other.controlId) return false
        if (controlSetId != other.controlSetId) return false
        if (manualEvidence != other.manualEvidence) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The identifier for the assessment.
         */
        public var assessmentId: kotlin.String? = null
        /**
         * The identifier for the control.
         */
        public var controlId: kotlin.String? = null
        /**
         * The identifier for the control set.
         */
        public var controlSetId: kotlin.String? = null
        /**
         * The list of manual evidence objects.
         */
        public var manualEvidence: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.BatchImportEvidenceToAssessmentControlRequest) : this() {
            this.assessmentId = x.assessmentId
            this.controlId = x.controlId
            this.controlSetId = x.controlSetId
            this.manualEvidence = x.manualEvidence
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy