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

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

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

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



public class AssociateFacesResponse private constructor(builder: Builder) {
    /**
     * An array of AssociatedFace objects containing FaceIDs that are successfully associated with the UserID is returned. Returned if the AssociateFaces action is successful.
     */
    public val associatedFaces: List? = builder.associatedFaces
    /**
     * An array of UnsuccessfulAssociation objects containing FaceIDs that are not successfully associated along with the reasons. Returned if the AssociateFaces action is successful.
     */
    public val unsuccessfulFaceAssociations: List? = builder.unsuccessfulFaceAssociations
    /**
     * The status of an update made to a UserID. Reflects if the UserID has been updated for every requested change.
     */
    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.AssociateFacesResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AssociateFacesResponse(")
        append("associatedFaces=$associatedFaces,")
        append("unsuccessfulFaceAssociations=$unsuccessfulFaceAssociations,")
        append("userStatus=$userStatus")
        append(")")
    }

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

        if (associatedFaces != other.associatedFaces) return false
        if (unsuccessfulFaceAssociations != other.unsuccessfulFaceAssociations) return false
        if (userStatus != other.userStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * An array of AssociatedFace objects containing FaceIDs that are successfully associated with the UserID is returned. Returned if the AssociateFaces action is successful.
         */
        public var associatedFaces: List? = null
        /**
         * An array of UnsuccessfulAssociation objects containing FaceIDs that are not successfully associated along with the reasons. Returned if the AssociateFaces action is successful.
         */
        public var unsuccessfulFaceAssociations: List? = null
        /**
         * The status of an update made to a UserID. Reflects if the UserID has been updated for every requested change.
         */
        public var userStatus: aws.sdk.kotlin.services.rekognition.model.UserStatus? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy