aws.sdk.kotlin.services.sagemaker.model.FinalAutoMlJobObjectiveMetric.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The best candidate result from an AutoML training job.
*/
class FinalAutoMlJobObjectiveMetric private constructor(builder: Builder) {
/**
* The name of the metric with the best result. For a description of the possible objective
* metrics, see AutoMLJobObjective$MetricName.
*/
val metricName: aws.sdk.kotlin.services.sagemaker.model.AutoMlMetricEnum? = builder.metricName
/**
* The type of metric with the best result.
*/
val type: aws.sdk.kotlin.services.sagemaker.model.AutoMlJobObjectiveType? = builder.type
/**
* The value of the metric with the best result.
*/
val value: kotlin.Float = builder.value
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.FinalAutoMlJobObjectiveMetric = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FinalAutoMlJobObjectiveMetric(")
append("metricName=$metricName,")
append("type=$type,")
append("value=$value)")
}
override fun hashCode(): kotlin.Int {
var result = metricName?.hashCode() ?: 0
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (value.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 FinalAutoMlJobObjectiveMetric
if (metricName != other.metricName) return false
if (type != other.type) return false
if (value != other.value) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.FinalAutoMlJobObjectiveMetric = Builder(this).apply(block).build()
class Builder {
/**
* The name of the metric with the best result. For a description of the possible objective
* metrics, see AutoMLJobObjective$MetricName.
*/
var metricName: aws.sdk.kotlin.services.sagemaker.model.AutoMlMetricEnum? = null
/**
* The type of metric with the best result.
*/
var type: aws.sdk.kotlin.services.sagemaker.model.AutoMlJobObjectiveType? = null
/**
* The value of the metric with the best result.
*/
var value: kotlin.Float = 0.0f
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.FinalAutoMlJobObjectiveMetric) : this() {
this.metricName = x.metricName
this.type = x.type
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.FinalAutoMlJobObjectiveMetric = FinalAutoMlJobObjectiveMetric(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy