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

com.pulumi.azurenative.providerhub.kotlin.inputs.ResourceProviderCapabilitiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.providerhub.kotlin.inputs

import com.pulumi.azurenative.providerhub.inputs.ResourceProviderCapabilitiesArgs.builder
import com.pulumi.azurenative.providerhub.kotlin.enums.ResourceProviderCapabilitiesEffect
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property effect
 * @property quotaId
 * @property requiredFeatures
 */
public data class ResourceProviderCapabilitiesArgs(
    public val effect: Output>,
    public val quotaId: Output,
    public val requiredFeatures: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.providerhub.inputs.ResourceProviderCapabilitiesArgs = com.pulumi.azurenative.providerhub.inputs.ResourceProviderCapabilitiesArgs.builder()
        .effect(
            effect.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        )
        .quotaId(quotaId.applyValue({ args0 -> args0 }))
        .requiredFeatures(requiredFeatures?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ResourceProviderCapabilitiesArgs].
 */
@PulumiTagMarker
public class ResourceProviderCapabilitiesArgsBuilder internal constructor() {
    private var effect: Output>? = null

    private var quotaId: Output? = null

    private var requiredFeatures: Output>? = null

    /**
     * @param value
     */
    @JvmName("cwuermuwkrpyrerb")
    public suspend fun effect(`value`: Output>) {
        this.effect = value
    }

    /**
     * @param value
     */
    @JvmName("cfvoapnggxnwxcfn")
    public suspend fun quotaId(`value`: Output) {
        this.quotaId = value
    }

    /**
     * @param value
     */
    @JvmName("hgtbqaniyscageqs")
    public suspend fun requiredFeatures(`value`: Output>) {
        this.requiredFeatures = value
    }

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

    /**
     * @param values
     */
    @JvmName("hynpbstnxiwpgffh")
    public suspend fun requiredFeatures(values: List>) {
        this.requiredFeatures = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("voojafhqyqcedjef")
    public suspend fun effect(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.effect = mapped
    }

    /**
     * @param value
     */
    @JvmName("nltvtclivvqlfirn")
    public fun effect(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.effect = mapped
    }

    /**
     * @param value
     */
    @JvmName("owobyngeilsrwoys")
    public fun effect(`value`: ResourceProviderCapabilitiesEffect) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.effect = mapped
    }

    /**
     * @param value
     */
    @JvmName("bhyeoglsshgiipii")
    public suspend fun quotaId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.quotaId = mapped
    }

    /**
     * @param value
     */
    @JvmName("lfsrtdfytgdkxtrx")
    public suspend fun requiredFeatures(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requiredFeatures = mapped
    }

    /**
     * @param values
     */
    @JvmName("kxhrrwaphgrlufss")
    public suspend fun requiredFeatures(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requiredFeatures = mapped
    }

    internal fun build(): ResourceProviderCapabilitiesArgs = ResourceProviderCapabilitiesArgs(
        effect = effect ?: throw PulumiNullFieldException("effect"),
        quotaId = quotaId ?: throw PulumiNullFieldException("quotaId"),
        requiredFeatures = requiredFeatures,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy