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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesRecipeArtifactArgs.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.GuestPoliciesRecipeArtifactArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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, recipes are subject to validations based on the artifact type:
 * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
 * GCS: An object generation number must be specified.
 * @property gcs A Google Cloud Storage artifact.
 * Structure is documented below.
 * @property id Id of the artifact, which the installation and update steps of this recipe can reference.
 * Artifacts in a recipe cannot have the same id.
 * @property remote A generic remote artifact.
 * Structure is documented below.
 */
public data class GuestPoliciesRecipeArtifactArgs(
    public val allowInsecure: Output? = null,
    public val gcs: Output? = null,
    public val id: Output,
    public val remote: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeArtifactArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeArtifactArgs.builder()
            .allowInsecure(allowInsecure?.applyValue({ args0 -> args0 }))
            .gcs(gcs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .id(id.applyValue({ args0 -> args0 }))
            .remote(remote?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var gcs: Output? = null

    private var id: Output? = null

    private var remote: Output? = null

    /**
     * @param value Defaults to false. When false, recipes are subject to validations based on the artifact type:
     * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
     * GCS: An object generation number must be specified.
     */
    @JvmName("yqopinnoksrncyoq")
    public suspend fun allowInsecure(`value`: Output) {
        this.allowInsecure = value
    }

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

    /**
     * @param value Id of the artifact, which the installation and update steps of this recipe can reference.
     * Artifacts in a recipe cannot have the same id.
     */
    @JvmName("pdcaboijblklkgia")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

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

    /**
     * @param value Defaults to false. When false, recipes are subject to validations based on the artifact type:
     * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
     * GCS: An object generation number must be specified.
     */
    @JvmName("bdtuiwslitqolcuq")
    public suspend fun allowInsecure(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowInsecure = mapped
    }

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

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

    /**
     * @param value Id of the artifact, which the installation and update steps of this recipe can reference.
     * Artifacts in a recipe cannot have the same id.
     */
    @JvmName("ssoufkicvskecqxy")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

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

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

    internal fun build(): GuestPoliciesRecipeArtifactArgs = GuestPoliciesRecipeArtifactArgs(
        allowInsecure = allowInsecure,
        gcs = gcs,
        id = id ?: throw PulumiNullFieldException("id"),
        remote = remote,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy