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

com.pulumi.azurenative.datamigration.kotlin.inputs.GetUserTablesSqlSyncTaskInputArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.datamigration.kotlin.inputs

import com.pulumi.azurenative.datamigration.inputs.GetUserTablesSqlSyncTaskInputArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Input for the task that collects user tables for the given list of databases
 * @property selectedSourceDatabases List of source database names to collect tables for
 * @property selectedTargetDatabases List of target database names to collect tables for
 * @property sourceConnectionInfo Connection information for SQL Server
 * @property targetConnectionInfo Connection information for SQL DB
 */
public data class GetUserTablesSqlSyncTaskInputArgs(
    public val selectedSourceDatabases: Output>,
    public val selectedTargetDatabases: Output>,
    public val sourceConnectionInfo: Output,
    public val targetConnectionInfo: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datamigration.inputs.GetUserTablesSqlSyncTaskInputArgs =
        com.pulumi.azurenative.datamigration.inputs.GetUserTablesSqlSyncTaskInputArgs.builder()
            .selectedSourceDatabases(
                selectedSourceDatabases.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .selectedTargetDatabases(
                selectedTargetDatabases.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .sourceConnectionInfo(
                sourceConnectionInfo.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .targetConnectionInfo(
                targetConnectionInfo.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var selectedTargetDatabases: Output>? = null

    private var sourceConnectionInfo: Output? = null

    private var targetConnectionInfo: Output? = null

    /**
     * @param value List of source database names to collect tables for
     */
    @JvmName("mscdofnydsrpltxc")
    public suspend fun selectedSourceDatabases(`value`: Output>) {
        this.selectedSourceDatabases = value
    }

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

    /**
     * @param values List of source database names to collect tables for
     */
    @JvmName("ippvprkgkcflrohs")
    public suspend fun selectedSourceDatabases(values: List>) {
        this.selectedSourceDatabases = Output.all(values)
    }

    /**
     * @param value List of target database names to collect tables for
     */
    @JvmName("xtpkjbijinxlffer")
    public suspend fun selectedTargetDatabases(`value`: Output>) {
        this.selectedTargetDatabases = value
    }

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

    /**
     * @param values List of target database names to collect tables for
     */
    @JvmName("hiwwdubijrtdnphd")
    public suspend fun selectedTargetDatabases(values: List>) {
        this.selectedTargetDatabases = Output.all(values)
    }

    /**
     * @param value Connection information for SQL Server
     */
    @JvmName("qumhlpftxbqioiwd")
    public suspend fun sourceConnectionInfo(`value`: Output) {
        this.sourceConnectionInfo = value
    }

    /**
     * @param value Connection information for SQL DB
     */
    @JvmName("jnapjsonsudyfmyn")
    public suspend fun targetConnectionInfo(`value`: Output) {
        this.targetConnectionInfo = value
    }

    /**
     * @param value List of source database names to collect tables for
     */
    @JvmName("kfcbishyflynwipv")
    public suspend fun selectedSourceDatabases(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selectedSourceDatabases = mapped
    }

    /**
     * @param values List of source database names to collect tables for
     */
    @JvmName("wthwtyqyyxfhwknt")
    public suspend fun selectedSourceDatabases(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selectedSourceDatabases = mapped
    }

    /**
     * @param value List of target database names to collect tables for
     */
    @JvmName("nsqkobmryamytecl")
    public suspend fun selectedTargetDatabases(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selectedTargetDatabases = mapped
    }

    /**
     * @param values List of target database names to collect tables for
     */
    @JvmName("nfprmkfuhrcpstfs")
    public suspend fun selectedTargetDatabases(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selectedTargetDatabases = mapped
    }

    /**
     * @param value Connection information for SQL Server
     */
    @JvmName("dsngrqkxoonwnxip")
    public suspend fun sourceConnectionInfo(`value`: SqlConnectionInfoArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceConnectionInfo = mapped
    }

    /**
     * @param argument Connection information for SQL Server
     */
    @JvmName("lpdrbeqjowrvpqqg")
    public suspend fun sourceConnectionInfo(argument: suspend SqlConnectionInfoArgsBuilder.() -> Unit) {
        val toBeMapped = SqlConnectionInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceConnectionInfo = mapped
    }

    /**
     * @param value Connection information for SQL DB
     */
    @JvmName("dnaxhfpclchtlhgg")
    public suspend fun targetConnectionInfo(`value`: SqlConnectionInfoArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetConnectionInfo = mapped
    }

    /**
     * @param argument Connection information for SQL DB
     */
    @JvmName("ccbwjsikwmpthetp")
    public suspend fun targetConnectionInfo(argument: suspend SqlConnectionInfoArgsBuilder.() -> Unit) {
        val toBeMapped = SqlConnectionInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.targetConnectionInfo = mapped
    }

    internal fun build(): GetUserTablesSqlSyncTaskInputArgs = GetUserTablesSqlSyncTaskInputArgs(
        selectedSourceDatabases = selectedSourceDatabases ?: throw
            PulumiNullFieldException("selectedSourceDatabases"),
        selectedTargetDatabases = selectedTargetDatabases ?: throw
            PulumiNullFieldException("selectedTargetDatabases"),
        sourceConnectionInfo = sourceConnectionInfo ?: throw
            PulumiNullFieldException("sourceConnectionInfo"),
        targetConnectionInfo = targetConnectionInfo ?: throw
            PulumiNullFieldException("targetConnectionInfo"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy