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

commonMain.aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cleanroomsml.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Configuration information about how the inference output is stored.
 */
public class InferenceOutputConfiguration private constructor(builder: Builder) {
    /**
     * The MIME type used to specify the output data.
     */
    public val accept: kotlin.String = builder.accept
    /**
     * Defines the members that can receive inference output.
     */
    public val members: List = requireNotNull(builder.members) { "A non-null value must be provided for members" }

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

    override fun toString(): kotlin.String = buildString {
        append("InferenceOutputConfiguration(")
        append("accept=$accept,")
        append("members=$members")
        append(")")
    }

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

        if (accept != other.accept) return false
        if (members != other.members) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The MIME type used to specify the output data.
         */
        public var accept: kotlin.String = "application/json"
        /**
         * Defines the members that can receive inference output.
         */
        public var members: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration) : this() {
            this.accept = x.accept
            this.members = x.members
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy