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

com.pulumi.awsnative.entityresolution.kotlin.inputs.IdMappingWorkflowRuleArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.entityresolution.kotlin.inputs

import com.pulumi.awsnative.entityresolution.inputs.IdMappingWorkflowRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property matchingKeys A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.
 * @property ruleName A name for the matching rule.
 */
public data class IdMappingWorkflowRuleArgs(
    public val matchingKeys: Output>,
    public val ruleName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.entityresolution.inputs.IdMappingWorkflowRuleArgs =
        com.pulumi.awsnative.entityresolution.inputs.IdMappingWorkflowRuleArgs.builder()
            .matchingKeys(matchingKeys.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ruleName(ruleName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IdMappingWorkflowRuleArgs].
 */
@PulumiTagMarker
public class IdMappingWorkflowRuleArgsBuilder internal constructor() {
    private var matchingKeys: Output>? = null

    private var ruleName: Output? = null

    /**
     * @param value A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.
     */
    @JvmName("ycobcvuogqmhfgyy")
    public suspend fun matchingKeys(`value`: Output>) {
        this.matchingKeys = value
    }

    @JvmName("gatsjomnacwaeuak")
    public suspend fun matchingKeys(vararg values: Output) {
        this.matchingKeys = Output.all(values.asList())
    }

    /**
     * @param values A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.
     */
    @JvmName("hrsdwtsvgbwwghsv")
    public suspend fun matchingKeys(values: List>) {
        this.matchingKeys = Output.all(values)
    }

    /**
     * @param value A name for the matching rule.
     */
    @JvmName("jmoycvqgrouyfbav")
    public suspend fun ruleName(`value`: Output) {
        this.ruleName = value
    }

    /**
     * @param value A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.
     */
    @JvmName("owyfwkoyqpcuesjv")
    public suspend fun matchingKeys(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchingKeys = mapped
    }

    /**
     * @param values A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.
     */
    @JvmName("qcgxlfukuufxbajs")
    public suspend fun matchingKeys(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchingKeys = mapped
    }

    /**
     * @param value A name for the matching rule.
     */
    @JvmName("mfrrbxliputkwipw")
    public suspend fun ruleName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleName = mapped
    }

    internal fun build(): IdMappingWorkflowRuleArgs = IdMappingWorkflowRuleArgs(
        matchingKeys = matchingKeys ?: throw PulumiNullFieldException("matchingKeys"),
        ruleName = ruleName ?: throw PulumiNullFieldException("ruleName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy