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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesRecipeUpdateStepArchiveExtractionArgs.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.12.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.GuestPoliciesRecipeUpdateStepArchiveExtractionArgs.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 GuestPoliciesRecipeUpdateStepArchiveExtractionArgs(
    public val artifactId: Output,
    public val destination: Output? = null,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeUpdateStepArchiveExtractionArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeUpdateStepArchiveExtractionArgs.builder()
            .artifactId(artifactId.applyValue({ args0 -> args0 }))
            .destination(destination?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GuestPoliciesRecipeUpdateStepArchiveExtractionArgs].
 */
@PulumiTagMarker
public class GuestPoliciesRecipeUpdateStepArchiveExtractionArgsBuilder 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("rkdflugvkqvvgigm")
    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("pgvhwriuvwxekodq")
    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("vylxeirpiebysvig")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The id of the relevant artifact in the recipe.
     */
    @JvmName("pfkveeiihulfguct")
    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("ewusjqdxjsniypua")
    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("ybypnxcdvribxhqa")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy