aws.sdk.kotlin.services.sagemaker.model.TrialComponentStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The status of the trial component.
*/
class TrialComponentStatus private constructor(builder: Builder) {
/**
* If the component failed, a message describing why.
*/
val message: kotlin.String? = builder.message
/**
* The status of the trial component.
*/
val primaryStatus: aws.sdk.kotlin.services.sagemaker.model.TrialComponentPrimaryStatus? = builder.primaryStatus
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.TrialComponentStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TrialComponentStatus(")
append("message=$message,")
append("primaryStatus=$primaryStatus)")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
result = 31 * result + (primaryStatus?.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 TrialComponentStatus
if (message != other.message) return false
if (primaryStatus != other.primaryStatus) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.TrialComponentStatus = Builder(this).apply(block).build()
class Builder {
/**
* If the component failed, a message describing why.
*/
var message: kotlin.String? = null
/**
* The status of the trial component.
*/
var primaryStatus: aws.sdk.kotlin.services.sagemaker.model.TrialComponentPrimaryStatus? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.TrialComponentStatus) : this() {
this.message = x.message
this.primaryStatus = x.primaryStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.TrialComponentStatus = TrialComponentStatus(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy