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

com.pulumi.azurenative.web.kotlin.inputs.ApiConnectionDefinitionPropertiesArgs.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.web.kotlin.inputs

import com.pulumi.azurenative.web.inputs.ApiConnectionDefinitionPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property api
 * @property changedTime Timestamp of last connection change
 * @property createdTime Timestamp of the connection creation
 * @property customParameterValues Dictionary of custom parameter values
 * @property displayName Display name
 * @property nonSecretParameterValues Dictionary of nonsecret parameter values
 * @property parameterValues Dictionary of parameter values
 * @property statuses Status of the connection
 * @property testLinks Links to test the API connection
 */
public data class ApiConnectionDefinitionPropertiesArgs(
    public val api: Output? = null,
    public val changedTime: Output? = null,
    public val createdTime: Output? = null,
    public val customParameterValues: Output>? = null,
    public val displayName: Output? = null,
    public val nonSecretParameterValues: Output>? = null,
    public val parameterValues: Output>? = null,
    public val statuses: Output>? = null,
    public val testLinks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.web.inputs.ApiConnectionDefinitionPropertiesArgs =
        com.pulumi.azurenative.web.inputs.ApiConnectionDefinitionPropertiesArgs.builder()
            .api(api?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .changedTime(changedTime?.applyValue({ args0 -> args0 }))
            .createdTime(createdTime?.applyValue({ args0 -> args0 }))
            .customParameterValues(
                customParameterValues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .nonSecretParameterValues(
                nonSecretParameterValues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .parameterValues(
                parameterValues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .statuses(
                statuses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .testLinks(
                testLinks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApiConnectionDefinitionPropertiesArgs].
 */
@PulumiTagMarker
public class ApiConnectionDefinitionPropertiesArgsBuilder internal constructor() {
    private var api: Output? = null

    private var changedTime: Output? = null

    private var createdTime: Output? = null

    private var customParameterValues: Output>? = null

    private var displayName: Output? = null

    private var nonSecretParameterValues: Output>? = null

    private var parameterValues: Output>? = null

    private var statuses: Output>? = null

    private var testLinks: Output>? = null

    /**
     * @param value
     */
    @JvmName("wcbbcplnwjmmkxjo")
    public suspend fun api(`value`: Output) {
        this.api = value
    }

    /**
     * @param value Timestamp of last connection change
     */
    @JvmName("mnvmhkgggqaatkui")
    public suspend fun changedTime(`value`: Output) {
        this.changedTime = value
    }

    /**
     * @param value Timestamp of the connection creation
     */
    @JvmName("imeubtnutyemobch")
    public suspend fun createdTime(`value`: Output) {
        this.createdTime = value
    }

    /**
     * @param value Dictionary of custom parameter values
     */
    @JvmName("fukbqeocrwldcovr")
    public suspend fun customParameterValues(`value`: Output>) {
        this.customParameterValues = value
    }

    /**
     * @param value Display name
     */
    @JvmName("vslymlwocwevmemv")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Dictionary of nonsecret parameter values
     */
    @JvmName("tcotqurlitfivhxb")
    public suspend fun nonSecretParameterValues(`value`: Output>) {
        this.nonSecretParameterValues = value
    }

    /**
     * @param value Dictionary of parameter values
     */
    @JvmName("fgckqusbatjlwcur")
    public suspend fun parameterValues(`value`: Output>) {
        this.parameterValues = value
    }

    /**
     * @param value Status of the connection
     */
    @JvmName("nattdgppmcnbxrkb")
    public suspend fun statuses(`value`: Output>) {
        this.statuses = value
    }

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

    /**
     * @param values Status of the connection
     */
    @JvmName("dchfjdgucchlysbp")
    public suspend fun statuses(values: List>) {
        this.statuses = Output.all(values)
    }

    /**
     * @param value Links to test the API connection
     */
    @JvmName("qntnkqqwenbwnokn")
    public suspend fun testLinks(`value`: Output>) {
        this.testLinks = value
    }

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

    /**
     * @param values Links to test the API connection
     */
    @JvmName("pxxbnyaqyrqysjmq")
    public suspend fun testLinks(values: List>) {
        this.testLinks = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("kgksmgijfxrtkegx")
    public suspend fun api(`value`: ApiReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.api = mapped
    }

    /**
     * @param argument
     */
    @JvmName("dhqfehwtdabwvuyk")
    public suspend fun api(argument: suspend ApiReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = ApiReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.api = mapped
    }

    /**
     * @param value Timestamp of last connection change
     */
    @JvmName("grnbiumubkqokwky")
    public suspend fun changedTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.changedTime = mapped
    }

    /**
     * @param value Timestamp of the connection creation
     */
    @JvmName("wbwohmcgmwaocots")
    public suspend fun createdTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdTime = mapped
    }

    /**
     * @param value Dictionary of custom parameter values
     */
    @JvmName("qvsjpuhmwhyqgtwx")
    public suspend fun customParameterValues(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customParameterValues = mapped
    }

    /**
     * @param values Dictionary of custom parameter values
     */
    @JvmName("nranevtyidyatita")
    public fun customParameterValues(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customParameterValues = mapped
    }

    /**
     * @param value Display name
     */
    @JvmName("mwrajdejbpjdkngm")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Dictionary of nonsecret parameter values
     */
    @JvmName("qhwksyfwxfdmvcoq")
    public suspend fun nonSecretParameterValues(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nonSecretParameterValues = mapped
    }

    /**
     * @param values Dictionary of nonsecret parameter values
     */
    @JvmName("hiauvoebghttlbdd")
    public fun nonSecretParameterValues(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nonSecretParameterValues = mapped
    }

    /**
     * @param value Dictionary of parameter values
     */
    @JvmName("dmsfgaafjbihhslt")
    public suspend fun parameterValues(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterValues = mapped
    }

    /**
     * @param values Dictionary of parameter values
     */
    @JvmName("fglaqwshlqlyrgbo")
    public fun parameterValues(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameterValues = mapped
    }

    /**
     * @param value Status of the connection
     */
    @JvmName("thdaubmaaijefpip")
    public suspend fun statuses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statuses = mapped
    }

    /**
     * @param argument Status of the connection
     */
    @JvmName("ogxegbfxeswahmcm")
    public suspend fun statuses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectionStatusDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statuses = mapped
    }

    /**
     * @param argument Status of the connection
     */
    @JvmName("cwkawsesixiutxmp")
    public suspend fun statuses(vararg argument: suspend ConnectionStatusDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectionStatusDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statuses = mapped
    }

    /**
     * @param argument Status of the connection
     */
    @JvmName("lrcuhuxnfefeseqx")
    public suspend fun statuses(argument: suspend ConnectionStatusDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConnectionStatusDefinitionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.statuses = mapped
    }

    /**
     * @param values Status of the connection
     */
    @JvmName("cpvpqubdxalvodfp")
    public suspend fun statuses(vararg values: ConnectionStatusDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statuses = mapped
    }

    /**
     * @param value Links to test the API connection
     */
    @JvmName("pjkusypopbwesljh")
    public suspend fun testLinks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.testLinks = mapped
    }

    /**
     * @param argument Links to test the API connection
     */
    @JvmName("mnkxgtqgvqkxaflj")
    public suspend fun testLinks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApiConnectionTestLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.testLinks = mapped
    }

    /**
     * @param argument Links to test the API connection
     */
    @JvmName("gpwjoohxlxqfwani")
    public suspend fun testLinks(vararg argument: suspend ApiConnectionTestLinkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApiConnectionTestLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.testLinks = mapped
    }

    /**
     * @param argument Links to test the API connection
     */
    @JvmName("atnibywmveddcdwj")
    public suspend fun testLinks(argument: suspend ApiConnectionTestLinkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApiConnectionTestLinkArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.testLinks = mapped
    }

    /**
     * @param values Links to test the API connection
     */
    @JvmName("doclcpftqnkqrqwy")
    public suspend fun testLinks(vararg values: ApiConnectionTestLinkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.testLinks = mapped
    }

    internal fun build(): ApiConnectionDefinitionPropertiesArgs =
        ApiConnectionDefinitionPropertiesArgs(
            api = api,
            changedTime = changedTime,
            createdTime = createdTime,
            customParameterValues = customParameterValues,
            displayName = displayName,
            nonSecretParameterValues = nonSecretParameterValues,
            parameterValues = parameterValues,
            statuses = statuses,
            testLinks = testLinks,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy