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

com.pulumi.azurenative.sql.kotlin.inputs.JobStepOutputArgs.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.sql.kotlin.inputs

import com.pulumi.azurenative.sql.inputs.JobStepOutputArgs.builder
import com.pulumi.azurenative.sql.kotlin.enums.JobStepOutputType
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The output configuration of a job step.
 * @property credential The resource ID of the credential to use to connect to the output destination.
 * @property databaseName The output destination database.
 * @property resourceGroupName The output destination resource group.
 * @property schemaName The output destination schema.
 * @property serverName The output destination server name.
 * @property subscriptionId The output destination subscription id.
 * @property tableName The output destination table.
 * @property type The output destination type.
 */
public data class JobStepOutputArgs(
    public val credential: Output,
    public val databaseName: Output,
    public val resourceGroupName: Output? = null,
    public val schemaName: Output? = null,
    public val serverName: Output,
    public val subscriptionId: Output? = null,
    public val tableName: Output,
    public val type: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.sql.inputs.JobStepOutputArgs =
        com.pulumi.azurenative.sql.inputs.JobStepOutputArgs.builder()
            .credential(credential.applyValue({ args0 -> args0 }))
            .databaseName(databaseName.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .schemaName(schemaName?.applyValue({ args0 -> args0 }))
            .serverName(serverName.applyValue({ args0 -> args0 }))
            .subscriptionId(subscriptionId?.applyValue({ args0 -> args0 }))
            .tableName(tableName.applyValue({ args0 -> args0 }))
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [JobStepOutputArgs].
 */
@PulumiTagMarker
public class JobStepOutputArgsBuilder internal constructor() {
    private var credential: Output? = null

    private var databaseName: Output? = null

    private var resourceGroupName: Output? = null

    private var schemaName: Output? = null

    private var serverName: Output? = null

    private var subscriptionId: Output? = null

    private var tableName: Output? = null

    private var type: Output>? = null

    /**
     * @param value The resource ID of the credential to use to connect to the output destination.
     */
    @JvmName("vciipimjrfcdocyr")
    public suspend fun credential(`value`: Output) {
        this.credential = value
    }

    /**
     * @param value The output destination database.
     */
    @JvmName("enolnjsdajffqikr")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

    /**
     * @param value The output destination resource group.
     */
    @JvmName("oamydimyfuqwobvm")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The output destination schema.
     */
    @JvmName("pjahxbbwpdqcybvx")
    public suspend fun schemaName(`value`: Output) {
        this.schemaName = value
    }

    /**
     * @param value The output destination server name.
     */
    @JvmName("iqbylltbfsuhmgxk")
    public suspend fun serverName(`value`: Output) {
        this.serverName = value
    }

    /**
     * @param value The output destination subscription id.
     */
    @JvmName("gpqwbvlsrhwgwfxq")
    public suspend fun subscriptionId(`value`: Output) {
        this.subscriptionId = value
    }

    /**
     * @param value The output destination table.
     */
    @JvmName("iqjcfwjuqevkxjyi")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

    /**
     * @param value The output destination type.
     */
    @JvmName("heqcrqfivvxaenue")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value The resource ID of the credential to use to connect to the output destination.
     */
    @JvmName("oleopdpuqsuruhuk")
    public suspend fun credential(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credential = mapped
    }

    /**
     * @param value The output destination database.
     */
    @JvmName("flhdgwwgixbrjxti")
    public suspend fun databaseName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

    /**
     * @param value The output destination resource group.
     */
    @JvmName("umjyoxgbexgutpqq")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The output destination schema.
     */
    @JvmName("cbxmgbgcxkooracb")
    public suspend fun schemaName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaName = mapped
    }

    /**
     * @param value The output destination server name.
     */
    @JvmName("kpuwmegemlrgebrt")
    public suspend fun serverName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverName = mapped
    }

    /**
     * @param value The output destination subscription id.
     */
    @JvmName("lvgbkyxgbmbqvduk")
    public suspend fun subscriptionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscriptionId = mapped
    }

    /**
     * @param value The output destination table.
     */
    @JvmName("ntmfooxuysyympeq")
    public suspend fun tableName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    /**
     * @param value The output destination type.
     */
    @JvmName("kjtrofltnccnends")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The output destination type.
     */
    @JvmName("cpqarrvjrkmuadtc")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The output destination type.
     */
    @JvmName("sammbwaqmppprawt")
    public fun type(`value`: JobStepOutputType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): JobStepOutputArgs = JobStepOutputArgs(
        credential = credential ?: throw PulumiNullFieldException("credential"),
        databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
        resourceGroupName = resourceGroupName,
        schemaName = schemaName,
        serverName = serverName ?: throw PulumiNullFieldException("serverName"),
        subscriptionId = subscriptionId,
        tableName = tableName ?: throw PulumiNullFieldException("tableName"),
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy