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

aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sagemaker.model



/**
 * Specifies configuration for how an endpoint performs asynchronous inference.
 */
class AsyncInferenceConfig private constructor(builder: Builder) {
    /**
     * Configures the behavior of the client used by Amazon SageMaker to interact
     * with the model container during asynchronous inference.
     */
    val clientConfig: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceClientConfig? = builder.clientConfig
    /**
     * Specifies the configuration for asynchronous inference invocation outputs.
     */
    val outputConfig: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceOutputConfig? = builder.outputConfig

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

    override fun toString(): kotlin.String = buildString {
        append("AsyncInferenceConfig(")
        append("clientConfig=$clientConfig,")
        append("outputConfig=$outputConfig)")
    }

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

        if (clientConfig != other.clientConfig) return false
        if (outputConfig != other.outputConfig) return false

        return true
    }

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

    class Builder {
        /**
         * Configures the behavior of the client used by Amazon SageMaker to interact
         * with the model container during asynchronous inference.
         */
        var clientConfig: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceClientConfig? = null
        /**
         * Specifies the configuration for asynchronous inference invocation outputs.
         */
        var outputConfig: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceOutputConfig? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceConfig) : this() {
            this.clientConfig = x.clientConfig
            this.outputConfig = x.outputConfig
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceClientConfig] inside the given [block]
         */
        fun clientConfig(block: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceClientConfig.Builder.() -> kotlin.Unit) {
            this.clientConfig = aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceClientConfig.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceOutputConfig] inside the given [block]
         */
        fun outputConfig(block: aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceOutputConfig.Builder.() -> kotlin.Unit) {
            this.outputConfig = aws.sdk.kotlin.services.sagemaker.model.AsyncInferenceOutputConfig.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy