
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy