
commonMain.aws.sdk.kotlin.services.voiceid.model.FraudsterSummary.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 a summary of information about a fraudster.
*/
public class FraudsterSummary private constructor(builder: Builder) {
/**
* The timestamp of when the fraudster summary was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The identifier of the domain that contains the fraudster summary.
*/
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.FraudsterSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FraudsterSummary(")
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 FraudsterSummary
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.FraudsterSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp of when the fraudster summary was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier of the domain that contains the fraudster summary.
*/
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.FraudsterSummary) : 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.FraudsterSummary = FraudsterSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy