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

com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.inputs.GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.containeranalysis.v1alpha1.inputs.GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.
 * @property digest Collection of cryptographic digests for the contents of this artifact.
 * @property uri The method by which this artifact was referenced during the build.
 */
public data class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs(
    public val digest: Output>? = null,
    public val uri: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.containeranalysis.v1alpha1.inputs.GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs =
        com.pulumi.googlenative.containeranalysis.v1alpha1.inputs.GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs.builder()
            .digest(digest?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .uri(uri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs].
 */
@PulumiTagMarker
public class GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgsBuilder
internal constructor() {
    private var digest: Output>? = null

    private var uri: Output? = null

    /**
     * @param value Collection of cryptographic digests for the contents of this artifact.
     */
    @JvmName("cbcswpattgnwktka")
    public suspend fun digest(`value`: Output>) {
        this.digest = value
    }

    /**
     * @param value The method by which this artifact was referenced during the build.
     */
    @JvmName("alccoqkxbqixhhsv")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Collection of cryptographic digests for the contents of this artifact.
     */
    @JvmName("fauwpubieyyvoeky")
    public suspend fun digest(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.digest = mapped
    }

    /**
     * @param values Collection of cryptographic digests for the contents of this artifact.
     */
    @JvmName("dabsowhskbgtwrox")
    public fun digest(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.digest = mapped
    }

    /**
     * @param value The method by which this artifact was referenced during the build.
     */
    @JvmName("nocsfudumuycphyn")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs = GoogleDevtoolsContaineranalysisV1alpha1SlsaProvenanceZeroTwoSlsaMaterialArgs(
        digest = digest,
        uri = uri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy