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

com.pulumi.azurenative.azurefleet.kotlin.inputs.ComputeProfileArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.azurefleet.kotlin.inputs

import com.pulumi.azurenative.azurefleet.inputs.ComputeProfileArgs.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

/**
 * Compute Profile to use for running user's workloads.
 * @property baseVirtualMachineProfile Base Virtual Machine Profile Properties to be specified according to "specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/{computeApiVersion}/virtualMachineScaleSet.json#/definitions/VirtualMachineScaleSetVMProfile"
 * @property computeApiVersion Specifies the Microsoft.Compute API version to use when creating underlying Virtual Machine scale sets and Virtual Machines.
 * The default value will be the latest supported computeApiVersion by Compute Fleet.
 * @property platformFaultDomainCount Specifies the number of fault domains to use when creating the underlying VMSS.
 * A fault domain is a logical group of hardware within an Azure datacenter.
 * VMs in the same fault domain share a common power source and network switch.
 * If not specified, defaults to 1, which represents "Max Spreading" (using as many fault domains as possible).
 * This property cannot be updated.
 */
public data class ComputeProfileArgs(
    public val baseVirtualMachineProfile: Output,
    public val computeApiVersion: Output? = null,
    public val platformFaultDomainCount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurefleet.inputs.ComputeProfileArgs =
        com.pulumi.azurenative.azurefleet.inputs.ComputeProfileArgs.builder()
            .baseVirtualMachineProfile(
                baseVirtualMachineProfile.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .computeApiVersion(computeApiVersion?.applyValue({ args0 -> args0 }))
            .platformFaultDomainCount(platformFaultDomainCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ComputeProfileArgs].
 */
@PulumiTagMarker
public class ComputeProfileArgsBuilder internal constructor() {
    private var baseVirtualMachineProfile: Output? = null

    private var computeApiVersion: Output? = null

    private var platformFaultDomainCount: Output? = null

    /**
     * @param value Base Virtual Machine Profile Properties to be specified according to "specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/{computeApiVersion}/virtualMachineScaleSet.json#/definitions/VirtualMachineScaleSetVMProfile"
     */
    @JvmName("ebdydysexthemlcs")
    public suspend fun baseVirtualMachineProfile(`value`: Output) {
        this.baseVirtualMachineProfile = value
    }

    /**
     * @param value Specifies the Microsoft.Compute API version to use when creating underlying Virtual Machine scale sets and Virtual Machines.
     * The default value will be the latest supported computeApiVersion by Compute Fleet.
     */
    @JvmName("ihrjqdjtjjmheyto")
    public suspend fun computeApiVersion(`value`: Output) {
        this.computeApiVersion = value
    }

    /**
     * @param value Specifies the number of fault domains to use when creating the underlying VMSS.
     * A fault domain is a logical group of hardware within an Azure datacenter.
     * VMs in the same fault domain share a common power source and network switch.
     * If not specified, defaults to 1, which represents "Max Spreading" (using as many fault domains as possible).
     * This property cannot be updated.
     */
    @JvmName("fnxnycmxgpnbdjkq")
    public suspend fun platformFaultDomainCount(`value`: Output) {
        this.platformFaultDomainCount = value
    }

    /**
     * @param value Base Virtual Machine Profile Properties to be specified according to "specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/{computeApiVersion}/virtualMachineScaleSet.json#/definitions/VirtualMachineScaleSetVMProfile"
     */
    @JvmName("eljthemoifcjftia")
    public suspend fun baseVirtualMachineProfile(`value`: BaseVirtualMachineProfileArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.baseVirtualMachineProfile = mapped
    }

    /**
     * @param argument Base Virtual Machine Profile Properties to be specified according to "specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/{computeApiVersion}/virtualMachineScaleSet.json#/definitions/VirtualMachineScaleSetVMProfile"
     */
    @JvmName("hskmytlgpxurwjen")
    public suspend fun baseVirtualMachineProfile(argument: suspend BaseVirtualMachineProfileArgsBuilder.() -> Unit) {
        val toBeMapped = BaseVirtualMachineProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.baseVirtualMachineProfile = mapped
    }

    /**
     * @param value Specifies the Microsoft.Compute API version to use when creating underlying Virtual Machine scale sets and Virtual Machines.
     * The default value will be the latest supported computeApiVersion by Compute Fleet.
     */
    @JvmName("ipgckeepgrjcgcun")
    public suspend fun computeApiVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeApiVersion = mapped
    }

    /**
     * @param value Specifies the number of fault domains to use when creating the underlying VMSS.
     * A fault domain is a logical group of hardware within an Azure datacenter.
     * VMs in the same fault domain share a common power source and network switch.
     * If not specified, defaults to 1, which represents "Max Spreading" (using as many fault domains as possible).
     * This property cannot be updated.
     */
    @JvmName("ylcntxoxyocwfset")
    public suspend fun platformFaultDomainCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platformFaultDomainCount = mapped
    }

    internal fun build(): ComputeProfileArgs = ComputeProfileArgs(
        baseVirtualMachineProfile = baseVirtualMachineProfile ?: throw
            PulumiNullFieldException("baseVirtualMachineProfile"),
        computeApiVersion = computeApiVersion,
        platformFaultDomainCount = platformFaultDomainCount,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy