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

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

/**
 *
 * @property allowInsecure Defaults to false. When false, files are
 * subject to validations based on the file type: Remote: A checksum must be
 * specified. Cloud Storage: An object generation number must be specified.
 * @property gcs A Cloud Storage object. Structure is
 * documented below.
 * @property localPath A local path within the VM to use.
 * @property remote A generic remote file. Structure is
 * documented below.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgs(
    public val allowInsecure: Output? = null,
    public val gcs: Output? =
        null,
    public val localPath: Output? = null,
    public val remote: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgs.builder()
            .allowInsecure(allowInsecure?.applyValue({ args0 -> args0 }))
            .gcs(gcs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .localPath(localPath?.applyValue({ args0 -> args0 }))
            .remote(remote?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgsBuilder internal constructor() {
    private var allowInsecure: Output? = null

    private var gcs: Output? =
        null

    private var localPath: Output? = null

    private var remote:
        Output? = null

    /**
     * @param value Defaults to false. When false, files are
     * subject to validations based on the file type: Remote: A checksum must be
     * specified. Cloud Storage: An object generation number must be specified.
     */
    @JvmName("fbinjhefhoohmvhy")
    public suspend fun allowInsecure(`value`: Output) {
        this.allowInsecure = value
    }

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

    /**
     * @param value A local path within the VM to use.
     */
    @JvmName("dtqyvbrkragtyjfx")
    public suspend fun localPath(`value`: Output) {
        this.localPath = value
    }

    /**
     * @param value A generic remote file. Structure is
     * documented below.
     */
    @JvmName("bnxviwbjqtlmnict")
    public suspend fun remote(`value`: Output) {
        this.remote = value
    }

    /**
     * @param value Defaults to false. When false, files are
     * subject to validations based on the file type: Remote: A checksum must be
     * specified. Cloud Storage: An object generation number must be specified.
     */
    @JvmName("vwilrldianxopqqv")
    public suspend fun allowInsecure(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowInsecure = mapped
    }

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

    /**
     * @param argument A Cloud Storage object. Structure is
     * documented below.
     */
    @JvmName("vglfikspyqhxcglf")
    public suspend fun gcs(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileGcsArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileGcsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.gcs = mapped
    }

    /**
     * @param value A local path within the VM to use.
     */
    @JvmName("bxgcugfpblkhvhww")
    public suspend fun localPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localPath = mapped
    }

    /**
     * @param value A generic remote file. Structure is
     * documented below.
     */
    @JvmName("pahoepvkvtxonjjn")
    public suspend fun remote(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileRemoteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remote = mapped
    }

    /**
     * @param argument A generic remote file. Structure is
     * documented below.
     */
    @JvmName("evudmgnggvmuiaxo")
    public suspend fun remote(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileRemoteArgsBuilder.() -> Unit) {
        val toBeMapped =
            OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileRemoteArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.remote = mapped
    }

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFileArgs(
            allowInsecure = allowInsecure,
            gcs = gcs,
            localPath = localPath,
            remote = remote,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy