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

com.pulumi.googlenative.containeranalysis.v1beta1.kotlin.inputs.SbomReferenceIntotoPayloadArgs.kt Maven / Gradle / Ivy

@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.SbomReferenceIntotoPayloadArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.
 * @property predicate Additional parameters of the Predicate. Includes the actual data about the SBOM.
 * @property predicateType URI identifying the type of the Predicate.
 * @property subject Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
 * @property type Identifier for the schema of the Statement.
 */
public data class SbomReferenceIntotoPayloadArgs(
    public val predicate: Output? = null,
    public val predicateType: Output? = null,
    public val subject: Output>? = null,
    public val type: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.containeranalysis.v1beta1.inputs.SbomReferenceIntotoPayloadArgs =
        com.pulumi.googlenative.containeranalysis.v1beta1.inputs.SbomReferenceIntotoPayloadArgs.builder()
            .predicate(predicate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .predicateType(predicateType?.applyValue({ args0 -> args0 }))
            .subject(
                subject?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SbomReferenceIntotoPayloadArgs].
 */
@PulumiTagMarker
public class SbomReferenceIntotoPayloadArgsBuilder internal constructor() {
    private var predicate: Output? = null

    private var predicateType: Output? = null

    private var subject: Output>? = null

    private var type: Output? = null

    /**
     * @param value Additional parameters of the Predicate. Includes the actual data about the SBOM.
     */
    @JvmName("oybnsyvoxbymjuip")
    public suspend fun predicate(`value`: Output) {
        this.predicate = value
    }

    /**
     * @param value URI identifying the type of the Predicate.
     */
    @JvmName("uwaerjrojpqfronn")
    public suspend fun predicateType(`value`: Output) {
        this.predicateType = value
    }

    /**
     * @param value Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("dnbcprkqtpetxhii")
    public suspend fun subject(`value`: Output>) {
        this.subject = value
    }

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

    /**
     * @param values Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("mmfhbiwtrjuxytqx")
    public suspend fun subject(values: List>) {
        this.subject = Output.all(values)
    }

    /**
     * @param value Identifier for the schema of the Statement.
     */
    @JvmName("qgulqomrfxnrracj")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Additional parameters of the Predicate. Includes the actual data about the SBOM.
     */
    @JvmName("ppvgndxkudtdeceg")
    public suspend fun predicate(`value`: SbomReferenceIntotoPredicateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.predicate = mapped
    }

    /**
     * @param argument Additional parameters of the Predicate. Includes the actual data about the SBOM.
     */
    @JvmName("puqmsfybmlckqsth")
    public suspend fun predicate(argument: suspend SbomReferenceIntotoPredicateArgsBuilder.() -> Unit) {
        val toBeMapped = SbomReferenceIntotoPredicateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.predicate = mapped
    }

    /**
     * @param value URI identifying the type of the Predicate.
     */
    @JvmName("nbumcogixjyemjnn")
    public suspend fun predicateType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.predicateType = mapped
    }

    /**
     * @param value Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("peccbgvxgtjhkhkt")
    public suspend fun subject(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param argument Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("mqathbcymhjbvqcf")
    public suspend fun subject(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubjectArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.subject = mapped
    }

    /**
     * @param argument Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("oeoxttyxvqowpwve")
    public suspend fun subject(vararg argument: suspend SubjectArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubjectArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.subject = mapped
    }

    /**
     * @param argument Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("ntjjmaqbgelviriw")
    public suspend fun subject(argument: suspend SubjectArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubjectArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.subject = mapped
    }

    /**
     * @param values Set of software artifacts that the attestation applies to. Each element represents a single software artifact.
     */
    @JvmName("qtkabuebikrvbliv")
    public suspend fun subject(vararg values: SubjectArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param value Identifier for the schema of the Statement.
     */
    @JvmName("ficualxffvpgfeen")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): SbomReferenceIntotoPayloadArgs = SbomReferenceIntotoPayloadArgs(
        predicate = predicate,
        predicateType = predicateType,
        subject = subject,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy