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

commonMain.aws.sdk.kotlin.services.rekognition.model.MatchedUser.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rekognition.model



/**
 * Contains metadata for a UserID matched with a given face.
 */
public class MatchedUser private constructor(builder: Builder) {
    /**
     * A provided ID for the UserID. Unique within the collection.
     */
    public val userId: kotlin.String? = builder.userId
    /**
     * The status of the user matched to a provided FaceID.
     */
    public val userStatus: aws.sdk.kotlin.services.rekognition.model.UserStatus? = builder.userStatus

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

    override fun toString(): kotlin.String = buildString {
        append("MatchedUser(")
        append("userId=$userId,")
        append("userStatus=$userStatus")
        append(")")
    }

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

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

        return true
    }

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

    public class Builder {
        /**
         * A provided ID for the UserID. Unique within the collection.
         */
        public var userId: kotlin.String? = null
        /**
         * The status of the user matched to a provided FaceID.
         */
        public var userStatus: aws.sdk.kotlin.services.rekognition.model.UserStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rekognition.model.MatchedUser) : this() {
            this.userId = x.userId
            this.userStatus = x.userStatus
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy