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

commonMain.aws.sdk.kotlin.services.personalize.model.ThemeGenerationConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.personalize.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The configuration details for generating themes with a batch inference job.
 */
public class ThemeGenerationConfig private constructor(builder: Builder) {
    /**
     * Fields used to generate descriptive themes for a batch inference job.
     */
    public val fieldsForThemeGeneration: aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration? = builder.fieldsForThemeGeneration

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

    override fun toString(): kotlin.String = buildString {
        append("ThemeGenerationConfig(")
        append("fieldsForThemeGeneration=$fieldsForThemeGeneration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fieldsForThemeGeneration?.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 ThemeGenerationConfig

        if (fieldsForThemeGeneration != other.fieldsForThemeGeneration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Fields used to generate descriptive themes for a batch inference job.
         */
        public var fieldsForThemeGeneration: aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.personalize.model.ThemeGenerationConfig) : this() {
            this.fieldsForThemeGeneration = x.fieldsForThemeGeneration
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy