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

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

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

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

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

/**
 * Model representing a pre-build step.
 * @property description Description of the pre-build step.
 * @property httpGet Http get request to send before the build.
 * @property scripts List of custom commands to run.
 */
public data class PreBuildStepArgs(
    public val description: Output? = null,
    public val httpGet: Output? = null,
    public val scripts: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.PreBuildStepArgs =
        com.pulumi.azurenative.app.inputs.PreBuildStepArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .httpGet(httpGet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scripts(scripts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PreBuildStepArgs].
 */
@PulumiTagMarker
public class PreBuildStepArgsBuilder internal constructor() {
    private var description: Output? = null

    private var httpGet: Output? = null

    private var scripts: Output>? = null

    /**
     * @param value Description of the pre-build step.
     */
    @JvmName("scpshvokcrlgghfq")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Http get request to send before the build.
     */
    @JvmName("gghaqujvjfdynmyi")
    public suspend fun httpGet(`value`: Output) {
        this.httpGet = value
    }

    /**
     * @param value List of custom commands to run.
     */
    @JvmName("tgxxjvtswhnvymae")
    public suspend fun scripts(`value`: Output>) {
        this.scripts = value
    }

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

    /**
     * @param values List of custom commands to run.
     */
    @JvmName("bntnmkrjjokrvbse")
    public suspend fun scripts(values: List>) {
        this.scripts = Output.all(values)
    }

    /**
     * @param value Description of the pre-build step.
     */
    @JvmName("lgnhprifaxkedunv")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Http get request to send before the build.
     */
    @JvmName("jmmeayhweihcuctq")
    public suspend fun httpGet(`value`: HttpGetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpGet = mapped
    }

    /**
     * @param argument Http get request to send before the build.
     */
    @JvmName("pijqinysocklwlwb")
    public suspend fun httpGet(argument: suspend HttpGetArgsBuilder.() -> Unit) {
        val toBeMapped = HttpGetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.httpGet = mapped
    }

    /**
     * @param value List of custom commands to run.
     */
    @JvmName("knfabvtgxkafemac")
    public suspend fun scripts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scripts = mapped
    }

    /**
     * @param values List of custom commands to run.
     */
    @JvmName("ojqioqdjrmfmwecr")
    public suspend fun scripts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scripts = mapped
    }

    internal fun build(): PreBuildStepArgs = PreBuildStepArgs(
        description = description,
        httpGet = httpGet,
        scripts = scripts,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy