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

com.pulumi.azurenative.testbase.kotlin.inputs.TabStateArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.testbase.kotlin.inputs

import com.pulumi.azurenative.testbase.inputs.TabStateArgs.builder
import com.pulumi.azurenative.testbase.kotlin.enums.PackageStudioTabs
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

/**
 * Specifies current state of tabs.
 * @property currentTab Current tab.
 * @property visitedTabs visited tabs.
 */
public data class TabStateArgs(
    public val currentTab: Output>? = null,
    public val visitedTabs: Output>>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.testbase.inputs.TabStateArgs =
        com.pulumi.azurenative.testbase.inputs.TabStateArgs.builder()
            .currentTab(
                currentTab?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .visitedTabs(
                visitedTabs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform({ args0 ->
                            args0
                        }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                    })
                }),
            ).build()
}

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

    private var visitedTabs: Output>>? = null

    /**
     * @param value Current tab.
     */
    @JvmName("yvcsiygqvbnskqam")
    public suspend fun currentTab(`value`: Output>) {
        this.currentTab = value
    }

    /**
     * @param value visited tabs.
     */
    @JvmName("vvbecelggrkvlqfd")
    public suspend fun visitedTabs(`value`: Output>>) {
        this.visitedTabs = value
    }

    @JvmName("nyddetwseirggrvx")
    public suspend fun visitedTabs(vararg values: Output>) {
        this.visitedTabs = Output.all(values.asList())
    }

    /**
     * @param values visited tabs.
     */
    @JvmName("lgrynenuvmnegtka")
    public suspend fun visitedTabs(values: List>>) {
        this.visitedTabs = Output.all(values)
    }

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

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

    /**
     * @param value Current tab.
     */
    @JvmName("ofpgvatsdodnspul")
    public fun currentTab(`value`: PackageStudioTabs) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.currentTab = mapped
    }

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

    /**
     * @param values visited tabs.
     */
    @JvmName("jcjoepgowkjaihfu")
    public suspend fun visitedTabs(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.visitedTabs = mapped
    }

    internal fun build(): TabStateArgs = TabStateArgs(
        currentTab = currentTab,
        visitedTabs = visitedTabs,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy