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

com.pulumi.azurenative.datafactory.kotlin.inputs.MapperConnectionArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.MapperConnectionArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.ConnectionType
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Source connection details.
 * @property commonDslConnectorProperties List of name/value pairs for connection properties.
 * @property isInlineDataset A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
 * @property linkedService Linked service reference.
 * @property linkedServiceType Type of the linked service e.g.: AzureBlobFS.
 * @property type Type of connection via linked service or dataset.
 */
public data class MapperConnectionArgs(
    public val commonDslConnectorProperties: Output>? = null,
    public val isInlineDataset: Output? = null,
    public val linkedService: Output? = null,
    public val linkedServiceType: Output? = null,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.MapperConnectionArgs =
        com.pulumi.azurenative.datafactory.inputs.MapperConnectionArgs.builder()
            .commonDslConnectorProperties(
                commonDslConnectorProperties?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .isInlineDataset(isInlineDataset?.applyValue({ args0 -> args0 }))
            .linkedService(linkedService?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .linkedServiceType(linkedServiceType?.applyValue({ args0 -> args0 }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var isInlineDataset: Output? = null

    private var linkedService: Output? = null

    private var linkedServiceType: Output? = null

    private var type: Output>? = null

    /**
     * @param value List of name/value pairs for connection properties.
     */
    @JvmName("uyadlonvynlhucpn")
    public suspend fun commonDslConnectorProperties(`value`: Output>) {
        this.commonDslConnectorProperties = value
    }

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

    /**
     * @param values List of name/value pairs for connection properties.
     */
    @JvmName("leduupbjekmtoksu")
    public suspend fun commonDslConnectorProperties(values: List>) {
        this.commonDslConnectorProperties = Output.all(values)
    }

    /**
     * @param value A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
     */
    @JvmName("dhvahulmfamnnnhv")
    public suspend fun isInlineDataset(`value`: Output) {
        this.isInlineDataset = value
    }

    /**
     * @param value Linked service reference.
     */
    @JvmName("nuwvsravtpxkifbi")
    public suspend fun linkedService(`value`: Output) {
        this.linkedService = value
    }

    /**
     * @param value Type of the linked service e.g.: AzureBlobFS.
     */
    @JvmName("osrmbpljvnevosfu")
    public suspend fun linkedServiceType(`value`: Output) {
        this.linkedServiceType = value
    }

    /**
     * @param value Type of connection via linked service or dataset.
     */
    @JvmName("jdjonmroankctkuv")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value List of name/value pairs for connection properties.
     */
    @JvmName("gfmtqmkqoqhfhdjy")
    public suspend fun commonDslConnectorProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commonDslConnectorProperties = mapped
    }

    /**
     * @param argument List of name/value pairs for connection properties.
     */
    @JvmName("qxjpjpncbdywlbls")
    public suspend fun commonDslConnectorProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MapperDslConnectorPropertiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.commonDslConnectorProperties = mapped
    }

    /**
     * @param argument List of name/value pairs for connection properties.
     */
    @JvmName("ohkvxxmjqfuxckwc")
    public suspend fun commonDslConnectorProperties(vararg argument: suspend MapperDslConnectorPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MapperDslConnectorPropertiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.commonDslConnectorProperties = mapped
    }

    /**
     * @param argument List of name/value pairs for connection properties.
     */
    @JvmName("oacrbrsstptwmgbd")
    public suspend fun commonDslConnectorProperties(argument: suspend MapperDslConnectorPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MapperDslConnectorPropertiesArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.commonDslConnectorProperties = mapped
    }

    /**
     * @param values List of name/value pairs for connection properties.
     */
    @JvmName("hssmxibuminimsap")
    public suspend fun commonDslConnectorProperties(vararg values: MapperDslConnectorPropertiesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.commonDslConnectorProperties = mapped
    }

    /**
     * @param value A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
     */
    @JvmName("ilarfkiqvemdfcst")
    public suspend fun isInlineDataset(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isInlineDataset = mapped
    }

    /**
     * @param value Linked service reference.
     */
    @JvmName("sjuuwjwhvwoyiyfu")
    public suspend fun linkedService(`value`: LinkedServiceReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkedService = mapped
    }

    /**
     * @param argument Linked service reference.
     */
    @JvmName("rmqpvrywlnlyrwwb")
    public suspend fun linkedService(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linkedService = mapped
    }

    /**
     * @param value Type of the linked service e.g.: AzureBlobFS.
     */
    @JvmName("sxiqqssfsdvfuyfn")
    public suspend fun linkedServiceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkedServiceType = mapped
    }

    /**
     * @param value Type of connection via linked service or dataset.
     */
    @JvmName("fpirnfhgetvubits")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Type of connection via linked service or dataset.
     */
    @JvmName("hdpusnimjpgndumk")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Type of connection via linked service or dataset.
     */
    @JvmName("unousqfymwgjvcgf")
    public fun type(`value`: ConnectionType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): MapperConnectionArgs = MapperConnectionArgs(
        commonDslConnectorProperties = commonDslConnectorProperties,
        isInlineDataset = isInlineDataset,
        linkedService = linkedService,
        linkedServiceType = linkedServiceType,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy