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

commonMain.aws.sdk.kotlin.services.qbusiness.model.UpdateUserResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.qbusiness.model



public class UpdateUserResponse private constructor(builder: Builder) {
    /**
     * The user aliases that have been to be added to a user id.
     */
    public val userAliasesAdded: List? = builder.userAliasesAdded
    /**
     * The user aliases that have been deleted from a user id.
     */
    public val userAliasesDeleted: List? = builder.userAliasesDeleted
    /**
     * The user aliases attached to a user id that have been updated.
     */
    public val userAliasesUpdated: List? = builder.userAliasesUpdated

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateUserResponse(")
        append("userAliasesAdded=$userAliasesAdded,")
        append("userAliasesDeleted=$userAliasesDeleted,")
        append("userAliasesUpdated=$userAliasesUpdated")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = userAliasesAdded?.hashCode() ?: 0
        result = 31 * result + (userAliasesDeleted?.hashCode() ?: 0)
        result = 31 * result + (userAliasesUpdated?.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 UpdateUserResponse

        if (userAliasesAdded != other.userAliasesAdded) return false
        if (userAliasesDeleted != other.userAliasesDeleted) return false
        if (userAliasesUpdated != other.userAliasesUpdated) return false

        return true
    }

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

    public class Builder {
        /**
         * The user aliases that have been to be added to a user id.
         */
        public var userAliasesAdded: List? = null
        /**
         * The user aliases that have been deleted from a user id.
         */
        public var userAliasesDeleted: List? = null
        /**
         * The user aliases attached to a user id that have been updated.
         */
        public var userAliasesUpdated: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.UpdateUserResponse) : this() {
            this.userAliasesAdded = x.userAliasesAdded
            this.userAliasesDeleted = x.userAliasesDeleted
            this.userAliasesUpdated = x.userAliasesUpdated
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.qbusiness.model.UpdateUserResponse = UpdateUserResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy