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

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

package com.pulumi.gcp.vmwareengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterArgs.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 clusterId The user-provided identifier of the new Cluster. The identifier must meet the following requirements:
 * * Only contains 1-63 alphanumeric characters and hyphens
 * * Begins with an alphabetical character
 * * Ends with a non-hyphen character
 * * Not formatted as a UUID
 * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
 * @property nodeTypeConfigs The map of cluster node types in this cluster,
 * where the key is canonical identifier of the node type (corresponds to the NodeType).
 * Structure is documented below.
 * @property stretchedClusterConfig The stretched cluster configuration for the private cloud.
 * Structure is documented below.
 */
public data class PrivateCloudManagementClusterArgs(
    public val clusterId: Output,
    public val nodeTypeConfigs: Output>? = null,
    public val stretchedClusterConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterArgs =
        com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterArgs.builder()
            .clusterId(clusterId.applyValue({ args0 -> args0 }))
            .nodeTypeConfigs(
                nodeTypeConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .stretchedClusterConfig(
                stretchedClusterConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PrivateCloudManagementClusterArgs].
 */
@PulumiTagMarker
public class PrivateCloudManagementClusterArgsBuilder internal constructor() {
    private var clusterId: Output? = null

    private var nodeTypeConfigs: Output>? = null

    private var stretchedClusterConfig:
        Output? = null

    /**
     * @param value The user-provided identifier of the new Cluster. The identifier must meet the following requirements:
     * * Only contains 1-63 alphanumeric characters and hyphens
     * * Begins with an alphabetical character
     * * Ends with a non-hyphen character
     * * Not formatted as a UUID
     * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
     */
    @JvmName("glolxtaknqnqfpny")
    public suspend fun clusterId(`value`: Output) {
        this.clusterId = value
    }

    /**
     * @param value The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("nohcptctcmgcgcej")
    public suspend fun nodeTypeConfigs(`value`: Output>) {
        this.nodeTypeConfigs = value
    }

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

    /**
     * @param values The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("brmvjseonyekkdpg")
    public suspend fun nodeTypeConfigs(values: List>) {
        this.nodeTypeConfigs = Output.all(values)
    }

    /**
     * @param value The stretched cluster configuration for the private cloud.
     * Structure is documented below.
     */
    @JvmName("lrytvklmnpvjrful")
    public suspend fun stretchedClusterConfig(`value`: Output) {
        this.stretchedClusterConfig = value
    }

    /**
     * @param value The user-provided identifier of the new Cluster. The identifier must meet the following requirements:
     * * Only contains 1-63 alphanumeric characters and hyphens
     * * Begins with an alphabetical character
     * * Ends with a non-hyphen character
     * * Not formatted as a UUID
     * * Complies with RFC 1034 (https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
     */
    @JvmName("myakpbqfhdijwnrp")
    public suspend fun clusterId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusterId = mapped
    }

    /**
     * @param value The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("wlgkrgouapkdlejt")
    public suspend fun nodeTypeConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeTypeConfigs = mapped
    }

    /**
     * @param argument The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("othwyjhdretogygc")
    public suspend fun nodeTypeConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PrivateCloudManagementClusterNodeTypeConfigArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeTypeConfigs = mapped
    }

    /**
     * @param argument The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("lstmlymmfdqgqyey")
    public suspend fun nodeTypeConfigs(vararg argument: suspend PrivateCloudManagementClusterNodeTypeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PrivateCloudManagementClusterNodeTypeConfigArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeTypeConfigs = mapped
    }

    /**
     * @param argument The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("gsakueitqpjurais")
    public suspend fun nodeTypeConfigs(argument: suspend PrivateCloudManagementClusterNodeTypeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PrivateCloudManagementClusterNodeTypeConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.nodeTypeConfigs = mapped
    }

    /**
     * @param values The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     */
    @JvmName("aoypwkgkdqrdnuav")
    public suspend fun nodeTypeConfigs(vararg values: PrivateCloudManagementClusterNodeTypeConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeTypeConfigs = mapped
    }

    /**
     * @param value The stretched cluster configuration for the private cloud.
     * Structure is documented below.
     */
    @JvmName("kwprdgyuxubqyodg")
    public suspend fun stretchedClusterConfig(`value`: PrivateCloudManagementClusterStretchedClusterConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stretchedClusterConfig = mapped
    }

    /**
     * @param argument The stretched cluster configuration for the private cloud.
     * Structure is documented below.
     */
    @JvmName("nxinaqsrlkwovgsn")
    public suspend fun stretchedClusterConfig(argument: suspend PrivateCloudManagementClusterStretchedClusterConfigArgsBuilder.() -> Unit) {
        val toBeMapped = PrivateCloudManagementClusterStretchedClusterConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.stretchedClusterConfig = mapped
    }

    internal fun build(): PrivateCloudManagementClusterArgs = PrivateCloudManagementClusterArgs(
        clusterId = clusterId ?: throw PulumiNullFieldException("clusterId"),
        nodeTypeConfigs = nodeTypeConfigs,
        stretchedClusterConfig = stretchedClusterConfig,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy