commonMain.aws.sdk.kotlin.services.rekognition.model.TestingData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rekognition-jvm Show documentation
Show all versions of rekognition-jvm Show documentation
The AWS SDK for Kotlin client for Rekognition
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The dataset used for testing. Optionally, if `AutoCreate` is set, Amazon Rekognition uses the training dataset to create a test dataset with a temporary split of the training dataset.
*/
public class TestingData private constructor(builder: Builder) {
/**
* The assets used for testing.
*/
public val assets: List? = builder.assets
/**
* If specified, Rekognition splits training dataset to create a test dataset for the training job.
*/
public val autoCreate: kotlin.Boolean = builder.autoCreate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.TestingData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TestingData(")
append("assets=$assets,")
append("autoCreate=$autoCreate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assets?.hashCode() ?: 0
result = 31 * result + (autoCreate.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 TestingData
if (assets != other.assets) return false
if (autoCreate != other.autoCreate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.TestingData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The assets used for testing.
*/
public var assets: List? = null
/**
* If specified, Rekognition splits training dataset to create a test dataset for the training job.
*/
public var autoCreate: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.TestingData) : this() {
this.assets = x.assets
this.autoCreate = x.autoCreate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.TestingData = TestingData(this)
internal fun correctErrors(): Builder {
return this
}
}
}