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

com.pulumi.azure.workloadssap.kotlin.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs.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.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs.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 virtualMachines One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
 */
public data class ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs(
    public val availabilitySetName: Output? = null,
    public val virtualMachines: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs =
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs.builder()
            .availabilitySetName(availabilitySetName?.applyValue({ args0 -> args0 }))
            .virtualMachines(
                virtualMachines?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs].
 */
@PulumiTagMarker
public class ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgsBuilder
internal constructor() {
    private var availabilitySetName: 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("teptkuwhsghjvvex")
    public suspend fun availabilitySetName(`value`: Output) {
        this.availabilitySetName = value
    }

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

    @JvmName("denhggijiaodpcnw")
    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("xlxhxuhdxfpujush")
    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("lrmbxfcdomtnhhoi")
    public suspend fun availabilitySetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilitySetName = mapped
    }

    /**
     * @param value One or more `virtual_machine` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("ywddsemoflmeeepj")
    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("ylkuwtpfatovkmuh")
    public suspend fun virtualMachines(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerVirtualMachineArgsBuilder().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("qqprgspbgdyuhqbe")
    public suspend fun virtualMachines(vararg argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerVirtualMachineArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerVirtualMachineArgsBuilder().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("uokhhhsubwqkbfek")
    public suspend fun virtualMachines(argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerVirtualMachineArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerVirtualMachineArgsBuilder().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("krmtwbgbqljapvif")
    public suspend fun virtualMachines(vararg values: ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerVirtualMachineArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualMachines = mapped
    }

    internal fun build(): ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs =
        ThreeTierVirtualInstanceThreeTierConfigurationResourceNamesApplicationServerArgs(
            availabilitySetName = availabilitySetName,
            virtualMachines = virtualMachines,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy