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

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

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

import com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property instanceCount The number of instances for the Central Server. Possible values are at least `1`. Changing this forces a new resource to be created.
 * @property subnetId The resource ID of the Subnet for the Central Server. Changing this forces a new resource to be created.
 * @property virtualMachineConfiguration A `virtual_machine_configuration` block as defined below. Changing this forces a new resource to be created.
 */
public data class ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs(
    public val instanceCount: Output,
    public val subnetId: Output,
    public val virtualMachineConfiguration:
    Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs =
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs.builder()
            .instanceCount(instanceCount.applyValue({ args0 -> args0 }))
            .subnetId(subnetId.applyValue({ args0 -> args0 }))
            .virtualMachineConfiguration(
                virtualMachineConfiguration.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs].
 */
@PulumiTagMarker
public class ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgsBuilder
internal constructor() {
    private var instanceCount: Output? = null

    private var subnetId: Output? = null

    private var virtualMachineConfiguration:
        Output? =
        null

    /**
     * @param value The number of instances for the Central Server. Possible values are at least `1`. Changing this forces a new resource to be created.
     */
    @JvmName("baqqpthqoihfvabv")
    public suspend fun instanceCount(`value`: Output) {
        this.instanceCount = value
    }

    /**
     * @param value The resource ID of the Subnet for the Central Server. Changing this forces a new resource to be created.
     */
    @JvmName("kusarjlowibwlhrr")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

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

    /**
     * @param value The number of instances for the Central Server. Possible values are at least `1`. Changing this forces a new resource to be created.
     */
    @JvmName("emlrfwxnswlpdahy")
    public suspend fun instanceCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceCount = mapped
    }

    /**
     * @param value The resource ID of the Subnet for the Central Server. Changing this forces a new resource to be created.
     */
    @JvmName("apqsgwxteordrxvg")
    public suspend fun subnetId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

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

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

    internal fun build(): ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs =
        ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationArgs(
            instanceCount = instanceCount ?: throw PulumiNullFieldException("instanceCount"),
            subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
            virtualMachineConfiguration = virtualMachineConfiguration ?: throw
                PulumiNullFieldException("virtualMachineConfiguration"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy