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

com.pulumi.azure.workloadssap.kotlin.inputs.ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgs.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.ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property databaseType The database type for the Database Server. Possible values are `DB2` and `HANA`. Changing this forces a new resource to be created.
 * @property diskVolumeConfigurations One or more `disk_volume_configuration` blocks as defined below. Changing this forces a new resource to be created.
 * @property instanceCount The number of instances for the Database 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 Database 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 ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgs(
    public val databaseType: Output? = null,
    public val diskVolumeConfigurations:
    Output>? =
        null,
    public val instanceCount: Output,
    public val subnetId: Output,
    public val virtualMachineConfiguration:
    Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgs =
        com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgs.builder()
            .databaseType(databaseType?.applyValue({ args0 -> args0 }))
            .diskVolumeConfigurations(
                diskVolumeConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .instanceCount(instanceCount.applyValue({ args0 -> args0 }))
            .subnetId(subnetId.applyValue({ args0 -> args0 }))
            .virtualMachineConfiguration(
                virtualMachineConfiguration.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgs].
 */
@PulumiTagMarker
public class ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationArgsBuilder
internal constructor() {
    private var databaseType: Output? = null

    private var diskVolumeConfigurations:
        Output>? =
        null

    private var instanceCount: Output? = null

    private var subnetId: Output? = null

    private var virtualMachineConfiguration:
        Output? =
        null

    /**
     * @param value The database type for the Database Server. Possible values are `DB2` and `HANA`. Changing this forces a new resource to be created.
     */
    @JvmName("kxywfakobkoqmutx")
    public suspend fun databaseType(`value`: Output) {
        this.databaseType = value
    }

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

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

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

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

    /**
     * @param value The resource ID of the Subnet for the Database Server. Changing this forces a new resource to be created.
     */
    @JvmName("lmamwojanhexxnfb")
    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("pxxsimsjfbytxhjj")
    public suspend
    fun virtualMachineConfiguration(`value`: Output) {
        this.virtualMachineConfiguration = value
    }

    /**
     * @param value The database type for the Database Server. Possible values are `DB2` and `HANA`. Changing this forces a new resource to be created.
     */
    @JvmName("efjqbxlagwhejmit")
    public suspend fun databaseType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseType = mapped
    }

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

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

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

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

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

    /**
     * @param value The number of instances for the Database Server. Possible values are at least `1`. Changing this forces a new resource to be created.
     */
    @JvmName("ygdrsompctjoouqu")
    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 Database Server. Changing this forces a new resource to be created.
     */
    @JvmName("rqvvquiywoyaqewc")
    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("jyacilyhyelquvba")
    public suspend
    fun virtualMachineConfiguration(`value`: ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationVirtualMachineConfigurationArgs) {
        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("uvcwgfmkttcpnnmy")
    public suspend
    fun virtualMachineConfiguration(argument: suspend ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationVirtualMachineConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ThreeTierVirtualInstanceThreeTierConfigurationDatabaseServerConfigurationVirtualMachineConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.virtualMachineConfiguration = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy