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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Contains all the information about a fraudster.
 */
public class Fraudster private constructor(builder: Builder) {
    /**
     * The timestamp of when Voice ID identified the fraudster.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The identifier of the domain that contains the fraudster.
     */
    public val domainId: kotlin.String? = builder.domainId
    /**
     * The service-generated identifier for the fraudster.
     */
    public val generatedFraudsterId: kotlin.String? = builder.generatedFraudsterId
    /**
     * The identifier of the watchlists the fraudster is a part of.
     */
    public val watchlistIds: List? = builder.watchlistIds

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

    override fun toString(): kotlin.String = buildString {
        append("Fraudster(")
        append("createdAt=$createdAt,")
        append("domainId=$domainId,")
        append("generatedFraudsterId=$generatedFraudsterId,")
        append("watchlistIds=$watchlistIds")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (domainId?.hashCode() ?: 0)
        result = 31 * result + (generatedFraudsterId?.hashCode() ?: 0)
        result = 31 * result + (watchlistIds?.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 Fraudster

        if (createdAt != other.createdAt) return false
        if (domainId != other.domainId) return false
        if (generatedFraudsterId != other.generatedFraudsterId) return false
        if (watchlistIds != other.watchlistIds) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp of when Voice ID identified the fraudster.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier of the domain that contains the fraudster.
         */
        public var domainId: kotlin.String? = null
        /**
         * The service-generated identifier for the fraudster.
         */
        public var generatedFraudsterId: kotlin.String? = null
        /**
         * The identifier of the watchlists the fraudster is a part of.
         */
        public var watchlistIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.voiceid.model.Fraudster) : this() {
            this.createdAt = x.createdAt
            this.domainId = x.domainId
            this.generatedFraudsterId = x.generatedFraudsterId
            this.watchlistIds = x.watchlistIds
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy