All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.quicksight.model.Parameters.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.quicksight.model



/**
 * A list of Amazon QuickSight parameters and the list's override values.
 */
class Parameters private constructor(builder: Builder) {
    /**
     * The parameters that have a data type of date-time.
     */
    val dateTimeParameters: List? = builder.dateTimeParameters
    /**
     * The parameters that have a data type of decimal.
     */
    val decimalParameters: List? = builder.decimalParameters
    /**
     * The parameters that have a data type of integer.
     */
    val integerParameters: List? = builder.integerParameters
    /**
     * The parameters that have a data type of string.
     */
    val stringParameters: List? = builder.stringParameters

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.Parameters = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("Parameters(")
        append("dateTimeParameters=$dateTimeParameters,")
        append("decimalParameters=$decimalParameters,")
        append("integerParameters=$integerParameters,")
        append("stringParameters=$stringParameters)")
    }

    override fun hashCode(): kotlin.Int {
        var result = dateTimeParameters?.hashCode() ?: 0
        result = 31 * result + (decimalParameters?.hashCode() ?: 0)
        result = 31 * result + (integerParameters?.hashCode() ?: 0)
        result = 31 * result + (stringParameters?.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 Parameters

        if (dateTimeParameters != other.dateTimeParameters) return false
        if (decimalParameters != other.decimalParameters) return false
        if (integerParameters != other.integerParameters) return false
        if (stringParameters != other.stringParameters) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.Parameters = Builder(this).apply(block).build()

    class Builder {
        /**
         * The parameters that have a data type of date-time.
         */
        var dateTimeParameters: List? = null
        /**
         * The parameters that have a data type of decimal.
         */
        var decimalParameters: List? = null
        /**
         * The parameters that have a data type of integer.
         */
        var integerParameters: List? = null
        /**
         * The parameters that have a data type of string.
         */
        var stringParameters: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.Parameters) : this() {
            this.dateTimeParameters = x.dateTimeParameters
            this.decimalParameters = x.decimalParameters
            this.integerParameters = x.integerParameters
            this.stringParameters = x.stringParameters
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.quicksight.model.Parameters = Parameters(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy