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