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

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

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

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



public class SearchFacesResponse private constructor(builder: Builder) {
    /**
     * An array of faces that matched the input face, along with the confidence in the match.
     */
    public val faceMatches: List? = builder.faceMatches
    /**
     * Version number of the face detection model associated with the input collection (`CollectionId`).
     */
    public val faceModelVersion: kotlin.String? = builder.faceModelVersion
    /**
     * ID of the face that was searched for matches in a collection.
     */
    public val searchedFaceId: kotlin.String? = builder.searchedFaceId

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

    override fun toString(): kotlin.String = buildString {
        append("SearchFacesResponse(")
        append("faceMatches=$faceMatches,")
        append("faceModelVersion=$faceModelVersion,")
        append("searchedFaceId=$searchedFaceId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = faceMatches?.hashCode() ?: 0
        result = 31 * result + (faceModelVersion?.hashCode() ?: 0)
        result = 31 * result + (searchedFaceId?.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 SearchFacesResponse

        if (faceMatches != other.faceMatches) return false
        if (faceModelVersion != other.faceModelVersion) return false
        if (searchedFaceId != other.searchedFaceId) return false

        return true
    }

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

    public class Builder {
        /**
         * An array of faces that matched the input face, along with the confidence in the match.
         */
        public var faceMatches: List? = null
        /**
         * Version number of the face detection model associated with the input collection (`CollectionId`).
         */
        public var faceModelVersion: kotlin.String? = null
        /**
         * ID of the face that was searched for matches in a collection.
         */
        public var searchedFaceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rekognition.model.SearchFacesResponse) : this() {
            this.faceMatches = x.faceMatches
            this.faceModelVersion = x.faceModelVersion
            this.searchedFaceId = x.searchedFaceId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy