aws.sdk.kotlin.services.sagemaker.model.ModelDigests.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* Provides information to verify the integrity of stored model artifacts.
*/
class ModelDigests private constructor(builder: BuilderImpl) {
/**
* Provides a hash value that uniquely identifies the stored model
* artifacts.
*/
val artifactDigest: String? = builder.artifactDigest
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ModelDigests = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModelDigests(")
append("artifactDigest=$artifactDigest)")
}
override fun hashCode(): kotlin.Int {
var result = artifactDigest?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as ModelDigests
if (artifactDigest != other.artifactDigest) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ModelDigests = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): ModelDigests
/**
* Provides a hash value that uniquely identifies the stored model
* artifacts.
*/
fun artifactDigest(artifactDigest: String): FluentBuilder
}
interface DslBuilder {
/**
* Provides a hash value that uniquely identifies the stored model
* artifacts.
*/
var artifactDigest: String?
fun build(): ModelDigests
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var artifactDigest: String? = null
constructor(x: ModelDigests) : this() {
this.artifactDigest = x.artifactDigest
}
override fun build(): ModelDigests = ModelDigests(this)
override fun artifactDigest(artifactDigest: String): FluentBuilder = apply { this.artifactDigest = artifactDigest }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy