
commonMain.aws.sdk.kotlin.services.neptunedata.model.GetMlModelTrainingJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunedata.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetMlModelTrainingJobResponse private constructor(builder: Builder) {
/**
* The HPO job.
*/
public val hpoJob: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition? = builder.hpoJob
/**
* The unique identifier of this model-training job.
*/
public val id: kotlin.String? = builder.id
/**
* A list of the configurations of the ML models being used.
*/
public val mlModels: List? = builder.mlModels
/**
* The model transform job.
*/
public val modelTransformJob: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition? = builder.modelTransformJob
/**
* The data processing job.
*/
public val processingJob: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition? = builder.processingJob
/**
* The status of the model training job.
*/
public val status: kotlin.String? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.GetMlModelTrainingJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMlModelTrainingJobResponse(")
append("hpoJob=$hpoJob,")
append("id=$id,")
append("mlModels=$mlModels,")
append("modelTransformJob=$modelTransformJob,")
append("processingJob=$processingJob,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = hpoJob?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (mlModels?.hashCode() ?: 0)
result = 31 * result + (modelTransformJob?.hashCode() ?: 0)
result = 31 * result + (processingJob?.hashCode() ?: 0)
result = 31 * result + (status?.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 GetMlModelTrainingJobResponse
if (hpoJob != other.hpoJob) return false
if (id != other.id) return false
if (mlModels != other.mlModels) return false
if (modelTransformJob != other.modelTransformJob) return false
if (processingJob != other.processingJob) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.GetMlModelTrainingJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The HPO job.
*/
public var hpoJob: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition? = null
/**
* The unique identifier of this model-training job.
*/
public var id: kotlin.String? = null
/**
* A list of the configurations of the ML models being used.
*/
public var mlModels: List? = null
/**
* The model transform job.
*/
public var modelTransformJob: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition? = null
/**
* The data processing job.
*/
public var processingJob: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition? = null
/**
* The status of the model training job.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.GetMlModelTrainingJobResponse) : this() {
this.hpoJob = x.hpoJob
this.id = x.id
this.mlModels = x.mlModels
this.modelTransformJob = x.modelTransformJob
this.processingJob = x.processingJob
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.GetMlModelTrainingJobResponse = GetMlModelTrainingJobResponse(this)
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition] inside the given [block]
*/
public fun hpoJob(block: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.Builder.() -> kotlin.Unit) {
this.hpoJob = aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition] inside the given [block]
*/
public fun modelTransformJob(block: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.Builder.() -> kotlin.Unit) {
this.modelTransformJob = aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition] inside the given [block]
*/
public fun processingJob(block: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.Builder.() -> kotlin.Unit) {
this.processingJob = aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy