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

com.pulumi.azurenative.avs.kotlin.inputs.ManagementClusterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.avs.kotlin.inputs

import com.pulumi.azurenative.avs.inputs.ManagementClusterArgs.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

/**
 * The properties of a management cluster
 * @property clusterSize The cluster size
 * @property hosts The hosts
 */
public data class ManagementClusterArgs(
    public val clusterSize: Output,
    public val hosts: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.avs.inputs.ManagementClusterArgs =
        com.pulumi.azurenative.avs.inputs.ManagementClusterArgs.builder()
            .clusterSize(clusterSize.applyValue({ args0 -> args0 }))
            .hosts(hosts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ManagementClusterArgs].
 */
@PulumiTagMarker
public class ManagementClusterArgsBuilder internal constructor() {
    private var clusterSize: Output? = null

    private var hosts: Output>? = null

    /**
     * @param value The cluster size
     */
    @JvmName("cyjlxiiptkcmjbxf")
    public suspend fun clusterSize(`value`: Output) {
        this.clusterSize = value
    }

    /**
     * @param value The hosts
     */
    @JvmName("hvkldrujflhxjavx")
    public suspend fun hosts(`value`: Output>) {
        this.hosts = value
    }

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

    /**
     * @param values The hosts
     */
    @JvmName("douyqjcpwccfrubm")
    public suspend fun hosts(values: List>) {
        this.hosts = Output.all(values)
    }

    /**
     * @param value The cluster size
     */
    @JvmName("anjllrdqoiptcchp")
    public suspend fun clusterSize(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusterSize = mapped
    }

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

    /**
     * @param values The hosts
     */
    @JvmName("ksirgyscldyysquj")
    public suspend fun hosts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hosts = mapped
    }

    internal fun build(): ManagementClusterArgs = ManagementClusterArgs(
        clusterSize = clusterSize ?: throw PulumiNullFieldException("clusterSize"),
        hosts = hosts,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy