aws.sdk.kotlin.services.sagemaker.model.CreateExperimentRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class CreateExperimentRequest private constructor(builder: Builder) {
/**
* The description of the experiment.
*/
val description: kotlin.String? = builder.description
/**
* The name of the experiment as displayed. The name doesn't need to be unique. If you don't
* specify DisplayName, the value in ExperimentName is
* displayed.
*/
val displayName: kotlin.String? = builder.displayName
/**
* The name of the experiment. The name must be unique in your Amazon Web Services account and is not
* case-sensitive.
*/
val experimentName: kotlin.String? = builder.experimentName
/**
* A list of tags to associate with the experiment. You can use Search API
* to search on the tags.
*/
val tags: List? = builder.tags
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.CreateExperimentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateExperimentRequest(")
append("description=$description,")
append("displayName=$displayName,")
append("experimentName=$experimentName,")
append("tags=$tags)")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (experimentName?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateExperimentRequest
if (description != other.description) return false
if (displayName != other.displayName) return false
if (experimentName != other.experimentName) return false
if (tags != other.tags) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.CreateExperimentRequest = Builder(this).apply(block).build()
class Builder {
/**
* The description of the experiment.
*/
var description: kotlin.String? = null
/**
* The name of the experiment as displayed. The name doesn't need to be unique. If you don't
* specify DisplayName, the value in ExperimentName is
* displayed.
*/
var displayName: kotlin.String? = null
/**
* The name of the experiment. The name must be unique in your Amazon Web Services account and is not
* case-sensitive.
*/
var experimentName: kotlin.String? = null
/**
* A list of tags to associate with the experiment. You can use Search API
* to search on the tags.
*/
var tags: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.CreateExperimentRequest) : this() {
this.description = x.description
this.displayName = x.displayName
this.experimentName = x.experimentName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.CreateExperimentRequest = CreateExperimentRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy