
commonMain.aws.sdk.kotlin.services.customerprofiles.model.GetAutoMergingPreviewRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
public class GetAutoMergingPreviewRequest private constructor(builder: Builder) {
/**
* How the auto-merging process should resolve conflicts between different profiles.
*/
public val conflictResolution: aws.sdk.kotlin.services.customerprofiles.model.ConflictResolution? = builder.conflictResolution
/**
* A list of matching attributes that represent matching criteria.
*/
public val consolidation: aws.sdk.kotlin.services.customerprofiles.model.Consolidation? = builder.consolidation
/**
* The unique name of the domain.
*/
public val domainName: kotlin.String? = requireNotNull(builder.domainName) { "A non-null value must be provided for domainName" }
/**
* Minimum confidence score required for profiles within a matching group to be merged during the auto-merge process.
*/
public val minAllowedConfidenceScoreForMerging: kotlin.Double? = builder.minAllowedConfidenceScoreForMerging
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.GetAutoMergingPreviewRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAutoMergingPreviewRequest(")
append("conflictResolution=$conflictResolution,")
append("consolidation=$consolidation,")
append("domainName=$domainName,")
append("minAllowedConfidenceScoreForMerging=$minAllowedConfidenceScoreForMerging")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = conflictResolution?.hashCode() ?: 0
result = 31 * result + (consolidation?.hashCode() ?: 0)
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (minAllowedConfidenceScoreForMerging?.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 GetAutoMergingPreviewRequest
if (conflictResolution != other.conflictResolution) return false
if (consolidation != other.consolidation) return false
if (domainName != other.domainName) return false
if (minAllowedConfidenceScoreForMerging != other.minAllowedConfidenceScoreForMerging) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.GetAutoMergingPreviewRequest = Builder(this).apply(block).build()
public class Builder {
/**
* How the auto-merging process should resolve conflicts between different profiles.
*/
public var conflictResolution: aws.sdk.kotlin.services.customerprofiles.model.ConflictResolution? = null
/**
* A list of matching attributes that represent matching criteria.
*/
public var consolidation: aws.sdk.kotlin.services.customerprofiles.model.Consolidation? = null
/**
* The unique name of the domain.
*/
public var domainName: kotlin.String? = null
/**
* Minimum confidence score required for profiles within a matching group to be merged during the auto-merge process.
*/
public var minAllowedConfidenceScoreForMerging: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.GetAutoMergingPreviewRequest) : this() {
this.conflictResolution = x.conflictResolution
this.consolidation = x.consolidation
this.domainName = x.domainName
this.minAllowedConfidenceScoreForMerging = x.minAllowedConfidenceScoreForMerging
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.GetAutoMergingPreviewRequest = GetAutoMergingPreviewRequest(this)
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.ConflictResolution] inside the given [block]
*/
public fun conflictResolution(block: aws.sdk.kotlin.services.customerprofiles.model.ConflictResolution.Builder.() -> kotlin.Unit) {
this.conflictResolution = aws.sdk.kotlin.services.customerprofiles.model.ConflictResolution.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.Consolidation] inside the given [block]
*/
public fun consolidation(block: aws.sdk.kotlin.services.customerprofiles.model.Consolidation.Builder.() -> kotlin.Unit) {
this.consolidation = aws.sdk.kotlin.services.customerprofiles.model.Consolidation.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy