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

com.pulumi.azurenative.security.kotlin.inputs.AdditionalWorkspacesPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.security.kotlin.inputs

import com.pulumi.azurenative.security.inputs.AdditionalWorkspacesPropertiesArgs.builder
import com.pulumi.azurenative.security.kotlin.enums.AdditionalWorkspaceDataType
import com.pulumi.azurenative.security.kotlin.enums.AdditionalWorkspaceType
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

/**
 * Properties of the additional workspaces.
 * @property dataTypes List of data types sent to workspace
 * @property type Workspace type.
 * @property workspace Workspace resource id
 */
public data class AdditionalWorkspacesPropertiesArgs(
    public val dataTypes: Output>>? = null,
    public val type: Output>? = null,
    public val workspace: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.inputs.AdditionalWorkspacesPropertiesArgs =
        com.pulumi.azurenative.security.inputs.AdditionalWorkspacesPropertiesArgs.builder()
            .dataTypes(
                dataTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform(
                            { args0 -> args0 },
                            { args0 -> args0.let({ args0 -> args0.toJava() }) },
                        )
                    })
                }),
            )
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .workspace(workspace?.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output>? = null

    private var workspace: Output? = null

    /**
     * @param value List of data types sent to workspace
     */
    @JvmName("qnjlxcfrfjfrdnht")
    public suspend fun dataTypes(`value`: Output>>) {
        this.dataTypes = value
    }

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

    /**
     * @param values List of data types sent to workspace
     */
    @JvmName("cwdbewdpmymgxytl")
    public suspend fun dataTypes(values: List>>) {
        this.dataTypes = Output.all(values)
    }

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

    /**
     * @param value Workspace resource id
     */
    @JvmName("xvltchefcsjtyund")
    public suspend fun workspace(`value`: Output) {
        this.workspace = value
    }

    /**
     * @param value List of data types sent to workspace
     */
    @JvmName("ircqapuaveljtbdg")
    public suspend fun dataTypes(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataTypes = mapped
    }

    /**
     * @param values List of data types sent to workspace
     */
    @JvmName("vyqonjwoeoqrwbyp")
    public suspend fun dataTypes(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataTypes = mapped
    }

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

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

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

    /**
     * @param value Workspace resource id
     */
    @JvmName("upjreavevtlaapij")
    public suspend fun workspace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspace = mapped
    }

    internal fun build(): AdditionalWorkspacesPropertiesArgs = AdditionalWorkspacesPropertiesArgs(
        dataTypes = dataTypes,
        type = type,
        workspace = workspace,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy