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

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

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

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



/**
 * Indicates the direction the eyes are gazing in (independent of the head pose) as determined by its pitch and yaw.
 */
public class EyeDirection private constructor(builder: Builder) {
    /**
     * The confidence that the service has in its predicted eye direction.
     */
    public val confidence: kotlin.Float? = builder.confidence
    /**
     * Value representing eye direction on the pitch axis.
     */
    public val pitch: kotlin.Float? = builder.pitch
    /**
     * Value representing eye direction on the yaw axis.
     */
    public val yaw: kotlin.Float? = builder.yaw

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

    override fun toString(): kotlin.String = buildString {
        append("EyeDirection(")
        append("confidence=$confidence,")
        append("pitch=$pitch,")
        append("yaw=$yaw")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = confidence?.hashCode() ?: 0
        result = 31 * result + (pitch?.hashCode() ?: 0)
        result = 31 * result + (yaw?.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 EyeDirection

        if (confidence != other.confidence) return false
        if (pitch != other.pitch) return false
        if (yaw != other.yaw) return false

        return true
    }

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

    public class Builder {
        /**
         * The confidence that the service has in its predicted eye direction.
         */
        public var confidence: kotlin.Float? = null
        /**
         * Value representing eye direction on the pitch axis.
         */
        public var pitch: kotlin.Float? = null
        /**
         * Value representing eye direction on the yaw axis.
         */
        public var yaw: kotlin.Float? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rekognition.model.EyeDirection) : this() {
            this.confidence = x.confidence
            this.pitch = x.pitch
            this.yaw = x.yaw
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy