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

com.pulumi.azurenative.migrate.kotlin.inputs.WebApplicationConfigurationArgs.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.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.WebApplicationConfigurationArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.ConfigurationType
import com.pulumi.core.Either
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Class for web application configurations.
 * @property filePath Gets or sets the configuration file path.
 * @property identifier Gets or sets the identifier for the configuration.
 * @property isDeploymentTimeEditable Gets or sets a value indicating whether the configuration is edited or not by the user.
 * @property localFilePath Gets or sets the configuration local file path.
 * @property name Gets or sets the configuration name.
 * @property secretStoreDetails
 * @property section Gets or sets the configuration section in the file.
 * @property targetFilePath Gets or sets the configuration target file path.
 * @property type Gets or sets the configuration type.
 * @property value Gets or sets the configuration value.
 */
public data class WebApplicationConfigurationArgs(
    public val filePath: Output? = null,
    public val identifier: Output? = null,
    public val isDeploymentTimeEditable: Output? = null,
    public val localFilePath: Output? = null,
    public val name: Output? = null,
    public val secretStoreDetails: Output? = null,
    public val section: Output? = null,
    public val targetFilePath: Output? = null,
    public val type: Output>? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.WebApplicationConfigurationArgs =
        com.pulumi.azurenative.migrate.inputs.WebApplicationConfigurationArgs.builder()
            .filePath(filePath?.applyValue({ args0 -> args0 }))
            .identifier(identifier?.applyValue({ args0 -> args0 }))
            .isDeploymentTimeEditable(isDeploymentTimeEditable?.applyValue({ args0 -> args0 }))
            .localFilePath(localFilePath?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .secretStoreDetails(
                secretStoreDetails?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .section(section?.applyValue({ args0 -> args0 }))
            .targetFilePath(targetFilePath?.applyValue({ args0 -> args0 }))
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WebApplicationConfigurationArgs].
 */
@PulumiTagMarker
public class WebApplicationConfigurationArgsBuilder internal constructor() {
    private var filePath: Output? = null

    private var identifier: Output? = null

    private var isDeploymentTimeEditable: Output? = null

    private var localFilePath: Output? = null

    private var name: Output? = null

    private var secretStoreDetails: Output? = null

    private var section: Output? = null

    private var targetFilePath: Output? = null

    private var type: Output>? = null

    private var `value`: Output? = null

    /**
     * @param value Gets or sets the configuration file path.
     */
    @JvmName("ptkyyljnhbxugiqy")
    public suspend fun filePath(`value`: Output) {
        this.filePath = value
    }

    /**
     * @param value Gets or sets the identifier for the configuration.
     */
    @JvmName("eggpksnodumvidnv")
    public suspend fun identifier(`value`: Output) {
        this.identifier = value
    }

    /**
     * @param value Gets or sets a value indicating whether the configuration is edited or not by the user.
     */
    @JvmName("akubxowpntvghmgo")
    public suspend fun isDeploymentTimeEditable(`value`: Output) {
        this.isDeploymentTimeEditable = value
    }

    /**
     * @param value Gets or sets the configuration local file path.
     */
    @JvmName("icksrswwgfdusibj")
    public suspend fun localFilePath(`value`: Output) {
        this.localFilePath = value
    }

    /**
     * @param value Gets or sets the configuration name.
     */
    @JvmName("iawbhthviswdxtyu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value Gets or sets the configuration section in the file.
     */
    @JvmName("twgdqsiciqqiqgpo")
    public suspend fun section(`value`: Output) {
        this.section = value
    }

    /**
     * @param value Gets or sets the configuration target file path.
     */
    @JvmName("bxvumwxhbelerccs")
    public suspend fun targetFilePath(`value`: Output) {
        this.targetFilePath = value
    }

    /**
     * @param value Gets or sets the configuration type.
     */
    @JvmName("kejvtcrnodqjkabd")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Gets or sets the configuration value.
     */
    @JvmName("htciptrdlvdkqudu")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Gets or sets the configuration file path.
     */
    @JvmName("yaofytwbenfxkido")
    public suspend fun filePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filePath = mapped
    }

    /**
     * @param value Gets or sets the identifier for the configuration.
     */
    @JvmName("tabsuqugfidnbrtg")
    public suspend fun identifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifier = mapped
    }

    /**
     * @param value Gets or sets a value indicating whether the configuration is edited or not by the user.
     */
    @JvmName("bwexwfrslqpfivva")
    public suspend fun isDeploymentTimeEditable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isDeploymentTimeEditable = mapped
    }

    /**
     * @param value Gets or sets the configuration local file path.
     */
    @JvmName("kekloayhaegcinob")
    public suspend fun localFilePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localFilePath = mapped
    }

    /**
     * @param value Gets or sets the configuration name.
     */
    @JvmName("xnkqntnkhampfhhh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

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

    /**
     * @param value Gets or sets the configuration section in the file.
     */
    @JvmName("tbqlgiamhegxlewn")
    public suspend fun section(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.section = mapped
    }

    /**
     * @param value Gets or sets the configuration target file path.
     */
    @JvmName("npmxgkwoqpepappb")
    public suspend fun targetFilePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetFilePath = mapped
    }

    /**
     * @param value Gets or sets the configuration type.
     */
    @JvmName("adfbaxnktuxhnsbc")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Gets or sets the configuration type.
     */
    @JvmName("xxfamrbncutaooxr")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Gets or sets the configuration type.
     */
    @JvmName("ftcbtcddpjyjyoeq")
    public fun type(`value`: ConfigurationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Gets or sets the configuration value.
     */
    @JvmName("piyytotflgautpsj")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): WebApplicationConfigurationArgs = WebApplicationConfigurationArgs(
        filePath = filePath,
        identifier = identifier,
        isDeploymentTimeEditable = isDeploymentTimeEditable,
        localFilePath = localFilePath,
        name = name,
        secretStoreDetails = secretStoreDetails,
        section = section,
        targetFilePath = targetFilePath,
        type = type,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy