commonMain.aws.sdk.kotlin.services.sagemakeredge.model.Definition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakeredge-jvm Show documentation
Show all versions of sagemakeredge-jvm Show documentation
The AWS SDK for Kotlin client for Sagemaker Edge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakeredge.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class Definition private constructor(builder: Builder) {
/**
* The checksum information of the model.
*/
public val checksum: aws.sdk.kotlin.services.sagemakeredge.model.Checksum? = builder.checksum
/**
* The unique model handle.
*/
public val modelHandle: kotlin.String? = builder.modelHandle
/**
* The absolute S3 location of the model.
*/
public val s3Url: kotlin.String? = builder.s3Url
/**
* The desired state of the model.
*/
public val state: aws.sdk.kotlin.services.sagemakeredge.model.ModelState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakeredge.model.Definition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Definition(")
append("checksum=$checksum,")
append("modelHandle=$modelHandle,")
append("s3Url=$s3Url,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = checksum?.hashCode() ?: 0
result = 31 * result + (modelHandle?.hashCode() ?: 0)
result = 31 * result + (s3Url?.hashCode() ?: 0)
result = 31 * result + (state?.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 Definition
if (checksum != other.checksum) return false
if (modelHandle != other.modelHandle) return false
if (s3Url != other.s3Url) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakeredge.model.Definition = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The checksum information of the model.
*/
public var checksum: aws.sdk.kotlin.services.sagemakeredge.model.Checksum? = null
/**
* The unique model handle.
*/
public var modelHandle: kotlin.String? = null
/**
* The absolute S3 location of the model.
*/
public var s3Url: kotlin.String? = null
/**
* The desired state of the model.
*/
public var state: aws.sdk.kotlin.services.sagemakeredge.model.ModelState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakeredge.model.Definition) : this() {
this.checksum = x.checksum
this.modelHandle = x.modelHandle
this.s3Url = x.s3Url
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakeredge.model.Definition = Definition(this)
/**
* construct an [aws.sdk.kotlin.services.sagemakeredge.model.Checksum] inside the given [block]
*/
public fun checksum(block: aws.sdk.kotlin.services.sagemakeredge.model.Checksum.Builder.() -> kotlin.Unit) {
this.checksum = aws.sdk.kotlin.services.sagemakeredge.model.Checksum.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}