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

commonMain.aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy.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

/**
 * Provides configuration information for the trained model inference job.
 */
public class TrainedModelInferenceJobsConfigurationPolicy private constructor(builder: Builder) {
    /**
     * The logs container for the trained model inference job.
     */
    public val containerLogs: List? = builder.containerLogs
    /**
     * The maximum allowed size of the output of the trained model inference job.
     */
    public val maxOutputSize: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceMaxOutputSize? = builder.maxOutputSize

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

    override fun toString(): kotlin.String = buildString {
        append("TrainedModelInferenceJobsConfigurationPolicy(")
        append("containerLogs=$containerLogs,")
        append("maxOutputSize=$maxOutputSize")
        append(")")
    }

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

        if (containerLogs != other.containerLogs) return false
        if (maxOutputSize != other.maxOutputSize) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The logs container for the trained model inference job.
         */
        public var containerLogs: List? = null
        /**
         * The maximum allowed size of the output of the trained model inference job.
         */
        public var maxOutputSize: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceMaxOutputSize? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy) : this() {
            this.containerLogs = x.containerLogs
            this.maxOutputSize = x.maxOutputSize
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy