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

com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.inputs.DigestArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.containeranalysis.v1beta1.inputs.DigestArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Digest information.
 * @property algo `SHA1`, `SHA512` etc.
 * @property digestBytes Value of the digest.
 */
public data class DigestArgs(
    public val algo: Output? = null,
    public val digestBytes: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.containeranalysis.v1beta1.inputs.DigestArgs =
        com.pulumi.googlenative.containeranalysis.v1beta1.inputs.DigestArgs.builder()
            .algo(algo?.applyValue({ args0 -> args0 }))
            .digestBytes(digestBytes?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DigestArgs].
 */
@PulumiTagMarker
public class DigestArgsBuilder internal constructor() {
    private var algo: Output? = null

    private var digestBytes: Output? = null

    /**
     * @param value `SHA1`, `SHA512` etc.
     */
    @JvmName("khsssllnykajxxkp")
    public suspend fun algo(`value`: Output) {
        this.algo = value
    }

    /**
     * @param value Value of the digest.
     */
    @JvmName("nyoiqtleingnujhh")
    public suspend fun digestBytes(`value`: Output) {
        this.digestBytes = value
    }

    /**
     * @param value `SHA1`, `SHA512` etc.
     */
    @JvmName("yukdaiidhkyvsfks")
    public suspend fun algo(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.algo = mapped
    }

    /**
     * @param value Value of the digest.
     */
    @JvmName("vrmvcirhmqegmyoo")
    public suspend fun digestBytes(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.digestBytes = mapped
    }

    internal fun build(): DigestArgs = DigestArgs(
        algo = algo,
        digestBytes = digestBytes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy