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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesRecipeInstallStepFileExecArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.osconfig.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepFileExecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedExitCodes A list of possible return values that the program can return to indicate a success. Defaults to [0].
 * @property args Arguments to be passed to the provided executable.
 * @property artifactId The id of the relevant artifact in the recipe.
 * @property localPath The absolute path of the file on the local filesystem.
 */
public data class GuestPoliciesRecipeInstallStepFileExecArgs(
    public val allowedExitCodes: Output? = null,
    public val args: Output>? = null,
    public val artifactId: Output? = null,
    public val localPath: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepFileExecArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepFileExecArgs.builder()
            .allowedExitCodes(allowedExitCodes?.applyValue({ args0 -> args0 }))
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .artifactId(artifactId?.applyValue({ args0 -> args0 }))
            .localPath(localPath?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GuestPoliciesRecipeInstallStepFileExecArgs].
 */
@PulumiTagMarker
public class GuestPoliciesRecipeInstallStepFileExecArgsBuilder internal constructor() {
    private var allowedExitCodes: Output? = null

    private var args: Output>? = null

    private var artifactId: Output? = null

    private var localPath: Output? = null

    /**
     * @param value A list of possible return values that the program can return to indicate a success. Defaults to [0].
     */
    @JvmName("rfsmjtriemayfcmh")
    public suspend fun allowedExitCodes(`value`: Output) {
        this.allowedExitCodes = value
    }

    /**
     * @param value Arguments to be passed to the provided executable.
     */
    @JvmName("jksmaoircvjtajhf")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values Arguments to be passed to the provided executable.
     */
    @JvmName("rjdkjkvrkodfoelb")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value The id of the relevant artifact in the recipe.
     */
    @JvmName("gxudtpoyfnrpyoov")
    public suspend fun artifactId(`value`: Output) {
        this.artifactId = value
    }

    /**
     * @param value The absolute path of the file on the local filesystem.
     */
    @JvmName("oddbkkootnvnwpoi")
    public suspend fun localPath(`value`: Output) {
        this.localPath = value
    }

    /**
     * @param value A list of possible return values that the program can return to indicate a success. Defaults to [0].
     */
    @JvmName("kbrwoifjwmojgrir")
    public suspend fun allowedExitCodes(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedExitCodes = mapped
    }

    /**
     * @param value Arguments to be passed to the provided executable.
     */
    @JvmName("hinroigeqkygmild")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values Arguments to be passed to the provided executable.
     */
    @JvmName("wjwdgjbjmvawiddb")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value The id of the relevant artifact in the recipe.
     */
    @JvmName("wkfkxfhwqkvwlild")
    public suspend fun artifactId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.artifactId = mapped
    }

    /**
     * @param value The absolute path of the file on the local filesystem.
     */
    @JvmName("twcpoyikfpgcnvfp")
    public suspend fun localPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localPath = mapped
    }

    internal fun build(): GuestPoliciesRecipeInstallStepFileExecArgs =
        GuestPoliciesRecipeInstallStepFileExecArgs(
            allowedExitCodes = allowedExitCodes,
            args = args,
            artifactId = artifactId,
            localPath = localPath,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy