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

com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.migrationcenter.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs.builder
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.jvm.JvmName

/**
 *
 * @property licenseType License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
 * Possible values:
 * LICENSE_TYPE_UNSPECIFIED
 * LICENSE_TYPE_DEFAULT
 * LICENSE_TYPE_BRING_YOUR_OWN_LICENSE
 * @property machinePreferences The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.
 * Structure is documented below.
 */
public data class PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs(
    public val licenseType: Output? = null,
    public val machinePreferences: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs =
        com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs.builder()
            .licenseType(licenseType?.applyValue({ args0 -> args0 }))
            .machinePreferences(
                machinePreferences?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs].
 */
@PulumiTagMarker
public class PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgsBuilder internal constructor() {
    private var licenseType: Output? = null

    private var machinePreferences:
        Output? =
        null

    /**
     * @param value License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
     * Possible values:
     * LICENSE_TYPE_UNSPECIFIED
     * LICENSE_TYPE_DEFAULT
     * LICENSE_TYPE_BRING_YOUR_OWN_LICENSE
     */
    @JvmName("edpgjhfeplbmxbrm")
    public suspend fun licenseType(`value`: Output) {
        this.licenseType = value
    }

    /**
     * @param value The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.
     * Structure is documented below.
     */
    @JvmName("knnlflwttwmavusq")
    public suspend fun machinePreferences(`value`: Output) {
        this.machinePreferences = value
    }

    /**
     * @param value License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
     * Possible values:
     * LICENSE_TYPE_UNSPECIFIED
     * LICENSE_TYPE_DEFAULT
     * LICENSE_TYPE_BRING_YOUR_OWN_LICENSE
     */
    @JvmName("yiuycmnwwhyobddy")
    public suspend fun licenseType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.licenseType = mapped
    }

    /**
     * @param value The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.
     * Structure is documented below.
     */
    @JvmName("kfjqbpvoycxwdfoj")
    public suspend fun machinePreferences(`value`: PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.machinePreferences = mapped
    }

    /**
     * @param argument The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.
     * Structure is documented below.
     */
    @JvmName("ucgpmleljkurhobl")
    public suspend fun machinePreferences(argument: suspend PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.machinePreferences = mapped
    }

    internal fun build(): PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs =
        PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs(
            licenseType = licenseType,
            machinePreferences = machinePreferences,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy