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

com.pulumi.awsnative.entityresolution.kotlin.SchemaMappingArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.entityresolution.kotlin

import com.pulumi.awsnative.entityresolution.SchemaMappingArgs.builder
import com.pulumi.awsnative.entityresolution.kotlin.inputs.SchemaMappingSchemaInputAttributeArgs
import com.pulumi.awsnative.entityresolution.kotlin.inputs.SchemaMappingSchemaInputAttributeArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * SchemaMapping defined in AWS Entity Resolution service
 * @property description The description of the SchemaMapping
 * @property mappedInputFields The SchemaMapping attributes input
 * @property schemaName The name of the SchemaMapping
 * @property tags The tags used to organize, track, or control access for this resource.
 */
public data class SchemaMappingArgs(
    public val description: Output? = null,
    public val mappedInputFields: Output>? = null,
    public val schemaName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.entityresolution.SchemaMappingArgs =
        com.pulumi.awsnative.entityresolution.SchemaMappingArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .mappedInputFields(
                mappedInputFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .schemaName(schemaName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SchemaMappingArgs].
 */
@PulumiTagMarker
public class SchemaMappingArgsBuilder internal constructor() {
    private var description: Output? = null

    private var mappedInputFields: Output>? = null

    private var schemaName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The description of the SchemaMapping
     */
    @JvmName("slcbkkhjquwkdbev")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The SchemaMapping attributes input
     */
    @JvmName("wthrytsrhbetqnmi")
    public suspend fun mappedInputFields(`value`: Output>) {
        this.mappedInputFields = value
    }

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

    /**
     * @param values The SchemaMapping attributes input
     */
    @JvmName("mbbdhcnbruqyjuhl")
    public suspend fun mappedInputFields(values: List>) {
        this.mappedInputFields = Output.all(values)
    }

    /**
     * @param value The name of the SchemaMapping
     */
    @JvmName("cresswalmgwwggad")
    public suspend fun schemaName(`value`: Output) {
        this.schemaName = value
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("ercjirjkholopkcm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("ngoprlnwjartcwcv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The description of the SchemaMapping
     */
    @JvmName("oubdiwdvupuxwjbm")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The SchemaMapping attributes input
     */
    @JvmName("jcofcdnwmvdysoej")
    public suspend fun mappedInputFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mappedInputFields = mapped
    }

    /**
     * @param argument The SchemaMapping attributes input
     */
    @JvmName("giwvvuealnktoqye")
    public suspend fun mappedInputFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SchemaMappingSchemaInputAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.mappedInputFields = mapped
    }

    /**
     * @param argument The SchemaMapping attributes input
     */
    @JvmName("vognwiguoskevxvk")
    public suspend fun mappedInputFields(vararg argument: suspend SchemaMappingSchemaInputAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SchemaMappingSchemaInputAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.mappedInputFields = mapped
    }

    /**
     * @param argument The SchemaMapping attributes input
     */
    @JvmName("csigicervioanowy")
    public suspend fun mappedInputFields(argument: suspend SchemaMappingSchemaInputAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SchemaMappingSchemaInputAttributeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.mappedInputFields = mapped
    }

    /**
     * @param values The SchemaMapping attributes input
     */
    @JvmName("pytnjsnmompyryic")
    public suspend fun mappedInputFields(vararg values: SchemaMappingSchemaInputAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mappedInputFields = mapped
    }

    /**
     * @param value The name of the SchemaMapping
     */
    @JvmName("cpdocdubxhvhngbk")
    public suspend fun schemaName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaName = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("anfupfucgkyrccbp")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("bbimuybiljoluupx")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("efrjadehqkshygjw")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("jidpxrbyurgwiavf")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("irbiybxaajspeivd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): SchemaMappingArgs = SchemaMappingArgs(
        description = description,
        mappedInputFields = mappedInputFields,
        schemaName = schemaName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy