aws.sdk.kotlin.services.sagemaker.model.DescribeExperimentRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class DescribeExperimentRequest private constructor(builder: BuilderImpl) {
/**
* The name of the experiment to describe.
*/
val experimentName: String? = builder.experimentName
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): DescribeExperimentRequest = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeExperimentRequest(")
append("experimentName=$experimentName)")
}
override fun hashCode(): kotlin.Int {
var result = experimentName?.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 DescribeExperimentRequest
if (experimentName != other.experimentName) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): DescribeExperimentRequest = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): DescribeExperimentRequest
/**
* The name of the experiment to describe.
*/
fun experimentName(experimentName: String): FluentBuilder
}
interface DslBuilder {
/**
* The name of the experiment to describe.
*/
var experimentName: String?
fun build(): DescribeExperimentRequest
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var experimentName: String? = null
constructor(x: DescribeExperimentRequest) : this() {
this.experimentName = x.experimentName
}
override fun build(): DescribeExperimentRequest = DescribeExperimentRequest(this)
override fun experimentName(experimentName: String): FluentBuilder = apply { this.experimentName = experimentName }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy