aws.sdk.kotlin.services.sagemaker.model.Parent.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The trial that a trial component is associated with and the experiment the trial is part
* of. A component might not be associated with a trial. A component can be associated with
* multiple trials.
*/
class Parent private constructor(builder: Builder) {
/**
* The name of the experiment.
*/
val experimentName: kotlin.String? = builder.experimentName
/**
* The name of the trial.
*/
val trialName: kotlin.String? = builder.trialName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.Parent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Parent(")
append("experimentName=$experimentName,")
append("trialName=$trialName)")
}
override fun hashCode(): kotlin.Int {
var result = experimentName?.hashCode() ?: 0
result = 31 * result + (trialName?.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 Parent
if (experimentName != other.experimentName) return false
if (trialName != other.trialName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.Parent = Builder(this).apply(block).build()
class Builder {
/**
* The name of the experiment.
*/
var experimentName: kotlin.String? = null
/**
* The name of the trial.
*/
var trialName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.Parent) : this() {
this.experimentName = x.experimentName
this.trialName = x.trialName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.Parent = Parent(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy