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

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

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

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

import com.pulumi.azurenative.datamigration.inputs.ConnectToMongoDbTaskPropertiesArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Properties for the task that validates the connection to and provides information about a MongoDB server
 * @property clientData Key value pairs of client data to attach meta data information to task
 * @property input Describes a connection to a MongoDB data source
 * @property taskType Task type.
 * Expected value is 'Connect.MongoDb'.
 */
public data class ConnectToMongoDbTaskPropertiesArgs(
    public val clientData: Output>? = null,
    public val input: Output? = null,
    public val taskType: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datamigration.inputs.ConnectToMongoDbTaskPropertiesArgs =
        com.pulumi.azurenative.datamigration.inputs.ConnectToMongoDbTaskPropertiesArgs.builder()
            .clientData(
                clientData?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .input(input?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .taskType(taskType.applyValue({ args0 -> args0 })).build()
}

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

    private var input: Output? = null

    private var taskType: Output? = null

    /**
     * @param value Key value pairs of client data to attach meta data information to task
     */
    @JvmName("lcxhiiywhvdvjglw")
    public suspend fun clientData(`value`: Output>) {
        this.clientData = value
    }

    /**
     * @param value Describes a connection to a MongoDB data source
     */
    @JvmName("ynvbbsfibcpminqr")
    public suspend fun input(`value`: Output) {
        this.input = value
    }

    /**
     * @param value Task type.
     * Expected value is 'Connect.MongoDb'.
     */
    @JvmName("renbkqnquhxppmdq")
    public suspend fun taskType(`value`: Output) {
        this.taskType = value
    }

    /**
     * @param value Key value pairs of client data to attach meta data information to task
     */
    @JvmName("jfbmakbpfeuipmmn")
    public suspend fun clientData(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientData = mapped
    }

    /**
     * @param values Key value pairs of client data to attach meta data information to task
     */
    @JvmName("hfdbfxdohagkfqlh")
    public fun clientData(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientData = mapped
    }

    /**
     * @param value Describes a connection to a MongoDB data source
     */
    @JvmName("arftokyqttmopohn")
    public suspend fun input(`value`: MongoDbConnectionInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.input = mapped
    }

    /**
     * @param argument Describes a connection to a MongoDB data source
     */
    @JvmName("agabdqbglhomywvn")
    public suspend fun input(argument: suspend MongoDbConnectionInfoArgsBuilder.() -> Unit) {
        val toBeMapped = MongoDbConnectionInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.input = mapped
    }

    /**
     * @param value Task type.
     * Expected value is 'Connect.MongoDb'.
     */
    @JvmName("hrkfjicanhywbnbj")
    public suspend fun taskType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskType = mapped
    }

    internal fun build(): ConnectToMongoDbTaskPropertiesArgs = ConnectToMongoDbTaskPropertiesArgs(
        clientData = clientData,
        input = input,
        taskType = taskType ?: throw PulumiNullFieldException("taskType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy