commonMain.aws.sdk.kotlin.services.customerprofiles.model.MatchItem.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
/**
* The Match group object.
*/
public class MatchItem private constructor(builder: Builder) {
/**
* A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores lets you distinguish between groups of similar records in which the system is highly confident (which you may decide to merge), groups of similar records about which the system is uncertain (which you may decide to have reviewed by a human), and groups of similar records that the system deems to be unlikely (which you may decide to reject). Given confidence scores vary as per the data input, it should not be used an absolute measure of matching quality.
*/
public val confidenceScore: kotlin.Double? = builder.confidenceScore
/**
* The unique identifiers for this group of profiles that match.
*/
public val matchId: kotlin.String? = builder.matchId
/**
* A list of identifiers for profiles that match.
*/
public val profileIds: List? = builder.profileIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.MatchItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MatchItem(")
append("confidenceScore=$confidenceScore,")
append("matchId=$matchId,")
append("profileIds=$profileIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = confidenceScore?.hashCode() ?: 0
result = 31 * result + (matchId?.hashCode() ?: 0)
result = 31 * result + (profileIds?.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 MatchItem
if (confidenceScore != other.confidenceScore) return false
if (matchId != other.matchId) return false
if (profileIds != other.profileIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.MatchItem = Builder(this).apply(block).build()
public class Builder {
/**
* A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores lets you distinguish between groups of similar records in which the system is highly confident (which you may decide to merge), groups of similar records about which the system is uncertain (which you may decide to have reviewed by a human), and groups of similar records that the system deems to be unlikely (which you may decide to reject). Given confidence scores vary as per the data input, it should not be used an absolute measure of matching quality.
*/
public var confidenceScore: kotlin.Double? = null
/**
* The unique identifiers for this group of profiles that match.
*/
public var matchId: kotlin.String? = null
/**
* A list of identifiers for profiles that match.
*/
public var profileIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.MatchItem) : this() {
this.confidenceScore = x.confidenceScore
this.matchId = x.matchId
this.profileIds = x.profileIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.MatchItem = MatchItem(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy