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

com.pulumi.azurenative.appplatform.kotlin.inputs.BindingResourcePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.BindingResourcePropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Binding resource properties payload
 * @property bindingParameters Binding parameters of the Binding resource
 * @property key The key of the bound resource
 * @property resourceId The Azure resource id of the bound resource
 */
public data class BindingResourcePropertiesArgs(
    public val bindingParameters: Output>? = null,
    public val key: Output? = null,
    public val resourceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.BindingResourcePropertiesArgs =
        com.pulumi.azurenative.appplatform.inputs.BindingResourcePropertiesArgs.builder()
            .bindingParameters(
                bindingParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .key(key?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 })).build()
}

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

    private var key: Output? = null

    private var resourceId: Output? = null

    /**
     * @param value Binding parameters of the Binding resource
     */
    @JvmName("xyexfqtbxqddafja")
    public suspend fun bindingParameters(`value`: Output>) {
        this.bindingParameters = value
    }

    /**
     * @param value The key of the bound resource
     */
    @JvmName("qhtinxpbvpjydneu")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The Azure resource id of the bound resource
     */
    @JvmName("oemravmjikonsnwl")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value Binding parameters of the Binding resource
     */
    @JvmName("jqwtnqkowklfrbsp")
    public suspend fun bindingParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bindingParameters = mapped
    }

    /**
     * @param values Binding parameters of the Binding resource
     */
    @JvmName("urjpsxphcmryskkt")
    public fun bindingParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bindingParameters = mapped
    }

    /**
     * @param value The key of the bound resource
     */
    @JvmName("uqrcmdxanravlfub")
    public suspend fun key(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value The Azure resource id of the bound resource
     */
    @JvmName("bsddjlxbguqhxkfn")
    public suspend fun resourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

    internal fun build(): BindingResourcePropertiesArgs = BindingResourcePropertiesArgs(
        bindingParameters = bindingParameters,
        key = key,
        resourceId = resourceId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy