commonMain.aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of personalize-jvm Show documentation
Show all versions of personalize-jvm Show documentation
The AWS SDK for Kotlin client for Personalize
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.personalize.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A string to string map of the configuration details for theme generation.
*/
public class FieldsForThemeGeneration private constructor(builder: Builder) {
/**
* The name of the Items dataset column that stores the name of each item in the dataset.
*/
public val itemName: kotlin.String = requireNotNull(builder.itemName) { "A non-null value must be provided for itemName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FieldsForThemeGeneration(")
append("itemName=$itemName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = itemName.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 FieldsForThemeGeneration
if (itemName != other.itemName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the Items dataset column that stores the name of each item in the dataset.
*/
public var itemName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration) : this() {
this.itemName = x.itemName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.personalize.model.FieldsForThemeGeneration = FieldsForThemeGeneration(this)
internal fun correctErrors(): Builder {
if (itemName == null) itemName = ""
return this
}
}
}