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

com.pulumi.azurenative.features.kotlin.inputs.SubscriptionFeatureRegistrationPropertiesArgs.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.features.kotlin.inputs

import com.pulumi.azurenative.features.inputs.SubscriptionFeatureRegistrationPropertiesArgs.builder
import com.pulumi.azurenative.features.kotlin.enums.SubscriptionFeatureRegistrationState
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property description The feature description.
 * @property metadata Key-value pairs for meta data.
 * @property shouldFeatureDisplayInPortal Indicates whether feature should be displayed in Portal.
 * @property state The state.
 */
public data class SubscriptionFeatureRegistrationPropertiesArgs(
    public val description: Output? = null,
    public val metadata: Output>? = null,
    public val shouldFeatureDisplayInPortal: Output? = null,
    public val state: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.features.inputs.SubscriptionFeatureRegistrationPropertiesArgs =
        com.pulumi.azurenative.features.inputs.SubscriptionFeatureRegistrationPropertiesArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .metadata(
                metadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .shouldFeatureDisplayInPortal(shouldFeatureDisplayInPortal?.applyValue({ args0 -> args0 }))
            .state(
                state?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SubscriptionFeatureRegistrationPropertiesArgs].
 */
@PulumiTagMarker
public class SubscriptionFeatureRegistrationPropertiesArgsBuilder internal constructor() {
    private var description: Output? = null

    private var metadata: Output>? = null

    private var shouldFeatureDisplayInPortal: Output? = null

    private var state: Output>? = null

    /**
     * @param value The feature description.
     */
    @JvmName("lbspppbsbtmxibxh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Key-value pairs for meta data.
     */
    @JvmName("ghhejlyedvprijyb")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    /**
     * @param value Indicates whether feature should be displayed in Portal.
     */
    @JvmName("hpshdjfwjpxelgyd")
    public suspend fun shouldFeatureDisplayInPortal(`value`: Output) {
        this.shouldFeatureDisplayInPortal = value
    }

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

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

    /**
     * @param value Key-value pairs for meta data.
     */
    @JvmName("ktkropfupsygbhuy")
    public suspend fun metadata(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param values Key-value pairs for meta data.
     */
    @JvmName("exabnwoqqyivjrbw")
    public fun metadata(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value Indicates whether feature should be displayed in Portal.
     */
    @JvmName("kosgwxoqxihwieqp")
    public suspend fun shouldFeatureDisplayInPortal(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shouldFeatureDisplayInPortal = mapped
    }

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

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

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

    internal fun build(): SubscriptionFeatureRegistrationPropertiesArgs =
        SubscriptionFeatureRegistrationPropertiesArgs(
            description = description,
            metadata = metadata,
            shouldFeatureDisplayInPortal = shouldFeatureDisplayInPortal,
            state = state,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy