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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.BatchGetCollaborationAnalysisTemplateResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cleanrooms.model

import aws.smithy.kotlin.runtime.SdkDsl

public class BatchGetCollaborationAnalysisTemplateResponse private constructor(builder: Builder) {
    /**
     * The retrieved list of analysis templates within a collaboration.
     */
    public val collaborationAnalysisTemplates: List = requireNotNull(builder.collaborationAnalysisTemplates) { "A non-null value must be provided for collaborationAnalysisTemplates" }
    /**
     * Error reasons for collaboration analysis templates that could not be retrieved. One error is returned for every collaboration analysis template that could not be retrieved.
     */
    public val errors: List = requireNotNull(builder.errors) { "A non-null value must be provided for errors" }

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

    override fun toString(): kotlin.String = buildString {
        append("BatchGetCollaborationAnalysisTemplateResponse(")
        append("collaborationAnalysisTemplates=$collaborationAnalysisTemplates,")
        append("errors=$errors")
        append(")")
    }

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

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The retrieved list of analysis templates within a collaboration.
         */
        public var collaborationAnalysisTemplates: List? = null
        /**
         * Error reasons for collaboration analysis templates that could not be retrieved. One error is returned for every collaboration analysis template that could not be retrieved.
         */
        public var errors: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.BatchGetCollaborationAnalysisTemplateResponse) : this() {
            this.collaborationAnalysisTemplates = x.collaborationAnalysisTemplates
            this.errors = x.errors
        }

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

        internal fun correctErrors(): Builder {
            if (collaborationAnalysisTemplates == null) collaborationAnalysisTemplates = emptyList()
            if (errors == null) errors = emptyList()
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy