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

com.pulumi.azurenative.migrate.kotlin.inputs.HypervVirtualizationManagementSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.HypervVirtualizationManagementSettingsArgs.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.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * HyperV Virtualization Management Settings.
 * @property licenseAndSupportList Licence and support list.
 * @property numberOfPhysicalCoresPerLicense Number of physical cores per licence.
 * @property softwareAssuranceCost Software Assurance Cost.
 */
public data class HypervVirtualizationManagementSettingsArgs(
    public val licenseAndSupportList: Output>,
    public val numberOfPhysicalCoresPerLicense: Output,
    public val softwareAssuranceCost: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.HypervVirtualizationManagementSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.HypervVirtualizationManagementSettingsArgs.builder()
            .licenseAndSupportList(
                licenseAndSupportList.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .numberOfPhysicalCoresPerLicense(numberOfPhysicalCoresPerLicense.applyValue({ args0 -> args0 }))
            .softwareAssuranceCost(softwareAssuranceCost.applyValue({ args0 -> args0 })).build()
}

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

    private var numberOfPhysicalCoresPerLicense: Output? = null

    private var softwareAssuranceCost: Output? = null

    /**
     * @param value Licence and support list.
     */
    @JvmName("aeyidldxmjuujihs")
    public suspend fun licenseAndSupportList(`value`: Output>) {
        this.licenseAndSupportList = value
    }

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

    /**
     * @param values Licence and support list.
     */
    @JvmName("wirncgdaxievrrke")
    public suspend fun licenseAndSupportList(values: List>) {
        this.licenseAndSupportList = Output.all(values)
    }

    /**
     * @param value Number of physical cores per licence.
     */
    @JvmName("nmjyrnxurctqyskg")
    public suspend fun numberOfPhysicalCoresPerLicense(`value`: Output) {
        this.numberOfPhysicalCoresPerLicense = value
    }

    /**
     * @param value Software Assurance Cost.
     */
    @JvmName("bcnhhvsmarbmamuq")
    public suspend fun softwareAssuranceCost(`value`: Output) {
        this.softwareAssuranceCost = value
    }

    /**
     * @param value Licence and support list.
     */
    @JvmName("pwurasdwfripaofx")
    public suspend fun licenseAndSupportList(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.licenseAndSupportList = mapped
    }

    /**
     * @param argument Licence and support list.
     */
    @JvmName("dyfcnxhqnklceufs")
    public suspend fun licenseAndSupportList(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            HypervLicenseArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.licenseAndSupportList = mapped
    }

    /**
     * @param argument Licence and support list.
     */
    @JvmName("rfadwrrcmvmyxqbf")
    public suspend fun licenseAndSupportList(vararg argument: suspend HypervLicenseArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            HypervLicenseArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.licenseAndSupportList = mapped
    }

    /**
     * @param argument Licence and support list.
     */
    @JvmName("lihympwiskchfgqo")
    public suspend fun licenseAndSupportList(argument: suspend HypervLicenseArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(HypervLicenseArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.licenseAndSupportList = mapped
    }

    /**
     * @param values Licence and support list.
     */
    @JvmName("hfjqnxhonsmlktrp")
    public suspend fun licenseAndSupportList(vararg values: HypervLicenseArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.licenseAndSupportList = mapped
    }

    /**
     * @param value Number of physical cores per licence.
     */
    @JvmName("dwhvujxkeigqgxlq")
    public suspend fun numberOfPhysicalCoresPerLicense(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.numberOfPhysicalCoresPerLicense = mapped
    }

    /**
     * @param value Software Assurance Cost.
     */
    @JvmName("srvmvomsyumlgjtt")
    public suspend fun softwareAssuranceCost(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.softwareAssuranceCost = mapped
    }

    internal fun build(): HypervVirtualizationManagementSettingsArgs =
        HypervVirtualizationManagementSettingsArgs(
            licenseAndSupportList = licenseAndSupportList ?: throw
                PulumiNullFieldException("licenseAndSupportList"),
            numberOfPhysicalCoresPerLicense = numberOfPhysicalCoresPerLicense ?: throw
                PulumiNullFieldException("numberOfPhysicalCoresPerLicense"),
            softwareAssuranceCost = softwareAssuranceCost ?: throw
                PulumiNullFieldException("softwareAssuranceCost"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy