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

com.pulumi.azurenative.providerhub.kotlin.inputs.SubscriptionStateRuleArgs.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.providerhub.kotlin.inputs

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

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

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

    private var state: Output>? = null

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

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

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

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

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

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

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

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

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

    internal fun build(): SubscriptionStateRuleArgs = SubscriptionStateRuleArgs(
        allowedActions = allowedActions,
        state = state,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy