commonMain.aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportOutputConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanroomsml-jvm Show documentation
Show all versions of cleanroomsml-jvm Show documentation
The AWS SDK for Kotlin client for CleanRoomsML
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanroomsml.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the output of the trained model export job.
*/
public class TrainedModelExportOutputConfiguration private constructor(builder: Builder) {
/**
* The members that will received the exported trained model output.
*/
public val members: List = requireNotNull(builder.members) { "A non-null value must be provided for members" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportOutputConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TrainedModelExportOutputConfiguration(")
append("members=$members")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = members.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 TrainedModelExportOutputConfiguration
if (members != other.members) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportOutputConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The members that will received the exported trained model output.
*/
public var members: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportOutputConfiguration) : this() {
this.members = x.members
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportOutputConfiguration = TrainedModelExportOutputConfiguration(this)
internal fun correctErrors(): Builder {
if (members == null) members = emptyList()
return this
}
}
}