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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about a shot detection segment detected in a video. For more information, see SegmentDetection.
 */
public class ShotSegment private constructor(builder: Builder) {
    /**
     * The confidence that Amazon Rekognition Video has in the accuracy of the detected segment.
     */
    public val confidence: kotlin.Float? = builder.confidence
    /**
     * An Identifier for a shot detection segment detected in a video.
     */
    public val index: kotlin.Long? = builder.index

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

    override fun toString(): kotlin.String = buildString {
        append("ShotSegment(")
        append("confidence=$confidence,")
        append("index=$index")
        append(")")
    }

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

        if (!(confidence?.equals(other.confidence) ?: (other.confidence == null))) return false
        if (index != other.index) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The confidence that Amazon Rekognition Video has in the accuracy of the detected segment.
         */
        public var confidence: kotlin.Float? = null
        /**
         * An Identifier for a shot detection segment detected in a video.
         */
        public var index: kotlin.Long? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy