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

com.pulumi.azure.workloadssap.kotlin.inputs.SingleNodeVirtualInstanceSingleServerConfigurationArgs.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.SingleNodeVirtualInstanceSingleServerConfigurationArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property appResourceGroupName
 * @property databaseType The supported SAP database type. 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 secondaryIpEnabled Specifies whether a secondary IP address should be added to the network interface on all VMs of the SAP system being deployed. Defaults to `false`. Changing this forces a new resource to be created.
 * @property subnetId The resource ID of the Subnet for the SAP Single Node Virtual Instance. 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.
 * @property virtualMachineResourceNames A `virtual_machine_resource_names` block as defined below. Changing this forces a new resource to be created.
 */
public data class SingleNodeVirtualInstanceSingleServerConfigurationArgs(
    public val appResourceGroupName: Output,
    public val databaseType: Output? = null,
    public val diskVolumeConfigurations: Output>? =
        null,
    public val secondaryIpEnabled: Output? = null,
    public val subnetId: Output,
    public val virtualMachineConfiguration: Output,
    public val virtualMachineResourceNames: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.workloadssap.inputs.SingleNodeVirtualInstanceSingleServerConfigurationArgs =
        com.pulumi.azure.workloadssap.inputs.SingleNodeVirtualInstanceSingleServerConfigurationArgs.builder()
            .appResourceGroupName(appResourceGroupName.applyValue({ args0 -> args0 }))
            .databaseType(databaseType?.applyValue({ args0 -> args0 }))
            .diskVolumeConfigurations(
                diskVolumeConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .secondaryIpEnabled(secondaryIpEnabled?.applyValue({ args0 -> args0 }))
            .subnetId(subnetId.applyValue({ args0 -> args0 }))
            .virtualMachineConfiguration(
                virtualMachineConfiguration.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .virtualMachineResourceNames(
                virtualMachineResourceNames?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SingleNodeVirtualInstanceSingleServerConfigurationArgs].
 */
@PulumiTagMarker
public class SingleNodeVirtualInstanceSingleServerConfigurationArgsBuilder internal constructor() {
    private var appResourceGroupName: Output? = null

    private var databaseType: Output? = null

    private var diskVolumeConfigurations:
        Output>? =
        null

    private var secondaryIpEnabled: Output? = null

    private var subnetId: Output? = null

    private var virtualMachineConfiguration:
        Output? =
        null

    private var virtualMachineResourceNames:
        Output? =
        null

    /**
     * @param value
     */
    @JvmName("bxpbglpabpshwhoo")
    public suspend fun appResourceGroupName(`value`: Output) {
        this.appResourceGroupName = value
    }

    /**
     * @param value The supported SAP database type. Possible values are `DB2` and `HANA`. Changing this forces a new resource to be created.
     */
    @JvmName("nmlbjcdaesncwsic")
    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("yuohefuhbsyxjpbp")
    public suspend fun diskVolumeConfigurations(`value`: Output>) {
        this.diskVolumeConfigurations = value
    }

    @JvmName("mqcugjootblnfpye")
    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("ckofuldllenwtsfd")
    public suspend fun diskVolumeConfigurations(values: List>) {
        this.diskVolumeConfigurations = Output.all(values)
    }

    /**
     * @param value Specifies whether a secondary IP address should be added to the network interface on all VMs of the SAP system being deployed. Defaults to `false`. Changing this forces a new resource to be created.
     */
    @JvmName("tyuuaxmamccshlsv")
    public suspend fun secondaryIpEnabled(`value`: Output) {
        this.secondaryIpEnabled = value
    }

    /**
     * @param value The resource ID of the Subnet for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
     */
    @JvmName("qgsupvlvhnqtmfea")
    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("nfypapkphpxwrohn")
    public suspend fun virtualMachineConfiguration(`value`: Output) {
        this.virtualMachineConfiguration = value
    }

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

    /**
     * @param value
     */
    @JvmName("wmdnxfnjtlgblavl")
    public suspend fun appResourceGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appResourceGroupName = mapped
    }

    /**
     * @param value The supported SAP database type. Possible values are `DB2` and `HANA`. Changing this forces a new resource to be created.
     */
    @JvmName("ucqcvuspskitipmr")
    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("lcbckraxxyghecmg")
    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("xskqvkiwhvrpauqv")
    public suspend fun diskVolumeConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationArgsBuilder().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("jiqqwgqqkvkmhuyr")
    public suspend fun diskVolumeConfigurations(vararg argument: suspend SingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationArgsBuilder().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("sibefeclrxnibfbs")
    public suspend fun diskVolumeConfigurations(argument: suspend SingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                SingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationArgsBuilder().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("wuqxjrovsutygbgg")
    public suspend fun diskVolumeConfigurations(vararg values: SingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diskVolumeConfigurations = mapped
    }

    /**
     * @param value Specifies whether a secondary IP address should be added to the network interface on all VMs of the SAP system being deployed. Defaults to `false`. Changing this forces a new resource to be created.
     */
    @JvmName("rlxxifnphjeewyax")
    public suspend fun secondaryIpEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secondaryIpEnabled = mapped
    }

    /**
     * @param value The resource ID of the Subnet for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
     */
    @JvmName("vfvhcffgcutimxmx")
    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("owhipiovfkokiemt")
    public suspend fun virtualMachineConfiguration(`value`: SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationArgs) {
        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("sjrljyuaoufpnsfd")
    public suspend fun virtualMachineConfiguration(argument: suspend SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.virtualMachineConfiguration = mapped
    }

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

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

    internal fun build(): SingleNodeVirtualInstanceSingleServerConfigurationArgs =
        SingleNodeVirtualInstanceSingleServerConfigurationArgs(
            appResourceGroupName = appResourceGroupName ?: throw
                PulumiNullFieldException("appResourceGroupName"),
            databaseType = databaseType,
            diskVolumeConfigurations = diskVolumeConfigurations,
            secondaryIpEnabled = secondaryIpEnabled,
            subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
            virtualMachineConfiguration = virtualMachineConfiguration ?: throw
                PulumiNullFieldException("virtualMachineConfiguration"),
            virtualMachineResourceNames = virtualMachineResourceNames,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy