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

commonMain.aws.sdk.kotlin.services.auditmanager.model.BatchCreateDelegationByAssessmentResponse.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 BatchCreateDelegationByAssessmentResponse private constructor(builder: Builder) {
    /**
     * The delegations that are associated with the assessment.
     */
    public val delegations: List? = builder.delegations
    /**
     * A list of errors that the `BatchCreateDelegationByAssessment` API returned.
     */
    public val errors: List? = builder.errors

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

    override fun toString(): kotlin.String = buildString {
        append("BatchCreateDelegationByAssessmentResponse(")
        append("delegations=*** Sensitive Data Redacted ***,")
        append("errors=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = delegations?.hashCode() ?: 0
        result = 31 * result + (errors?.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 BatchCreateDelegationByAssessmentResponse

        if (delegations != other.delegations) return false
        if (errors != other.errors) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The delegations that are associated with the assessment.
         */
        public var delegations: List? = null
        /**
         * A list of errors that the `BatchCreateDelegationByAssessment` API returned.
         */
        public var errors: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.BatchCreateDelegationByAssessmentResponse) : this() {
            this.delegations = x.delegations
            this.errors = x.errors
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy