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

com.pulumi.azure.workloadssap.kotlin.inputs.SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.workloadssap.inputs.SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs.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 dataDisks (Optional) One or more `data_disk` blocks as defined below. Changing this forces a new resource to be created.
 * @property hostName The full name of the host of the Virtual Machine. Changing this forces a new resource to be created.
 * @property networkInterfaceNames A list of full names for the Network Interface of the Virtual Machine. Changing this forces a new resource to be created.
 * @property osDiskName The full name of the OS Disk attached to the Virtual Machine. Changing this forces a new resource to be created.
 * @property virtualMachineName The full name of the Virtual Machine in a single server SAP system. Changing this forces a new resource to be created.
 */
public data class SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs(
    public val dataDisks: Output>? =
        null,
    public val hostName: Output? = null,
    public val networkInterfaceNames: Output>? = null,
    public val osDiskName: Output? = null,
    public val virtualMachineName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.workloadssap.inputs.SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs =
        com.pulumi.azure.workloadssap.inputs.SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs.builder()
            .dataDisks(
                dataDisks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .hostName(hostName?.applyValue({ args0 -> args0 }))
            .networkInterfaceNames(networkInterfaceNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .osDiskName(osDiskName?.applyValue({ args0 -> args0 }))
            .virtualMachineName(virtualMachineName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs].
 */
@PulumiTagMarker
public class
SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgsBuilder
internal constructor() {
    private var dataDisks:
        Output>? =
        null

    private var hostName: Output? = null

    private var networkInterfaceNames: Output>? = null

    private var osDiskName: Output? = null

    private var virtualMachineName: Output? = null

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

    @JvmName("bncvdjwvxphmwelf")
    public suspend fun dataDisks(vararg values: Output) {
        this.dataDisks = Output.all(values.asList())
    }

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

    /**
     * @param value The full name of the host of the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("ltmkjmaqwkjeisiu")
    public suspend fun hostName(`value`: Output) {
        this.hostName = value
    }

    /**
     * @param value A list of full names for the Network Interface of the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("tmbalogomsmhlxmu")
    public suspend fun networkInterfaceNames(`value`: Output>) {
        this.networkInterfaceNames = value
    }

    @JvmName("obpfvkguylmmheyp")
    public suspend fun networkInterfaceNames(vararg values: Output) {
        this.networkInterfaceNames = Output.all(values.asList())
    }

    /**
     * @param values A list of full names for the Network Interface of the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("oslktwkytkgyqtjk")
    public suspend fun networkInterfaceNames(values: List>) {
        this.networkInterfaceNames = Output.all(values)
    }

    /**
     * @param value The full name of the OS Disk attached to the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("donhjogbpbjfawmb")
    public suspend fun osDiskName(`value`: Output) {
        this.osDiskName = value
    }

    /**
     * @param value The full name of the Virtual Machine in a single server SAP system. Changing this forces a new resource to be created.
     */
    @JvmName("ymvhuskyyaypblwd")
    public suspend fun virtualMachineName(`value`: Output) {
        this.virtualMachineName = value
    }

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

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

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

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

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

    /**
     * @param value The full name of the host of the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("ywfjckyxucgqqdlu")
    public suspend fun hostName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostName = mapped
    }

    /**
     * @param value A list of full names for the Network Interface of the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("vxjvhhhtdfhxrray")
    public suspend fun networkInterfaceNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceNames = mapped
    }

    /**
     * @param values A list of full names for the Network Interface of the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("qlubbddbjxasfmql")
    public suspend fun networkInterfaceNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaceNames = mapped
    }

    /**
     * @param value The full name of the OS Disk attached to the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("cgaofbkynfiumwvy")
    public suspend fun osDiskName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osDiskName = mapped
    }

    /**
     * @param value The full name of the Virtual Machine in a single server SAP system. Changing this forces a new resource to be created.
     */
    @JvmName("dbcxrffnrlwtlcnp")
    public suspend fun virtualMachineName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualMachineName = mapped
    }

    internal fun build(): SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs =
        SingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesArgs(
            dataDisks = dataDisks,
            hostName = hostName,
            networkInterfaceNames = networkInterfaceNames,
            osDiskName = osDiskName,
            virtualMachineName = virtualMachineName,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy