aws.sdk.kotlin.services.sagemaker.model.AutoMlJobArtifacts.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The artifacts that are generated during an AutoML job.
*/
class AutoMlJobArtifacts private constructor(builder: BuilderImpl) {
/**
* The URL of the notebook location.
*/
val candidateDefinitionNotebookLocation: String? = builder.candidateDefinitionNotebookLocation
/**
* The URL of the notebook location.
*/
val dataExplorationNotebookLocation: String? = builder.dataExplorationNotebookLocation
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): AutoMlJobArtifacts = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AutoMlJobArtifacts(")
append("candidateDefinitionNotebookLocation=$candidateDefinitionNotebookLocation,")
append("dataExplorationNotebookLocation=$dataExplorationNotebookLocation)")
}
override fun hashCode(): kotlin.Int {
var result = candidateDefinitionNotebookLocation?.hashCode() ?: 0
result = 31 * result + (dataExplorationNotebookLocation?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as AutoMlJobArtifacts
if (candidateDefinitionNotebookLocation != other.candidateDefinitionNotebookLocation) return false
if (dataExplorationNotebookLocation != other.dataExplorationNotebookLocation) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): AutoMlJobArtifacts = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): AutoMlJobArtifacts
/**
* The URL of the notebook location.
*/
fun candidateDefinitionNotebookLocation(candidateDefinitionNotebookLocation: String): FluentBuilder
/**
* The URL of the notebook location.
*/
fun dataExplorationNotebookLocation(dataExplorationNotebookLocation: String): FluentBuilder
}
interface DslBuilder {
/**
* The URL of the notebook location.
*/
var candidateDefinitionNotebookLocation: String?
/**
* The URL of the notebook location.
*/
var dataExplorationNotebookLocation: String?
fun build(): AutoMlJobArtifacts
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var candidateDefinitionNotebookLocation: String? = null
override var dataExplorationNotebookLocation: String? = null
constructor(x: AutoMlJobArtifacts) : this() {
this.candidateDefinitionNotebookLocation = x.candidateDefinitionNotebookLocation
this.dataExplorationNotebookLocation = x.dataExplorationNotebookLocation
}
override fun build(): AutoMlJobArtifacts = AutoMlJobArtifacts(this)
override fun candidateDefinitionNotebookLocation(candidateDefinitionNotebookLocation: String): FluentBuilder = apply { this.candidateDefinitionNotebookLocation = candidateDefinitionNotebookLocation }
override fun dataExplorationNotebookLocation(dataExplorationNotebookLocation: String): FluentBuilder = apply { this.dataExplorationNotebookLocation = dataExplorationNotebookLocation }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy