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

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

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

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

import com.pulumi.azurenative.app.inputs.BuildConfigurationArgs.builder
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

/**
 * Configuration of the build.
 * @property baseOs Base OS used to build and run the app.
 * @property environmentVariables List of environment variables to be passed to the build.
 * @property platform Platform to be used to build and run the app.
 * @property platformVersion Platform version to be used to build and run the app.
 * @property preBuildSteps List of steps to perform before the build.
 */
public data class BuildConfigurationArgs(
    public val baseOs: Output? = null,
    public val environmentVariables: Output>? = null,
    public val platform: Output? = null,
    public val platformVersion: Output? = null,
    public val preBuildSteps: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.BuildConfigurationArgs =
        com.pulumi.azurenative.app.inputs.BuildConfigurationArgs.builder()
            .baseOs(baseOs?.applyValue({ args0 -> args0 }))
            .environmentVariables(
                environmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .platform(platform?.applyValue({ args0 -> args0 }))
            .platformVersion(platformVersion?.applyValue({ args0 -> args0 }))
            .preBuildSteps(
                preBuildSteps?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BuildConfigurationArgs].
 */
@PulumiTagMarker
public class BuildConfigurationArgsBuilder internal constructor() {
    private var baseOs: Output? = null

    private var environmentVariables: Output>? = null

    private var platform: Output? = null

    private var platformVersion: Output? = null

    private var preBuildSteps: Output>? = null

    /**
     * @param value Base OS used to build and run the app.
     */
    @JvmName("ptvfokjqebyqxyej")
    public suspend fun baseOs(`value`: Output) {
        this.baseOs = value
    }

    /**
     * @param value List of environment variables to be passed to the build.
     */
    @JvmName("fakisefinhnalfln")
    public suspend fun environmentVariables(`value`: Output>) {
        this.environmentVariables = value
    }

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

    /**
     * @param values List of environment variables to be passed to the build.
     */
    @JvmName("tpeeovyuxoxpuedl")
    public suspend fun environmentVariables(values: List>) {
        this.environmentVariables = Output.all(values)
    }

    /**
     * @param value Platform to be used to build and run the app.
     */
    @JvmName("mmbxnxceuqppqhgj")
    public suspend fun platform(`value`: Output) {
        this.platform = value
    }

    /**
     * @param value Platform version to be used to build and run the app.
     */
    @JvmName("svwacevwhsxdbpre")
    public suspend fun platformVersion(`value`: Output) {
        this.platformVersion = value
    }

    /**
     * @param value List of steps to perform before the build.
     */
    @JvmName("iaqgemomjdlylctr")
    public suspend fun preBuildSteps(`value`: Output>) {
        this.preBuildSteps = value
    }

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

    /**
     * @param values List of steps to perform before the build.
     */
    @JvmName("dpauvasktkayvcdh")
    public suspend fun preBuildSteps(values: List>) {
        this.preBuildSteps = Output.all(values)
    }

    /**
     * @param value Base OS used to build and run the app.
     */
    @JvmName("cqmniifyuolwwuqw")
    public suspend fun baseOs(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baseOs = mapped
    }

    /**
     * @param value List of environment variables to be passed to the build.
     */
    @JvmName("skoysbbyacoaabvx")
    public suspend fun environmentVariables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param argument List of environment variables to be passed to the build.
     */
    @JvmName("iqhtodwhfvnlqdok")
    public suspend fun environmentVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.environmentVariables = mapped
    }

    /**
     * @param argument List of environment variables to be passed to the build.
     */
    @JvmName("vnswroxelogdiqgb")
    public suspend fun environmentVariables(vararg argument: suspend EnvironmentVariableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.environmentVariables = mapped
    }

    /**
     * @param argument List of environment variables to be passed to the build.
     */
    @JvmName("brftywfwxmvevkmp")
    public suspend fun environmentVariables(argument: suspend EnvironmentVariableArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EnvironmentVariableArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.environmentVariables = mapped
    }

    /**
     * @param values List of environment variables to be passed to the build.
     */
    @JvmName("ewvsnsjlwbvqenjs")
    public suspend fun environmentVariables(vararg values: EnvironmentVariableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param value Platform to be used to build and run the app.
     */
    @JvmName("neqatmoquccovlmp")
    public suspend fun platform(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platform = mapped
    }

    /**
     * @param value Platform version to be used to build and run the app.
     */
    @JvmName("excdlvejsoqcwnyp")
    public suspend fun platformVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platformVersion = mapped
    }

    /**
     * @param value List of steps to perform before the build.
     */
    @JvmName("fgwamtupydgymnjv")
    public suspend fun preBuildSteps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preBuildSteps = mapped
    }

    /**
     * @param argument List of steps to perform before the build.
     */
    @JvmName("iugukrlymbuaqrbl")
    public suspend fun preBuildSteps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreBuildStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.preBuildSteps = mapped
    }

    /**
     * @param argument List of steps to perform before the build.
     */
    @JvmName("bkeabburwushtkqg")
    public suspend fun preBuildSteps(vararg argument: suspend PreBuildStepArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreBuildStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.preBuildSteps = mapped
    }

    /**
     * @param argument List of steps to perform before the build.
     */
    @JvmName("fpwfmogbrpjijmvo")
    public suspend fun preBuildSteps(argument: suspend PreBuildStepArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PreBuildStepArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.preBuildSteps = mapped
    }

    /**
     * @param values List of steps to perform before the build.
     */
    @JvmName("liotfponvwvcpibg")
    public suspend fun preBuildSteps(vararg values: PreBuildStepArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preBuildSteps = mapped
    }

    internal fun build(): BuildConfigurationArgs = BuildConfigurationArgs(
        baseOs = baseOs,
        environmentVariables = environmentVariables,
        platform = platform,
        platformVersion = platformVersion,
        preBuildSteps = preBuildSteps,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy