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

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

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

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



class UpdateDataSourceResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the data source.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
     */
    val dataSourceId: kotlin.String? = builder.dataSourceId
    /**
     * The Amazon Web Services request ID for this operation.
     */
    val requestId: kotlin.String? = builder.requestId
    /**
     * The HTTP status of the request.
     */
    val status: kotlin.Int = builder.status
    /**
     * The update status of the data source's last update.
     */
    val updateStatus: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = builder.updateStatus

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDataSourceResponse(")
        append("arn=$arn,")
        append("dataSourceId=$dataSourceId,")
        append("requestId=$requestId,")
        append("status=$status,")
        append("updateStatus=$updateStatus)")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (dataSourceId?.hashCode() ?: 0)
        result = 31 * result + (requestId?.hashCode() ?: 0)
        result = 31 * result + (status)
        result = 31 * result + (updateStatus?.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 UpdateDataSourceResponse

        if (arn != other.arn) return false
        if (dataSourceId != other.dataSourceId) return false
        if (requestId != other.requestId) return false
        if (status != other.status) return false
        if (updateStatus != other.updateStatus) return false

        return true
    }

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

    class Builder {
        /**
         * The Amazon Resource Name (ARN) of the data source.
         */
        var arn: kotlin.String? = null
        /**
         * The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
         */
        var dataSourceId: kotlin.String? = null
        /**
         * The Amazon Web Services request ID for this operation.
         */
        var requestId: kotlin.String? = null
        /**
         * The HTTP status of the request.
         */
        var status: kotlin.Int = 0
        /**
         * The update status of the data source's last update.
         */
        var updateStatus: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.UpdateDataSourceResponse) : this() {
            this.arn = x.arn
            this.dataSourceId = x.dataSourceId
            this.requestId = x.requestId
            this.status = x.status
            this.updateStatus = x.updateStatus
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy