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

com.pulumi.gcp.containeranalysis.kotlin.inputs.OccurenceAttestationArgs.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.containeranalysis.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.containeranalysis.inputs.OccurenceAttestationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property serializedPayload The serialized payload that is verified by one or
 * more signatures. A base64-encoded string.
 * @property signatures One or more signatures over serializedPayload.
 * Verifier implementations should consider this attestation
 * message verified if at least one signature verifies
 * serializedPayload. See Signature in common.proto for more
 * details on signature structure and verification.
 * Structure is documented below.
 */
public data class OccurenceAttestationArgs(
    public val serializedPayload: Output,
    public val signatures: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.containeranalysis.inputs.OccurenceAttestationArgs =
        com.pulumi.gcp.containeranalysis.inputs.OccurenceAttestationArgs.builder()
            .serializedPayload(serializedPayload.applyValue({ args0 -> args0 }))
            .signatures(
                signatures.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [OccurenceAttestationArgs].
 */
@PulumiTagMarker
public class OccurenceAttestationArgsBuilder internal constructor() {
    private var serializedPayload: Output? = null

    private var signatures: Output>? = null

    /**
     * @param value The serialized payload that is verified by one or
     * more signatures. A base64-encoded string.
     */
    @JvmName("qhgpfnquugscngfv")
    public suspend fun serializedPayload(`value`: Output) {
        this.serializedPayload = value
    }

    /**
     * @param value One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("ybkdobwwfldxmsal")
    public suspend fun signatures(`value`: Output>) {
        this.signatures = value
    }

    @JvmName("stlplfsrwsuerkbd")
    public suspend fun signatures(vararg values: Output) {
        this.signatures = Output.all(values.asList())
    }

    /**
     * @param values One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("avxlbscgbekiiogq")
    public suspend fun signatures(values: List>) {
        this.signatures = Output.all(values)
    }

    /**
     * @param value The serialized payload that is verified by one or
     * more signatures. A base64-encoded string.
     */
    @JvmName("vidshfcnbfdbjlin")
    public suspend fun serializedPayload(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serializedPayload = mapped
    }

    /**
     * @param value One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("exdbknntbimqiheg")
    public suspend fun signatures(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.signatures = mapped
    }

    /**
     * @param argument One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("xonakatgbghqqwnx")
    public suspend fun signatures(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OccurenceAttestationSignatureArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.signatures = mapped
    }

    /**
     * @param argument One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("vxspaerblnuiorji")
    public suspend fun signatures(vararg argument: suspend OccurenceAttestationSignatureArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OccurenceAttestationSignatureArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.signatures = mapped
    }

    /**
     * @param argument One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("pukdumreekkkabid")
    public suspend fun signatures(argument: suspend OccurenceAttestationSignatureArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            OccurenceAttestationSignatureArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.signatures = mapped
    }

    /**
     * @param values One or more signatures over serializedPayload.
     * Verifier implementations should consider this attestation
     * message verified if at least one signature verifies
     * serializedPayload. See Signature in common.proto for more
     * details on signature structure and verification.
     * Structure is documented below.
     */
    @JvmName("vvtoslmhpalxhguu")
    public suspend fun signatures(vararg values: OccurenceAttestationSignatureArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.signatures = mapped
    }

    internal fun build(): OccurenceAttestationArgs = OccurenceAttestationArgs(
        serializedPayload = serializedPayload ?: throw PulumiNullFieldException("serializedPayload"),
        signatures = signatures ?: throw PulumiNullFieldException("signatures"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy