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: BuilderImpl) {
/**
* The description of the experiment.
*/
val description: 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: 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: 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 {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): CreateExperimentRequest = BuilderImpl().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 (javaClass != other?.javaClass) 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
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): CreateExperimentRequest = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): CreateExperimentRequest
/**
* The description of the experiment.
*/
fun description(description: String): FluentBuilder
/**
* 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.
*/
fun displayName(displayName: String): FluentBuilder
/**
* The name of the experiment. The name must be unique in your Amazon Web Services account and is not
* case-sensitive.
*/
fun experimentName(experimentName: String): FluentBuilder
/**
* A list of tags to associate with the experiment. You can use Search API
* to search on the tags.
*/
fun tags(tags: List): FluentBuilder
}
interface DslBuilder {
/**
* The description of the experiment.
*/
var description: String?
/**
* 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: String?
/**
* The name of the experiment. The name must be unique in your Amazon Web Services account and is not
* case-sensitive.
*/
var experimentName: String?
/**
* A list of tags to associate with the experiment. You can use Search API
* to search on the tags.
*/
var tags: List?
fun build(): CreateExperimentRequest
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var description: String? = null
override var displayName: String? = null
override var experimentName: String? = null
override var tags: List? = null
constructor(x: CreateExperimentRequest) : this() {
this.description = x.description
this.displayName = x.displayName
this.experimentName = x.experimentName
this.tags = x.tags
}
override fun build(): CreateExperimentRequest = CreateExperimentRequest(this)
override fun description(description: String): FluentBuilder = apply { this.description = description }
override fun displayName(displayName: String): FluentBuilder = apply { this.displayName = displayName }
override fun experimentName(experimentName: String): FluentBuilder = apply { this.experimentName = experimentName }
override fun tags(tags: List): FluentBuilder = apply { this.tags = tags }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy