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

commonMain.aws.sdk.kotlin.services.customerprofiles.model.MatchingRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.customerprofiles.model



/**
 * The flag that enables the matching process of duplicate profiles.
 */
public class MatchingRequest private constructor(builder: Builder) {
    /**
     * Configuration information about the auto-merging process.
     */
    public val autoMerging: aws.sdk.kotlin.services.customerprofiles.model.AutoMerging? = builder.autoMerging
    /**
     * The flag that enables the matching process of duplicate profiles.
     */
    public val enabled: kotlin.Boolean? = builder.enabled
    /**
     * Configuration information for exporting Identity Resolution results, for example, to an S3 bucket.
     */
    public val exportingConfig: aws.sdk.kotlin.services.customerprofiles.model.ExportingConfig? = builder.exportingConfig
    /**
     * The day and time when do you want to start the Identity Resolution Job every week.
     */
    public val jobSchedule: aws.sdk.kotlin.services.customerprofiles.model.JobSchedule? = builder.jobSchedule

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

    override fun toString(): kotlin.String = buildString {
        append("MatchingRequest(")
        append("autoMerging=$autoMerging,")
        append("enabled=$enabled,")
        append("exportingConfig=$exportingConfig,")
        append("jobSchedule=$jobSchedule")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = autoMerging?.hashCode() ?: 0
        result = 31 * result + (enabled?.hashCode() ?: 0)
        result = 31 * result + (exportingConfig?.hashCode() ?: 0)
        result = 31 * result + (jobSchedule?.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 MatchingRequest

        if (autoMerging != other.autoMerging) return false
        if (enabled != other.enabled) return false
        if (exportingConfig != other.exportingConfig) return false
        if (jobSchedule != other.jobSchedule) return false

        return true
    }

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

    public class Builder {
        /**
         * Configuration information about the auto-merging process.
         */
        public var autoMerging: aws.sdk.kotlin.services.customerprofiles.model.AutoMerging? = null
        /**
         * The flag that enables the matching process of duplicate profiles.
         */
        public var enabled: kotlin.Boolean? = null
        /**
         * Configuration information for exporting Identity Resolution results, for example, to an S3 bucket.
         */
        public var exportingConfig: aws.sdk.kotlin.services.customerprofiles.model.ExportingConfig? = null
        /**
         * The day and time when do you want to start the Identity Resolution Job every week.
         */
        public var jobSchedule: aws.sdk.kotlin.services.customerprofiles.model.JobSchedule? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.MatchingRequest) : this() {
            this.autoMerging = x.autoMerging
            this.enabled = x.enabled
            this.exportingConfig = x.exportingConfig
            this.jobSchedule = x.jobSchedule
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.customerprofiles.model.AutoMerging] inside the given [block]
         */
        public fun autoMerging(block: aws.sdk.kotlin.services.customerprofiles.model.AutoMerging.Builder.() -> kotlin.Unit) {
            this.autoMerging = aws.sdk.kotlin.services.customerprofiles.model.AutoMerging.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.customerprofiles.model.ExportingConfig] inside the given [block]
         */
        public fun exportingConfig(block: aws.sdk.kotlin.services.customerprofiles.model.ExportingConfig.Builder.() -> kotlin.Unit) {
            this.exportingConfig = aws.sdk.kotlin.services.customerprofiles.model.ExportingConfig.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.customerprofiles.model.JobSchedule] inside the given [block]
         */
        public fun jobSchedule(block: aws.sdk.kotlin.services.customerprofiles.model.JobSchedule.Builder.() -> kotlin.Unit) {
            this.jobSchedule = aws.sdk.kotlin.services.customerprofiles.model.JobSchedule.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy