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

com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs.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.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedSuccessCodes Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
 * @property gcsObject A Cloud Storage object containing the executable.
 * Structure is documented below.
 * @property interpreter The script interpreter to use to run the script. If no interpreter is specified the script will
 * be executed directly, which will likely only succeed for scripts with shebang lines.
 * Possible values are: `SHELL`, `POWERSHELL`.
 * @property localPath An absolute path to the executable on the VM.
 */
public data class PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs(
    public val allowedSuccessCodes: Output>? = null,
    public val gcsObject: Output? =
        null,
    public val interpreter: Output? = null,
    public val localPath: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs =
        com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs.builder()
            .allowedSuccessCodes(allowedSuccessCodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .gcsObject(gcsObject?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .interpreter(interpreter?.applyValue({ args0 -> args0 }))
            .localPath(localPath?.applyValue({ args0 -> args0 })).build()
}

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

    private var gcsObject: Output? =
        null

    private var interpreter: Output? = null

    private var localPath: Output? = null

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

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

    /**
     * @param values Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
     */
    @JvmName("unpptwtmrlcaknee")
    public suspend fun allowedSuccessCodes(values: List>) {
        this.allowedSuccessCodes = Output.all(values)
    }

    /**
     * @param value A Cloud Storage object containing the executable.
     * Structure is documented below.
     */
    @JvmName("methlkyjkidgjbmt")
    public suspend fun gcsObject(`value`: Output) {
        this.gcsObject = value
    }

    /**
     * @param value The script interpreter to use to run the script. If no interpreter is specified the script will
     * be executed directly, which will likely only succeed for scripts with shebang lines.
     * Possible values are: `SHELL`, `POWERSHELL`.
     */
    @JvmName("cfpvlnirwjifofha")
    public suspend fun interpreter(`value`: Output) {
        this.interpreter = value
    }

    /**
     * @param value An absolute path to the executable on the VM.
     */
    @JvmName("fvossuorotdwjoab")
    public suspend fun localPath(`value`: Output) {
        this.localPath = value
    }

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

    /**
     * @param values Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
     */
    @JvmName("uwjdmotwlaqorbju")
    public suspend fun allowedSuccessCodes(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedSuccessCodes = mapped
    }

    /**
     * @param value A Cloud Storage object containing the executable.
     * Structure is documented below.
     */
    @JvmName("xmjpytadvsnyxyao")
    public suspend fun gcsObject(`value`: PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gcsObject = mapped
    }

    /**
     * @param argument A Cloud Storage object containing the executable.
     * Structure is documented below.
     */
    @JvmName("mldjjgrcqrsyjbgf")
    public suspend fun gcsObject(argument: suspend PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgsBuilder.() -> Unit) {
        val toBeMapped =
            PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.gcsObject = mapped
    }

    /**
     * @param value The script interpreter to use to run the script. If no interpreter is specified the script will
     * be executed directly, which will likely only succeed for scripts with shebang lines.
     * Possible values are: `SHELL`, `POWERSHELL`.
     */
    @JvmName("snoypuhcyndojwey")
    public suspend fun interpreter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interpreter = mapped
    }

    /**
     * @param value An absolute path to the executable on the VM.
     */
    @JvmName("roiryvondoxrmygu")
    public suspend fun localPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localPath = mapped
    }

    internal fun build(): PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs =
        PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs(
            allowedSuccessCodes = allowedSuccessCodes,
            gcsObject = gcsObject,
            interpreter = interpreter,
            localPath = localPath,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy