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

commonMain.aws.sdk.kotlin.services.entityresolution.model.GetMatchIdRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.entityresolution.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetMatchIdRequest private constructor(builder: Builder) {
    /**
     * Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an `AttributeType` of `PHONE_NUMBER`, and the data in the input table is in a format of 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
     */
    public val applyNormalization: kotlin.Boolean? = builder.applyNormalization
    /**
     * The record to fetch the Match ID for.
     */
    public val record: Map? = builder.record
    /**
     * The name of the workflow.
     */
    public val workflowName: kotlin.String? = builder.workflowName

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

    override fun toString(): kotlin.String = buildString {
        append("GetMatchIdRequest(")
        append("applyNormalization=$applyNormalization,")
        append("record=*** Sensitive Data Redacted ***,")
        append("workflowName=$workflowName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applyNormalization?.hashCode() ?: 0
        result = 31 * result + (record?.hashCode() ?: 0)
        result = 31 * result + (workflowName?.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 GetMatchIdRequest

        if (applyNormalization != other.applyNormalization) return false
        if (record != other.record) return false
        if (workflowName != other.workflowName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an `AttributeType` of `PHONE_NUMBER`, and the data in the input table is in a format of 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
         */
        public var applyNormalization: kotlin.Boolean? = null
        /**
         * The record to fetch the Match ID for.
         */
        public var record: Map? = null
        /**
         * The name of the workflow.
         */
        public var workflowName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.GetMatchIdRequest) : this() {
            this.applyNormalization = x.applyNormalization
            this.record = x.record
            this.workflowName = x.workflowName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy