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

com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs.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.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs.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 sha256Checksum SHA256 checksum of the remote file.
 * @property uri URI from which to fetch the object. It should contain
 * both the protocol and path following the format `{protocol}://{location}`.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs(
    public val sha256Checksum: Output? = null,
    public val uri: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs.builder()
            .sha256Checksum(sha256Checksum?.applyValue({ args0 -> args0 }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgsBuilder internal constructor() {
    private var sha256Checksum: Output? = null

    private var uri: Output? = null

    /**
     * @param value SHA256 checksum of the remote file.
     */
    @JvmName("vdotbujfruglvhkq")
    public suspend fun sha256Checksum(`value`: Output) {
        this.sha256Checksum = value
    }

    /**
     * @param value URI from which to fetch the object. It should contain
     * both the protocol and path following the format `{protocol}://{location}`.
     */
    @JvmName("ixkcxgwqjkmvirow")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value SHA256 checksum of the remote file.
     */
    @JvmName("tytrgxraiosvxgtf")
    public suspend fun sha256Checksum(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sha256Checksum = mapped
    }

    /**
     * @param value URI from which to fetch the object. It should contain
     * both the protocol and path following the format `{protocol}://{location}`.
     */
    @JvmName("bdhabygtxyhfbsbw")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceRemoteArgs(
            sha256Checksum = sha256Checksum,
            uri = uri ?: throw PulumiNullFieldException("uri"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy