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

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

package com.pulumi.azure.datafactory.kotlin.inputs

import com.pulumi.azure.datafactory.inputs.DataFlowSinkArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property dataset A `dataset` block as defined below.
 * @property description The description for the Data Flow Source.
 * @property flowlet A `flowlet` block as defined below.
 * @property linkedService A `linked_service` block as defined below.
 * @property name The name for the Data Flow Source.
 * @property rejectedLinkedService A `rejected_linked_service` block as defined below.
 * @property schemaLinkedService A `schema_linked_service` block as defined below.
 */
public data class DataFlowSinkArgs(
    public val dataset: Output? = null,
    public val description: Output? = null,
    public val flowlet: Output? = null,
    public val linkedService: Output? = null,
    public val name: Output,
    public val rejectedLinkedService: Output? = null,
    public val schemaLinkedService: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.datafactory.inputs.DataFlowSinkArgs =
        com.pulumi.azure.datafactory.inputs.DataFlowSinkArgs.builder()
            .dataset(dataset?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .flowlet(flowlet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .linkedService(linkedService?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .rejectedLinkedService(
                rejectedLinkedService?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .schemaLinkedService(
                schemaLinkedService?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataFlowSinkArgs].
 */
@PulumiTagMarker
public class DataFlowSinkArgsBuilder internal constructor() {
    private var dataset: Output? = null

    private var description: Output? = null

    private var flowlet: Output? = null

    private var linkedService: Output? = null

    private var name: Output? = null

    private var rejectedLinkedService: Output? = null

    private var schemaLinkedService: Output? = null

    /**
     * @param value A `dataset` block as defined below.
     */
    @JvmName("ghhituseyhuvftja")
    public suspend fun dataset(`value`: Output) {
        this.dataset = value
    }

    /**
     * @param value The description for the Data Flow Source.
     */
    @JvmName("jpqybrtrcvalrfyr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A `flowlet` block as defined below.
     */
    @JvmName("wrewnyoxrqscodtl")
    public suspend fun flowlet(`value`: Output) {
        this.flowlet = value
    }

    /**
     * @param value A `linked_service` block as defined below.
     */
    @JvmName("vkqdyelckngsqhxq")
    public suspend fun linkedService(`value`: Output) {
        this.linkedService = value
    }

    /**
     * @param value The name for the Data Flow Source.
     */
    @JvmName("nsxkbiydqavbjrwa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `rejected_linked_service` block as defined below.
     */
    @JvmName("mnmhyikreuacmogd")
    public suspend fun rejectedLinkedService(`value`: Output) {
        this.rejectedLinkedService = value
    }

    /**
     * @param value A `schema_linked_service` block as defined below.
     */
    @JvmName("xccvnetunrcvxxqh")
    public suspend fun schemaLinkedService(`value`: Output) {
        this.schemaLinkedService = value
    }

    /**
     * @param value A `dataset` block as defined below.
     */
    @JvmName("xtuhohgeoltkmxcb")
    public suspend fun dataset(`value`: DataFlowSinkDatasetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataset = mapped
    }

    /**
     * @param argument A `dataset` block as defined below.
     */
    @JvmName("wabqyrhgamofvynm")
    public suspend fun dataset(argument: suspend DataFlowSinkDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowSinkDatasetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dataset = mapped
    }

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

    /**
     * @param value A `flowlet` block as defined below.
     */
    @JvmName("nhhrojkcmmoipwou")
    public suspend fun flowlet(`value`: DataFlowSinkFlowletArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowlet = mapped
    }

    /**
     * @param argument A `flowlet` block as defined below.
     */
    @JvmName("fqotypvveglranuy")
    public suspend fun flowlet(argument: suspend DataFlowSinkFlowletArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowSinkFlowletArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.flowlet = mapped
    }

    /**
     * @param value A `linked_service` block as defined below.
     */
    @JvmName("iwwwtabaestqutyh")
    public suspend fun linkedService(`value`: DataFlowSinkLinkedServiceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkedService = mapped
    }

    /**
     * @param argument A `linked_service` block as defined below.
     */
    @JvmName("cprjanqjvcdfxunj")
    public suspend
    fun linkedService(argument: suspend DataFlowSinkLinkedServiceArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowSinkLinkedServiceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linkedService = mapped
    }

    /**
     * @param value The name for the Data Flow Source.
     */
    @JvmName("xupcjxsgxyhkgfha")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `rejected_linked_service` block as defined below.
     */
    @JvmName("hrimnwxpdhhaufot")
    public suspend fun rejectedLinkedService(`value`: DataFlowSinkRejectedLinkedServiceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rejectedLinkedService = mapped
    }

    /**
     * @param argument A `rejected_linked_service` block as defined below.
     */
    @JvmName("cnxquvjyyniarqrf")
    public suspend
    fun rejectedLinkedService(argument: suspend DataFlowSinkRejectedLinkedServiceArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowSinkRejectedLinkedServiceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.rejectedLinkedService = mapped
    }

    /**
     * @param value A `schema_linked_service` block as defined below.
     */
    @JvmName("vvsqgnguhfojfxmu")
    public suspend fun schemaLinkedService(`value`: DataFlowSinkSchemaLinkedServiceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaLinkedService = mapped
    }

    /**
     * @param argument A `schema_linked_service` block as defined below.
     */
    @JvmName("ibbiolbcueerqpqh")
    public suspend
    fun schemaLinkedService(argument: suspend DataFlowSinkSchemaLinkedServiceArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowSinkSchemaLinkedServiceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schemaLinkedService = mapped
    }

    internal fun build(): DataFlowSinkArgs = DataFlowSinkArgs(
        dataset = dataset,
        description = description,
        flowlet = flowlet,
        linkedService = linkedService,
        name = name ?: throw PulumiNullFieldException("name"),
        rejectedLinkedService = rejectedLinkedService,
        schemaLinkedService = schemaLinkedService,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy