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

commonMain.aws.sdk.kotlin.services.transcribe.model.CreateLanguageModelResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.transcribe.model



public class CreateLanguageModelResponse private constructor(builder: Builder) {
    /**
     * The Amazon Transcribe standard language model, or base model, you specified when creating your custom language model.
     */
    public val baseModelName: aws.sdk.kotlin.services.transcribe.model.BaseModelName? = builder.baseModelName
    /**
     * Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 locations you provided for your training (`S3Uri`) and tuning (`TuningDataS3Uri`) data.
     */
    public val inputDataConfig: aws.sdk.kotlin.services.transcribe.model.InputDataConfig? = builder.inputDataConfig
    /**
     * The language code you selected for your custom language model.
     */
    public val languageCode: aws.sdk.kotlin.services.transcribe.model.ClmLanguageCode? = builder.languageCode
    /**
     * The name of your custom language model.
     */
    public val modelName: kotlin.String? = builder.modelName
    /**
     * The status of your custom language model. When the status displays as `COMPLETED`, your model is ready to use.
     */
    public val modelStatus: aws.sdk.kotlin.services.transcribe.model.ModelStatus? = builder.modelStatus

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

    override fun toString(): kotlin.String = buildString {
        append("CreateLanguageModelResponse(")
        append("baseModelName=$baseModelName,")
        append("inputDataConfig=$inputDataConfig,")
        append("languageCode=$languageCode,")
        append("modelName=$modelName,")
        append("modelStatus=$modelStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = baseModelName?.hashCode() ?: 0
        result = 31 * result + (inputDataConfig?.hashCode() ?: 0)
        result = 31 * result + (languageCode?.hashCode() ?: 0)
        result = 31 * result + (modelName?.hashCode() ?: 0)
        result = 31 * result + (modelStatus?.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 CreateLanguageModelResponse

        if (baseModelName != other.baseModelName) return false
        if (inputDataConfig != other.inputDataConfig) return false
        if (languageCode != other.languageCode) return false
        if (modelName != other.modelName) return false
        if (modelStatus != other.modelStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Transcribe standard language model, or base model, you specified when creating your custom language model.
         */
        public var baseModelName: aws.sdk.kotlin.services.transcribe.model.BaseModelName? = null
        /**
         * Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 locations you provided for your training (`S3Uri`) and tuning (`TuningDataS3Uri`) data.
         */
        public var inputDataConfig: aws.sdk.kotlin.services.transcribe.model.InputDataConfig? = null
        /**
         * The language code you selected for your custom language model.
         */
        public var languageCode: aws.sdk.kotlin.services.transcribe.model.ClmLanguageCode? = null
        /**
         * The name of your custom language model.
         */
        public var modelName: kotlin.String? = null
        /**
         * The status of your custom language model. When the status displays as `COMPLETED`, your model is ready to use.
         */
        public var modelStatus: aws.sdk.kotlin.services.transcribe.model.ModelStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transcribe.model.CreateLanguageModelResponse) : this() {
            this.baseModelName = x.baseModelName
            this.inputDataConfig = x.inputDataConfig
            this.languageCode = x.languageCode
            this.modelName = x.modelName
            this.modelStatus = x.modelStatus
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy