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

com.pulumi.azure.workloadssap.kotlin.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs.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.workloadssap.kotlin.inputs

import com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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 availabilitySetName The full name for the availability set. Changing this forces a new resource to be created.
 * @property loadBalancer A `load_balancer` block as defined below. Changing this forces a new resource to be created.
 * @property virtualMachines One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
 */
public data class ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs(
    public val availabilitySetName: Output? = null,
    public val loadBalancer:
    Output? =
        null,
    public val virtualMachines:
    Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs =
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs.builder()
            .availabilitySetName(availabilitySetName?.applyValue({ args0 -> args0 }))
            .loadBalancer(loadBalancer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .virtualMachines(
                virtualMachines?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs].
 */
@PulumiTagMarker
public class ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgsBuilder
internal constructor() {
    private var availabilitySetName: Output? = null

    private var loadBalancer:
        Output? =
        null

    private var virtualMachines:
        Output>? =
        null

    /**
     * @param value The full name for the availability set. Changing this forces a new resource to be created.
     */
    @JvmName("kkkgyrfhfhpiuttf")
    public suspend fun availabilitySetName(`value`: Output) {
        this.availabilitySetName = value
    }

    /**
     * @param value A `load_balancer` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("jhifjfnrrdvlgvit")
    public suspend
    fun loadBalancer(`value`: Output) {
        this.loadBalancer = value
    }

    /**
     * @param value One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("klttiapqahfmvdmu")
    public suspend
    fun virtualMachines(`value`: Output>) {
        this.virtualMachines = value
    }

    @JvmName("fhmtcdlgvcshqvtn")
    public suspend fun virtualMachines(
        vararg
        values: Output,
    ) {
        this.virtualMachines = Output.all(values.asList())
    }

    /**
     * @param values One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("ncwrsemcqftbedfs")
    public suspend
    fun virtualMachines(values: List>) {
        this.virtualMachines = Output.all(values)
    }

    /**
     * @param value The full name for the availability set. Changing this forces a new resource to be created.
     */
    @JvmName("wqwpvakcldpdgrif")
    public suspend fun availabilitySetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilitySetName = mapped
    }

    /**
     * @param value A `load_balancer` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("mhtirytegvklvawk")
    public suspend
    fun loadBalancer(`value`: ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerLoadBalancerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancer = mapped
    }

    /**
     * @param argument A `load_balancer` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("ktwnauokqufhuuyb")
    public suspend
    fun loadBalancer(argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerLoadBalancerArgsBuilder.() -> Unit) {
        val toBeMapped =
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerLoadBalancerArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.loadBalancer = mapped
    }

    /**
     * @param value One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("klqhctidatsecvlu")
    public suspend
    fun virtualMachines(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualMachines = mapped
    }

    /**
     * @param argument One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("vaeraynyfdrixqjl")
    public suspend
    fun virtualMachines(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerVirtualMachineArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualMachines = mapped
    }

    /**
     * @param argument One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("dbkgdcdiluqeptex")
    public suspend fun virtualMachines(
        vararg
        argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerVirtualMachineArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerVirtualMachineArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualMachines = mapped
    }

    /**
     * @param argument One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("gxddthunyxgbiqju")
    public suspend
    fun virtualMachines(argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerVirtualMachineArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerVirtualMachineArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.virtualMachines = mapped
    }

    /**
     * @param values One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("qvptaurfdyxyoqbn")
    public suspend fun virtualMachines(
        vararg
        values: ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerVirtualMachineArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualMachines = mapped
    }

    internal fun build(): ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs =
        ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesCentralServerArgs(
            availabilitySetName = availabilitySetName,
            loadBalancer = loadBalancer,
            virtualMachines = virtualMachines,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy