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

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

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

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



class DeleteThemeRequest private constructor(builder: Builder) {
    /**
     * The ID of the Amazon Web Services account that contains the theme that you're deleting.
     */
    val awsAccountId: kotlin.String? = builder.awsAccountId
    /**
     * An ID for the theme that you want to delete.
     */
    val themeId: kotlin.String? = builder.themeId
    /**
     * The version of the theme that you want to delete.
     *
     * **Note:** If you don't provide a version number, you're using this call to `DeleteTheme` to delete all versions of the theme.
     */
    val versionNumber: kotlin.Long? = builder.versionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteThemeRequest(")
        append("awsAccountId=$awsAccountId,")
        append("themeId=$themeId,")
        append("versionNumber=$versionNumber)")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsAccountId?.hashCode() ?: 0
        result = 31 * result + (themeId?.hashCode() ?: 0)
        result = 31 * result + (versionNumber?.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 DeleteThemeRequest

        if (awsAccountId != other.awsAccountId) return false
        if (themeId != other.themeId) return false
        if (versionNumber != other.versionNumber) return false

        return true
    }

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

    class Builder {
        /**
         * The ID of the Amazon Web Services account that contains the theme that you're deleting.
         */
        var awsAccountId: kotlin.String? = null
        /**
         * An ID for the theme that you want to delete.
         */
        var themeId: kotlin.String? = null
        /**
         * The version of the theme that you want to delete.
         *
         * **Note:** If you don't provide a version number, you're using this call to `DeleteTheme` to delete all versions of the theme.
         */
        var versionNumber: kotlin.Long? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DeleteThemeRequest) : this() {
            this.awsAccountId = x.awsAccountId
            this.themeId = x.themeId
            this.versionNumber = x.versionNumber
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy