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

commonMain.aws.sdk.kotlin.services.finspacedata.model.ResetUserPasswordResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspacedata.model



public class ResetUserPasswordResponse private constructor(builder: Builder) {
    /**
     * A randomly generated temporary password for the requested user. This password expires in 7 days.
     */
    public val temporaryPassword: kotlin.String? = builder.temporaryPassword
    /**
     * The unique identifier of the user that a new password is generated for.
     */
    public val userId: kotlin.String? = builder.userId

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

    override fun toString(): kotlin.String = buildString {
        append("ResetUserPasswordResponse(")
        append("temporaryPassword=*** Sensitive Data Redacted ***,")
        append("userId=$userId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = temporaryPassword?.hashCode() ?: 0
        result = 31 * result + (userId?.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 ResetUserPasswordResponse

        if (temporaryPassword != other.temporaryPassword) return false
        if (userId != other.userId) return false

        return true
    }

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

    public class Builder {
        /**
         * A randomly generated temporary password for the requested user. This password expires in 7 days.
         */
        public var temporaryPassword: kotlin.String? = null
        /**
         * The unique identifier of the user that a new password is generated for.
         */
        public var userId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.ResetUserPasswordResponse) : this() {
            this.temporaryPassword = x.temporaryPassword
            this.userId = x.userId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy