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

com.pulumi.azure.nginx.kotlin.ConfigurationArgs.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.nginx.kotlin

import com.pulumi.azure.nginx.ConfigurationArgs.builder
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationConfigFileArgs
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationConfigFileArgsBuilder
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationProtectedFileArgs
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationProtectedFileArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property configFiles
 * @property nginxDeploymentId
 * @property packageData
 * @property protectedFiles
 * @property rootFile
 */
public data class ConfigurationArgs(
    public val configFiles: Output>? = null,
    public val nginxDeploymentId: Output? = null,
    public val packageData: Output? = null,
    public val protectedFiles: Output>? = null,
    public val rootFile: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.nginx.ConfigurationArgs =
        com.pulumi.azure.nginx.ConfigurationArgs.builder()
            .configFiles(
                configFiles?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .nginxDeploymentId(nginxDeploymentId?.applyValue({ args0 -> args0 }))
            .packageData(packageData?.applyValue({ args0 -> args0 }))
            .protectedFiles(
                protectedFiles?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .rootFile(rootFile?.applyValue({ args0 -> args0 })).build()
}

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

    private var nginxDeploymentId: Output? = null

    private var packageData: Output? = null

    private var protectedFiles: Output>? = null

    private var rootFile: Output? = null

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

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

    /**
     * @param values
     */
    @JvmName("wdtaraqytarwlblm")
    public suspend fun configFiles(values: List>) {
        this.configFiles = Output.all(values)
    }

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

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

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

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

    /**
     * @param values
     */
    @JvmName("qwsfshnmicbsbjix")
    public suspend fun protectedFiles(values: List>) {
        this.protectedFiles = Output.all(values)
    }

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

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

    /**
     * @param argument
     */
    @JvmName("lfgchyamcjuimavg")
    public suspend
    fun configFiles(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationConfigFileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.configFiles = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wevvvvhwecphbaxc")
    public suspend fun configFiles(
        vararg
        argument: suspend ConfigurationConfigFileArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ConfigurationConfigFileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.configFiles = mapped
    }

    /**
     * @param argument
     */
    @JvmName("kbgpfghbwgjklckp")
    public suspend fun configFiles(argument: suspend ConfigurationConfigFileArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConfigurationConfigFileArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.configFiles = mapped
    }

    /**
     * @param values
     */
    @JvmName("mpfysjjbandtgobh")
    public suspend fun configFiles(vararg values: ConfigurationConfigFileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configFiles = mapped
    }

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

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

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

    /**
     * @param argument
     */
    @JvmName("qtngmovvfeljrxmp")
    public suspend
    fun protectedFiles(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationProtectedFileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.protectedFiles = mapped
    }

    /**
     * @param argument
     */
    @JvmName("hpchshjjpxodfdyw")
    public suspend fun protectedFiles(
        vararg
        argument: suspend ConfigurationProtectedFileArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ConfigurationProtectedFileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.protectedFiles = mapped
    }

    /**
     * @param argument
     */
    @JvmName("xijrsgbxomynpvpw")
    public suspend
    fun protectedFiles(argument: suspend ConfigurationProtectedFileArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConfigurationProtectedFileArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.protectedFiles = mapped
    }

    /**
     * @param values
     */
    @JvmName("uvckpbhtiupfayyv")
    public suspend fun protectedFiles(vararg values: ConfigurationProtectedFileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protectedFiles = mapped
    }

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

    internal fun build(): ConfigurationArgs = ConfigurationArgs(
        configFiles = configFiles,
        nginxDeploymentId = nginxDeploymentId,
        packageData = packageData,
        protectedFiles = protectedFiles,
        rootFile = rootFile,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy