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

com.pulumi.azure.avs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.avs.kotlin.inputs

import com.pulumi.azure.avs.inputs.PrivateCloudManagementClusterArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property hosts A list of hosts in the management cluster.
 * @property id The ID of the management cluster.
 * @property size The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
 */
public data class PrivateCloudManagementClusterArgs(
    public val hosts: Output>? = null,
    public val id: Output? = null,
    public val size: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.avs.inputs.PrivateCloudManagementClusterArgs =
        com.pulumi.azure.avs.inputs.PrivateCloudManagementClusterArgs.builder()
            .hosts(hosts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .id(id?.applyValue({ args0 -> args0 }))
            .size(size.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    private var size: Output? = null

    /**
     * @param value A list of hosts in the management cluster.
     */
    @JvmName("swrwncjuslbhsros")
    public suspend fun hosts(`value`: Output>) {
        this.hosts = value
    }

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

    /**
     * @param values A list of hosts in the management cluster.
     */
    @JvmName("qinsolsdmoxgvouh")
    public suspend fun hosts(values: List>) {
        this.hosts = Output.all(values)
    }

    /**
     * @param value The ID of the management cluster.
     */
    @JvmName("gdaykpocwtitcdlf")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
     */
    @JvmName("tbfbtkdvxfhwxvpy")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value A list of hosts in the management cluster.
     */
    @JvmName("qbsldxhcmepvgenv")
    public suspend fun hosts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hosts = mapped
    }

    /**
     * @param values A list of hosts in the management cluster.
     */
    @JvmName("ddyfqurtawwxgabw")
    public suspend fun hosts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hosts = mapped
    }

    /**
     * @param value The ID of the management cluster.
     */
    @JvmName("gmqfpuvolcbfoosv")
    public suspend fun id(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
     */
    @JvmName("xfbedvypqpgemtep")
    public suspend fun size(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.size = mapped
    }

    internal fun build(): PrivateCloudManagementClusterArgs = PrivateCloudManagementClusterArgs(
        hosts = hosts,
        id = id,
        size = size ?: throw PulumiNullFieldException("size"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy