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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class DisassociateFacesResponse private constructor(builder: Builder) {
    /**
     * An array of DissociatedFace objects containing FaceIds that are successfully disassociated with the UserID is returned. Returned if the DisassociatedFaces action is successful.
     */
    public val disassociatedFaces: List? = builder.disassociatedFaces
    /**
     * An array of UnsuccessfulDisassociation objects containing FaceIds that are not successfully associated, along with the reasons for the failure to associate. Returned if the DisassociateFaces action is successful.
     */
    public val unsuccessfulFaceDisassociations: List? = builder.unsuccessfulFaceDisassociations
    /**
     * The status of an update made to a User. Reflects if the User 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.DisassociateFacesResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DisassociateFacesResponse(")
        append("disassociatedFaces=$disassociatedFaces,")
        append("unsuccessfulFaceDisassociations=$unsuccessfulFaceDisassociations,")
        append("userStatus=$userStatus")
        append(")")
    }

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

        if (disassociatedFaces != other.disassociatedFaces) return false
        if (unsuccessfulFaceDisassociations != other.unsuccessfulFaceDisassociations) return false
        if (userStatus != other.userStatus) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An array of DissociatedFace objects containing FaceIds that are successfully disassociated with the UserID is returned. Returned if the DisassociatedFaces action is successful.
         */
        public var disassociatedFaces: List? = null
        /**
         * An array of UnsuccessfulDisassociation objects containing FaceIds that are not successfully associated, along with the reasons for the failure to associate. Returned if the DisassociateFaces action is successful.
         */
        public var unsuccessfulFaceDisassociations: List? = null
        /**
         * The status of an update made to a User. Reflects if the User 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.DisassociateFacesResponse) : this() {
            this.disassociatedFaces = x.disassociatedFaces
            this.unsuccessfulFaceDisassociations = x.unsuccessfulFaceDisassociations
            this.userStatus = x.userStatus
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy