aws.sdk.kotlin.services.sagemaker.model.CandidateProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The properties of an AutoML candidate job.
*/
class CandidateProperties private constructor(builder: Builder) {
/**
* The Amazon S3 prefix to the artifacts generated for an AutoML candidate.
*/
val candidateArtifactLocations: aws.sdk.kotlin.services.sagemaker.model.CandidateArtifactLocations? = builder.candidateArtifactLocations
/**
* Information about the candidate metrics for an AutoML job.
*/
val candidateMetrics: List? = builder.candidateMetrics
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.CandidateProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CandidateProperties(")
append("candidateArtifactLocations=$candidateArtifactLocations,")
append("candidateMetrics=$candidateMetrics)")
}
override fun hashCode(): kotlin.Int {
var result = candidateArtifactLocations?.hashCode() ?: 0
result = 31 * result + (candidateMetrics?.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 CandidateProperties
if (candidateArtifactLocations != other.candidateArtifactLocations) return false
if (candidateMetrics != other.candidateMetrics) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.CandidateProperties = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon S3 prefix to the artifacts generated for an AutoML candidate.
*/
var candidateArtifactLocations: aws.sdk.kotlin.services.sagemaker.model.CandidateArtifactLocations? = null
/**
* Information about the candidate metrics for an AutoML job.
*/
var candidateMetrics: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.CandidateProperties) : this() {
this.candidateArtifactLocations = x.candidateArtifactLocations
this.candidateMetrics = x.candidateMetrics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.CandidateProperties = CandidateProperties(this)
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.CandidateArtifactLocations] inside the given [block]
*/
fun candidateArtifactLocations(block: aws.sdk.kotlin.services.sagemaker.model.CandidateArtifactLocations.Builder.() -> kotlin.Unit) {
this.candidateArtifactLocations = aws.sdk.kotlin.services.sagemaker.model.CandidateArtifactLocations.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy