aws.sdk.kotlin.services.sagemaker.model.ModelMetadataSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* A summary of the model metadata.
*/
class ModelMetadataSummary private constructor(builder: Builder) {
/**
* The machine learning domain of the model.
*/
val domain: kotlin.String? = builder.domain
/**
* The machine learning framework of the model.
*/
val framework: kotlin.String? = builder.framework
/**
* The framework version of the model.
*/
val frameworkVersion: kotlin.String? = builder.frameworkVersion
/**
* The name of the model.
*/
val model: kotlin.String? = builder.model
/**
* The machine learning task of the model.
*/
val task: kotlin.String? = builder.task
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.ModelMetadataSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModelMetadataSummary(")
append("domain=$domain,")
append("framework=$framework,")
append("frameworkVersion=$frameworkVersion,")
append("model=$model,")
append("task=$task)")
}
override fun hashCode(): kotlin.Int {
var result = domain?.hashCode() ?: 0
result = 31 * result + (framework?.hashCode() ?: 0)
result = 31 * result + (frameworkVersion?.hashCode() ?: 0)
result = 31 * result + (model?.hashCode() ?: 0)
result = 31 * result + (task?.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 ModelMetadataSummary
if (domain != other.domain) return false
if (framework != other.framework) return false
if (frameworkVersion != other.frameworkVersion) return false
if (model != other.model) return false
if (task != other.task) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.ModelMetadataSummary = Builder(this).apply(block).build()
class Builder {
/**
* The machine learning domain of the model.
*/
var domain: kotlin.String? = null
/**
* The machine learning framework of the model.
*/
var framework: kotlin.String? = null
/**
* The framework version of the model.
*/
var frameworkVersion: kotlin.String? = null
/**
* The name of the model.
*/
var model: kotlin.String? = null
/**
* The machine learning task of the model.
*/
var task: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.ModelMetadataSummary) : this() {
this.domain = x.domain
this.framework = x.framework
this.frameworkVersion = x.frameworkVersion
this.model = x.model
this.task = x.task
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.ModelMetadataSummary = ModelMetadataSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy