aws.sdk.kotlin.services.sagemaker.model.CategoricalParameter.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* Environment parameters you want to benchmark your load test against.
*/
class CategoricalParameter private constructor(builder: Builder) {
/**
* The Name of the environment variable.
*/
val name: kotlin.String? = builder.name
/**
* The list of values you can pass.
*/
val value: List? = builder.value
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.CategoricalParameter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CategoricalParameter(")
append("name=$name,")
append("value=$value)")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (value?.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 CategoricalParameter
if (name != other.name) return false
if (value != other.value) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.CategoricalParameter = Builder(this).apply(block).build()
class Builder {
/**
* The Name of the environment variable.
*/
var name: kotlin.String? = null
/**
* The list of values you can pass.
*/
var value: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.CategoricalParameter) : this() {
this.name = x.name
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.CategoricalParameter = CategoricalParameter(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy