
commonMain.aws.sdk.kotlin.services.quicksight.model.DecimalParameter.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A decimal parameter.
*/
class DecimalParameter private constructor(builder: Builder) {
/**
* A display name for the decimal parameter.
*/
val name: kotlin.String? = builder.name
/**
* The values for the decimal parameter.
*/
val values: List? = builder.values
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.DecimalParameter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DecimalParameter(")
append("name=$name,")
append("values=$values)")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (values?.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 DecimalParameter
if (name != other.name) return false
if (values != other.values) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.DecimalParameter = Builder(this).apply(block).build()
class Builder {
/**
* A display name for the decimal parameter.
*/
var name: kotlin.String? = null
/**
* The values for the decimal parameter.
*/
var values: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DecimalParameter) : this() {
this.name = x.name
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.DecimalParameter = DecimalParameter(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy