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

commonMain.aws.sdk.kotlin.services.voiceid.model.FraudDetectionConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.voiceid.model



/**
 * The configuration used for performing fraud detection over a speaker during a session.
 */
public class FraudDetectionConfiguration private constructor(builder: Builder) {
    /**
     * Threshold value for determining whether the speaker is a fraudster. If the detected risk score calculated by Voice ID is higher than the threshold, the speaker is considered a fraudster.
     */
    public val riskThreshold: kotlin.Int? = builder.riskThreshold

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

    override fun toString(): kotlin.String = buildString {
        append("FraudDetectionConfiguration(")
        append("riskThreshold=$riskThreshold)")
    }

    override fun hashCode(): kotlin.Int {
        var result = riskThreshold ?: 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 FraudDetectionConfiguration

        if (riskThreshold != other.riskThreshold) return false

        return true
    }

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

    public class Builder {
        /**
         * Threshold value for determining whether the speaker is a fraudster. If the detected risk score calculated by Voice ID is higher than the threshold, the speaker is considered a fraudster.
         */
        public var riskThreshold: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.voiceid.model.FraudDetectionConfiguration) : this() {
            this.riskThreshold = x.riskThreshold
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.voiceid.model.FraudDetectionConfiguration = FraudDetectionConfiguration(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy