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

com.pulumi.azurenative.app.kotlin.inputs.AzureCredentialsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.AzureCredentialsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Container App credentials.
 * @property clientId Client Id.
 * @property clientSecret Client Secret.
 * @property subscriptionId Subscription Id.
 * @property tenantId Tenant Id.
 */
public data class AzureCredentialsArgs(
    public val clientId: Output? = null,
    public val clientSecret: Output? = null,
    public val subscriptionId: Output? = null,
    public val tenantId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.AzureCredentialsArgs =
        com.pulumi.azurenative.app.inputs.AzureCredentialsArgs.builder()
            .clientId(clientId?.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
            .subscriptionId(subscriptionId?.applyValue({ args0 -> args0 }))
            .tenantId(tenantId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AzureCredentialsArgs].
 */
@PulumiTagMarker
public class AzureCredentialsArgsBuilder internal constructor() {
    private var clientId: Output? = null

    private var clientSecret: Output? = null

    private var subscriptionId: Output? = null

    private var tenantId: Output? = null

    /**
     * @param value Client Id.
     */
    @JvmName("xbemsgprkprjslhm")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value Client Secret.
     */
    @JvmName("kjmuuwefyqnuncsk")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value Subscription Id.
     */
    @JvmName("ooaedtbhllqqihbg")
    public suspend fun subscriptionId(`value`: Output) {
        this.subscriptionId = value
    }

    /**
     * @param value Tenant Id.
     */
    @JvmName("qywxnxealhusmdoh")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value Client Id.
     */
    @JvmName("paexcrjsdtmftmaf")
    public suspend fun clientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value Client Secret.
     */
    @JvmName("hfpevpfnshilfdrf")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    /**
     * @param value Subscription Id.
     */
    @JvmName("eheignwrwqlomlrj")
    public suspend fun subscriptionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscriptionId = mapped
    }

    /**
     * @param value Tenant Id.
     */
    @JvmName("xatrwjgievfrmwin")
    public suspend fun tenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    internal fun build(): AzureCredentialsArgs = AzureCredentialsArgs(
        clientId = clientId,
        clientSecret = clientSecret,
        subscriptionId = subscriptionId,
        tenantId = tenantId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy