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

com.pulumi.azure.workloadssap.kotlin.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.workloadssap.kotlin.inputs

import com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgs.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 ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgs(
    public val availabilitySetName: Output? = null,
    public val loadBalancer: Output? =
        null,
    public val virtualMachines: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgs =
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgs.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 [ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgs].
 */
@PulumiTagMarker
public class ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerArgsBuilder
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("faqsvpyxxlggodpm")
    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("sxhtcgkgaasefafb")
    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("jekkcdekranxjtyq")
    public suspend fun virtualMachines(`value`: Output>) {
        this.virtualMachines = value
    }

    @JvmName("ncqhnlghpxfvpfcf")
    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("hgsqvyfswxcvwhsu")
    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("pyadjsoxvbyryrwl")
    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("csuinesxoilhclna")
    public suspend fun loadBalancer(`value`: ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerLoadBalancerArgs?) {
        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("vcttkaisqkkwbpqu")
    public suspend fun loadBalancer(argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerLoadBalancerArgsBuilder.() -> Unit) {
        val toBeMapped =
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerLoadBalancerArgsBuilder().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("uwqyebjjvfqhleis")
    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("chhxfalcddrmhyqm")
    public suspend fun virtualMachines(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerVirtualMachineArgsBuilder().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("wiptdrlwnwmuhrkw")
    public suspend fun virtualMachines(vararg argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerVirtualMachineArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerVirtualMachineArgsBuilder().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("hjrtrnfljxihvmij")
    public suspend fun virtualMachines(argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerVirtualMachineArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerVirtualMachineArgsBuilder().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("sggwubuhveacjyyf")
    public suspend fun virtualMachines(vararg values: ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesDatabaseServerVirtualMachineArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualMachines = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy