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

com.pulumi.gcp.compute.kotlin.inputs.NodeGroupShareSettingsArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.NodeGroupShareSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property projectMaps A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
 * Structure is documented below.
 * @property shareType Node group sharing type.
 * Possible values are: `ORGANIZATION`, `SPECIFIC_PROJECTS`, `LOCAL`.
 */
public data class NodeGroupShareSettingsArgs(
    public val projectMaps: Output>? = null,
    public val shareType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.NodeGroupShareSettingsArgs =
        com.pulumi.gcp.compute.inputs.NodeGroupShareSettingsArgs.builder()
            .projectMaps(
                projectMaps?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .shareType(shareType.applyValue({ args0 -> args0 })).build()
}

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

    private var shareType: Output? = null

    /**
     * @param value A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("xatbakwqfxguqqcr")
    public suspend fun projectMaps(`value`: Output>) {
        this.projectMaps = value
    }

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

    /**
     * @param values A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("cquljnhuplqxhkel")
    public suspend fun projectMaps(values: List>) {
        this.projectMaps = Output.all(values)
    }

    /**
     * @param value Node group sharing type.
     * Possible values are: `ORGANIZATION`, `SPECIFIC_PROJECTS`, `LOCAL`.
     */
    @JvmName("xrtiomqsxeqrwlhp")
    public suspend fun shareType(`value`: Output) {
        this.shareType = value
    }

    /**
     * @param value A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("ijwmmrogewoffmiq")
    public suspend fun projectMaps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectMaps = mapped
    }

    /**
     * @param argument A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("spkiwijbuapeecje")
    public suspend fun projectMaps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NodeGroupShareSettingsProjectMapArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.projectMaps = mapped
    }

    /**
     * @param argument A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("dxswtdbwoxbsojpw")
    public suspend fun projectMaps(vararg argument: suspend NodeGroupShareSettingsProjectMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NodeGroupShareSettingsProjectMapArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.projectMaps = mapped
    }

    /**
     * @param argument A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("qvjfbiinnjhdqclo")
    public suspend fun projectMaps(argument: suspend NodeGroupShareSettingsProjectMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NodeGroupShareSettingsProjectMapArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.projectMaps = mapped
    }

    /**
     * @param values A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
     * Structure is documented below.
     */
    @JvmName("xyocukwmpkyuckpy")
    public suspend fun projectMaps(vararg values: NodeGroupShareSettingsProjectMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.projectMaps = mapped
    }

    /**
     * @param value Node group sharing type.
     * Possible values are: `ORGANIZATION`, `SPECIFIC_PROJECTS`, `LOCAL`.
     */
    @JvmName("ngqicgjtxdrjsfjb")
    public suspend fun shareType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.shareType = mapped
    }

    internal fun build(): NodeGroupShareSettingsArgs = NodeGroupShareSettingsArgs(
        projectMaps = projectMaps,
        shareType = shareType ?: throw PulumiNullFieldException("shareType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy