commonMain.aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy.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 how the trained model exports are configured.
*/
public class TrainedModelExportsConfigurationPolicy private constructor(builder: Builder) {
/**
* The files that are exported during the trained model export job.
*/
public val filesToExport: List = requireNotNull(builder.filesToExport) { "A non-null value must be provided for filesToExport" }
/**
* The maximum size of the data that can be exported.
*/
public val maxSize: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsMaxSize? = builder.maxSize
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TrainedModelExportsConfigurationPolicy(")
append("filesToExport=$filesToExport,")
append("maxSize=$maxSize")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = filesToExport.hashCode()
result = 31 * result + (maxSize?.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 TrainedModelExportsConfigurationPolicy
if (filesToExport != other.filesToExport) return false
if (maxSize != other.maxSize) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The files that are exported during the trained model export job.
*/
public var filesToExport: List? = null
/**
* The maximum size of the data that can be exported.
*/
public var maxSize: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsMaxSize? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy) : this() {
this.filesToExport = x.filesToExport
this.maxSize = x.maxSize
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy = TrainedModelExportsConfigurationPolicy(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsMaxSize] inside the given [block]
*/
public fun maxSize(block: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsMaxSize.Builder.() -> kotlin.Unit) {
this.maxSize = aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsMaxSize.invoke(block)
}
internal fun correctErrors(): Builder {
if (filesToExport == null) filesToExport = emptyList()
return this
}
}
}