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

com.pulumi.azure.containerapp.kotlin.inputs.AppDaprArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.inputs

import com.pulumi.azure.containerapp.inputs.AppDaprArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property appId The Dapr Application Identifier.
 * @property appPort The port which the application is listening on. This is the same as the `ingress` port.
 * @property appProtocol The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.
 */
public data class AppDaprArgs(
    public val appId: Output,
    public val appPort: Output? = null,
    public val appProtocol: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerapp.inputs.AppDaprArgs =
        com.pulumi.azure.containerapp.inputs.AppDaprArgs.builder()
            .appId(appId.applyValue({ args0 -> args0 }))
            .appPort(appPort?.applyValue({ args0 -> args0 }))
            .appProtocol(appProtocol?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppDaprArgs].
 */
@PulumiTagMarker
public class AppDaprArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var appPort: Output? = null

    private var appProtocol: Output? = null

    /**
     * @param value The Dapr Application Identifier.
     */
    @JvmName("lhtqhgiqxxtkwcup")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value The port which the application is listening on. This is the same as the `ingress` port.
     */
    @JvmName("jdhkccaepyivdleh")
    public suspend fun appPort(`value`: Output) {
        this.appPort = value
    }

    /**
     * @param value The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.
     */
    @JvmName("jauxenkmfwbrxude")
    public suspend fun appProtocol(`value`: Output) {
        this.appProtocol = value
    }

    /**
     * @param value The Dapr Application Identifier.
     */
    @JvmName("whmrqibjoqvuagde")
    public suspend fun appId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value The port which the application is listening on. This is the same as the `ingress` port.
     */
    @JvmName("xvduiacklsbrjtlb")
    public suspend fun appPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appPort = mapped
    }

    /**
     * @param value The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.
     */
    @JvmName("agxsbulfjdcarmml")
    public suspend fun appProtocol(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appProtocol = mapped
    }

    internal fun build(): AppDaprArgs = AppDaprArgs(
        appId = appId ?: throw PulumiNullFieldException("appId"),
        appPort = appPort,
        appProtocol = appProtocol,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy