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

commonMain.aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentControlRequest.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 UpdateAssessmentControlRequest private constructor(builder: Builder) {
    /**
     * The unique identifier for the assessment.
     */
    public val assessmentId: kotlin.String? = builder.assessmentId
    /**
     * The comment body text for the control.
     */
    public val commentBody: kotlin.String? = builder.commentBody
    /**
     * The unique identifier for the control.
     */
    public val controlId: kotlin.String? = builder.controlId
    /**
     * The unique identifier for the control set.
     */
    public val controlSetId: kotlin.String? = builder.controlSetId
    /**
     * The status of the control.
     */
    public val controlStatus: aws.sdk.kotlin.services.auditmanager.model.ControlStatus? = builder.controlStatus

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAssessmentControlRequest(")
        append("assessmentId=$assessmentId,")
        append("commentBody=*** Sensitive Data Redacted ***,")
        append("controlId=$controlId,")
        append("controlSetId=$controlSetId,")
        append("controlStatus=$controlStatus")
        append(")")
    }

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

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier for the assessment.
         */
        public var assessmentId: kotlin.String? = null
        /**
         * The comment body text for the control.
         */
        public var commentBody: kotlin.String? = null
        /**
         * The unique identifier for the control.
         */
        public var controlId: kotlin.String? = null
        /**
         * The unique identifier for the control set.
         */
        public var controlSetId: kotlin.String? = null
        /**
         * The status of the control.
         */
        public var controlStatus: aws.sdk.kotlin.services.auditmanager.model.ControlStatus? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy