commonMain.aws.sdk.kotlin.services.rekognition.model.Asset.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
/**
* Assets are the images that you use to train and evaluate a model version. Assets can also contain validation information that you use to debug a failed model training.
*/
public class Asset private constructor(builder: Builder) {
/**
* The S3 bucket that contains an Amazon Sagemaker Ground Truth format manifest file.
*/
public val groundTruthManifest: aws.sdk.kotlin.services.rekognition.model.GroundTruthManifest? = builder.groundTruthManifest
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.Asset = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Asset(")
append("groundTruthManifest=$groundTruthManifest")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groundTruthManifest?.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 Asset
if (groundTruthManifest != other.groundTruthManifest) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.Asset = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The S3 bucket that contains an Amazon Sagemaker Ground Truth format manifest file.
*/
public var groundTruthManifest: aws.sdk.kotlin.services.rekognition.model.GroundTruthManifest? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.Asset) : this() {
this.groundTruthManifest = x.groundTruthManifest
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.Asset = Asset(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.GroundTruthManifest] inside the given [block]
*/
public fun groundTruthManifest(block: aws.sdk.kotlin.services.rekognition.model.GroundTruthManifest.Builder.() -> kotlin.Unit) {
this.groundTruthManifest = aws.sdk.kotlin.services.rekognition.model.GroundTruthManifest.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}