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

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

/**
 *
 * @property artifactId The id of the relevant artifact in the recipe.
 * @property destination The absolute path on the instance to put the file.
 * @property overwrite Whether to allow this step to overwrite existing files.If this is false and the file already exists the file
 * is not overwritten and the step is considered a success. Defaults to false.
 * @property permissions Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users
 * for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit
 * number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one
 * bit corresponds to the execute permission. Default behavior is 755.
 * Below are some examples of permissions and their associated values:
 * read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
 */
public data class GuestPoliciesRecipeInstallStepFileCopyArgs(
    public val artifactId: Output,
    public val destination: Output,
    public val overwrite: Output? = null,
    public val permissions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepFileCopyArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeInstallStepFileCopyArgs.builder()
            .artifactId(artifactId.applyValue({ args0 -> args0 }))
            .destination(destination.applyValue({ args0 -> args0 }))
            .overwrite(overwrite?.applyValue({ args0 -> args0 }))
            .permissions(permissions?.applyValue({ args0 -> args0 })).build()
}

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

    private var destination: Output? = null

    private var overwrite: Output? = null

    private var permissions: Output? = null

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

    /**
     * @param value The absolute path on the instance to put the file.
     */
    @JvmName("bkhdgrjjfxvpogsi")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value Whether to allow this step to overwrite existing files.If this is false and the file already exists the file
     * is not overwritten and the step is considered a success. Defaults to false.
     */
    @JvmName("uvkekowesixrlqmu")
    public suspend fun overwrite(`value`: Output) {
        this.overwrite = value
    }

    /**
     * @param value Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users
     * for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit
     * number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one
     * bit corresponds to the execute permission. Default behavior is 755.
     * Below are some examples of permissions and their associated values:
     * read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
     */
    @JvmName("eybsgfmejrrwvlbu")
    public suspend fun permissions(`value`: Output) {
        this.permissions = value
    }

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

    /**
     * @param value The absolute path on the instance to put the file.
     */
    @JvmName("yehlkytxkxmiagib")
    public suspend fun destination(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param value Whether to allow this step to overwrite existing files.If this is false and the file already exists the file
     * is not overwritten and the step is considered a success. Defaults to false.
     */
    @JvmName("rjcptcmidunnhict")
    public suspend fun overwrite(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overwrite = mapped
    }

    /**
     * @param value Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users
     * for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit
     * number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one
     * bit corresponds to the execute permission. Default behavior is 755.
     * Below are some examples of permissions and their associated values:
     * read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
     */
    @JvmName("bhkoirllmjctstay")
    public suspend fun permissions(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    internal fun build(): GuestPoliciesRecipeInstallStepFileCopyArgs =
        GuestPoliciesRecipeInstallStepFileCopyArgs(
            artifactId = artifactId ?: throw PulumiNullFieldException("artifactId"),
            destination = destination ?: throw PulumiNullFieldException("destination"),
            overwrite = overwrite,
            permissions = permissions,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy