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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.ReceiverConfiguration.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

/**
 * The receiver configuration for a protected query.
 */
public class ReceiverConfiguration private constructor(builder: Builder) {
    /**
     * The type of analysis for the protected query. The results of the query can be analyzed directly (`DIRECT_ANALYSIS`) or used as input into additional analyses (`ADDITIONAL_ANALYSIS`), such as a query that is a seed for a lookalike ML model.
     */
    public val analysisType: aws.sdk.kotlin.services.cleanrooms.model.AnalysisType = requireNotNull(builder.analysisType) { "A non-null value must be provided for analysisType" }
    /**
     * The configuration details of the receiver configuration.
     */
    public val configurationDetails: aws.sdk.kotlin.services.cleanrooms.model.ConfigurationDetails? = builder.configurationDetails

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

    override fun toString(): kotlin.String = buildString {
        append("ReceiverConfiguration(")
        append("analysisType=$analysisType,")
        append("configurationDetails=$configurationDetails")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = analysisType.hashCode()
        result = 31 * result + (configurationDetails?.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 ReceiverConfiguration

        if (analysisType != other.analysisType) return false
        if (configurationDetails != other.configurationDetails) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The type of analysis for the protected query. The results of the query can be analyzed directly (`DIRECT_ANALYSIS`) or used as input into additional analyses (`ADDITIONAL_ANALYSIS`), such as a query that is a seed for a lookalike ML model.
         */
        public var analysisType: aws.sdk.kotlin.services.cleanrooms.model.AnalysisType? = null
        /**
         * The configuration details of the receiver configuration.
         */
        public var configurationDetails: aws.sdk.kotlin.services.cleanrooms.model.ConfigurationDetails? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.ReceiverConfiguration) : this() {
            this.analysisType = x.analysisType
            this.configurationDetails = x.configurationDetails
        }

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

        internal fun correctErrors(): Builder {
            if (analysisType == null) analysisType = AnalysisType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy