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

com.pulumi.azurenative.apicenter.kotlin.inputs.MetadataAssignmentArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.apicenter.kotlin.inputs

import com.pulumi.azurenative.apicenter.inputs.MetadataAssignmentArgs.builder
import com.pulumi.azurenative.apicenter.kotlin.enums.MetadataAssignmentEntity
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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Assignment metadata
 * @property deprecated Deprecated assignment
 * @property entity The entities this metadata schema component gets applied to.
 * @property required Required assignment
 */
public data class MetadataAssignmentArgs(
    public val deprecated: Output? = null,
    public val entity: Output>? = null,
    public val required: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.apicenter.inputs.MetadataAssignmentArgs =
        com.pulumi.azurenative.apicenter.inputs.MetadataAssignmentArgs.builder()
            .deprecated(deprecated?.applyValue({ args0 -> args0 }))
            .entity(
                entity?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .required(required?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MetadataAssignmentArgs].
 */
@PulumiTagMarker
public class MetadataAssignmentArgsBuilder internal constructor() {
    private var deprecated: Output? = null

    private var entity: Output>? = null

    private var required: Output? = null

    /**
     * @param value Deprecated assignment
     */
    @JvmName("iampjpaufytffgjv")
    public suspend fun deprecated(`value`: Output) {
        this.deprecated = value
    }

    /**
     * @param value The entities this metadata schema component gets applied to.
     */
    @JvmName("esywrobadohseyih")
    public suspend fun entity(`value`: Output>) {
        this.entity = value
    }

    /**
     * @param value Required assignment
     */
    @JvmName("ftgndixmreidetbf")
    public suspend fun required(`value`: Output) {
        this.required = value
    }

    /**
     * @param value Deprecated assignment
     */
    @JvmName("emcxntssjrgolyps")
    public suspend fun deprecated(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deprecated = mapped
    }

    /**
     * @param value The entities this metadata schema component gets applied to.
     */
    @JvmName("yotsoiderciyrbqs")
    public suspend fun entity(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entity = mapped
    }

    /**
     * @param value The entities this metadata schema component gets applied to.
     */
    @JvmName("lckobgglnwdulbho")
    public fun entity(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.entity = mapped
    }

    /**
     * @param value The entities this metadata schema component gets applied to.
     */
    @JvmName("wihrgxgdchatotyv")
    public fun entity(`value`: MetadataAssignmentEntity) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.entity = mapped
    }

    /**
     * @param value Required assignment
     */
    @JvmName("wfhoejnjntiytyur")
    public suspend fun required(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.required = mapped
    }

    internal fun build(): MetadataAssignmentArgs = MetadataAssignmentArgs(
        deprecated = deprecated,
        entity = entity,
        required = required,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy