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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesRecipeInstallStepArchiveExtractionArgs.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.GuestPoliciesRecipeInstallStepArchiveExtractionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property artifactId The id of the relevant artifact in the recipe.
 * @property destination Directory to extract archive to. Defaults to / on Linux or C:\ on Windows.
 * @property type The type of the archive to extract.
 * Possible values are: `TAR`, `TAR_GZIP`, `TAR_BZIP`, `TAR_LZMA`, `TAR_XZ`, `ZIP`.
 */
public data class GuestPoliciesRecipeInstallStepArchiveExtractionArgs(
    public val artifactId: Output,
    public val destination: Output? = null,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepArchiveExtractionArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepArchiveExtractionArgs.builder()
            .artifactId(artifactId.applyValue({ args0 -> args0 }))
            .destination(destination?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GuestPoliciesRecipeInstallStepArchiveExtractionArgs].
 */
@PulumiTagMarker
public class GuestPoliciesRecipeInstallStepArchiveExtractionArgsBuilder internal constructor() {
    private var artifactId: Output? = null

    private var destination: Output? = null

    private var type: Output? = null

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

    /**
     * @param value Directory to extract archive to. Defaults to / on Linux or C:\ on Windows.
     */
    @JvmName("wyobkqijrwqwwepe")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value The type of the archive to extract.
     * Possible values are: `TAR`, `TAR_GZIP`, `TAR_BZIP`, `TAR_LZMA`, `TAR_XZ`, `ZIP`.
     */
    @JvmName("hcopnbllfamgkywa")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value Directory to extract archive to. Defaults to / on Linux or C:\ on Windows.
     */
    @JvmName("uyrqmnhapiovstgg")
    public suspend fun destination(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param value The type of the archive to extract.
     * Possible values are: `TAR`, `TAR_GZIP`, `TAR_BZIP`, `TAR_LZMA`, `TAR_XZ`, `ZIP`.
     */
    @JvmName("rhjqoseaychogugi")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): GuestPoliciesRecipeInstallStepArchiveExtractionArgs =
        GuestPoliciesRecipeInstallStepArchiveExtractionArgs(
            artifactId = artifactId ?: throw PulumiNullFieldException("artifactId"),
            destination = destination,
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy