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

com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataDependenciesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.securityinsights.kotlin.inputs

import com.pulumi.azurenative.securityinsights.inputs.MetadataDependenciesArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.Kind
import com.pulumi.azurenative.securityinsights.kotlin.enums.Operator
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Dependencies for the content item, what other content items it requires to work.  Can describe more complex dependencies using a recursive/nested structure. For a single dependency an id/kind/version can be supplied or operator/criteria for complex dependencies.
 * @property contentId Id of the content item we depend on
 * @property criteria This is the list of dependencies we must fulfill, according to the AND/OR operator
 * @property kind Type of the content item we depend on
 * @property name Name of the content item
 * @property operator Operator used for list of dependencies in criteria array.
 * @property version Version of the the content item we depend on.  Can be blank, * or missing to indicate any version fulfills the dependency.  If version does not match our defined numeric format then an exact match is required.
 */
public data class MetadataDependenciesArgs(
    public val contentId: Output? = null,
    public val criteria: Output>? = null,
    public val kind: Output>? = null,
    public val name: Output? = null,
    public val `operator`: Output>? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.MetadataDependenciesArgs =
        com.pulumi.azurenative.securityinsights.inputs.MetadataDependenciesArgs.builder()
            .contentId(contentId?.applyValue({ args0 -> args0 }))
            .criteria(
                criteria?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .kind(
                kind?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .`operator`(
                `operator`?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MetadataDependenciesArgs].
 */
@PulumiTagMarker
public class MetadataDependenciesArgsBuilder internal constructor() {
    private var contentId: Output? = null

    private var criteria: Output>? = null

    private var kind: Output>? = null

    private var name: Output? = null

    private var `operator`: Output>? = null

    private var version: Output? = null

    /**
     * @param value Id of the content item we depend on
     */
    @JvmName("aumbhkmdqphbglrn")
    public suspend fun contentId(`value`: Output) {
        this.contentId = value
    }

    /**
     * @param value This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("yixxkhrstabdusiu")
    public suspend fun criteria(`value`: Output>) {
        this.criteria = value
    }

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

    /**
     * @param values This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("igebvjrxjhhoivdm")
    public suspend fun criteria(values: List>) {
        this.criteria = Output.all(values)
    }

    /**
     * @param value Type of the content item we depend on
     */
    @JvmName("stvvgvgfgoacgsre")
    public suspend fun kind(`value`: Output>) {
        this.kind = value
    }

    /**
     * @param value Name of the content item
     */
    @JvmName("hlcnsmprlemxfnre")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Operator used for list of dependencies in criteria array.
     */
    @JvmName("jxxnxayspbsxpvtw")
    public suspend fun `operator`(`value`: Output>) {
        this.`operator` = value
    }

    /**
     * @param value Version of the the content item we depend on.  Can be blank, * or missing to indicate any version fulfills the dependency.  If version does not match our defined numeric format then an exact match is required.
     */
    @JvmName("htbncqrwvcaenutq")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Id of the content item we depend on
     */
    @JvmName("ldoaagwgsdkjeueh")
    public suspend fun contentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentId = mapped
    }

    /**
     * @param value This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("pmspknhycsrfqkfu")
    public suspend fun criteria(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.criteria = mapped
    }

    /**
     * @param argument This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("xpwvvxikgycxbmvk")
    public suspend fun criteria(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MetadataDependenciesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.criteria = mapped
    }

    /**
     * @param argument This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("oincsoelguarmtkl")
    public suspend fun criteria(vararg argument: suspend MetadataDependenciesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MetadataDependenciesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.criteria = mapped
    }

    /**
     * @param argument This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("sfhncfavflyehygt")
    public suspend fun criteria(argument: suspend MetadataDependenciesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MetadataDependenciesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.criteria = mapped
    }

    /**
     * @param values This is the list of dependencies we must fulfill, according to the AND/OR operator
     */
    @JvmName("ynqxfpagdofostut")
    public suspend fun criteria(vararg values: MetadataDependenciesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.criteria = mapped
    }

    /**
     * @param value Type of the content item we depend on
     */
    @JvmName("hqpacnhytigyftqo")
    public suspend fun kind(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Type of the content item we depend on
     */
    @JvmName("qaamrqmvxdswxsay")
    public fun kind(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Type of the content item we depend on
     */
    @JvmName("uwaqcnfntavstdht")
    public fun kind(`value`: Kind) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Name of the content item
     */
    @JvmName("jktinxqxqxtqcsbg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Operator used for list of dependencies in criteria array.
     */
    @JvmName("ufafqkyckjovwuxx")
    public suspend fun `operator`(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Operator used for list of dependencies in criteria array.
     */
    @JvmName("ktvpxxxppxbbilim")
    public fun `operator`(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Operator used for list of dependencies in criteria array.
     */
    @JvmName("nodaxeuskjtgqese")
    public fun `operator`(`value`: Operator) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Version of the the content item we depend on.  Can be blank, * or missing to indicate any version fulfills the dependency.  If version does not match our defined numeric format then an exact match is required.
     */
    @JvmName("nhldfqhtvxphmkqb")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): MetadataDependenciesArgs = MetadataDependenciesArgs(
        contentId = contentId,
        criteria = criteria,
        kind = kind,
        name = name,
        `operator` = `operator`,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy