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

com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferences.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.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property commitmentPlan Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
 * Possible values:
 * COMMITMENT_PLAN_UNSPECIFIED
 * COMMITMENT_PLAN_NONE
 * COMMITMENT_PLAN_ONE_YEAR
 * COMMITMENT_PLAN_THREE_YEARS
 * @property computeEnginePreferences The user preferences relating to Compute Engine target platform.
 * Structure is documented below.
 * @property regionPreferences The user preferences relating to target regions.
 * Structure is documented below.
 * @property sizingOptimizationStrategy Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
 * Possible values:
 * SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED
 * SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
 * SIZING_OPTIMIZATION_STRATEGY_MODERATE
 * SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE
 * @property soleTenancyPreferences Preferences concerning Sole Tenancy nodes and VMs.
 * Structure is documented below.
 * @property targetProduct Target product for assets using this preference set. Specify either target product or business goal, but not both.
 * Possible values:
 * COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED
 * COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE
 * COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE
 * COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY
 * @property vmwareEnginePreferences The user preferences relating to Google Cloud VMware Engine target platform.
 * Structure is documented below.
 */
public data class PreferenceSetVirtualMachinePreferences(
    public val commitmentPlan: String? = null,
    public val computeEnginePreferences: PreferenceSetVirtualMachinePreferencesComputeEnginePreferences? = null,
    public val regionPreferences: PreferenceSetVirtualMachinePreferencesRegionPreferences? = null,
    public val sizingOptimizationStrategy: String? = null,
    public val soleTenancyPreferences: PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences? =
        null,
    public val targetProduct: String? = null,
    public val vmwareEnginePreferences: PreferenceSetVirtualMachinePreferencesVmwareEnginePreferences? =
        null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.migrationcenter.outputs.PreferenceSetVirtualMachinePreferences): PreferenceSetVirtualMachinePreferences = PreferenceSetVirtualMachinePreferences(
            commitmentPlan = javaType.commitmentPlan().map({ args0 -> args0 }).orElse(null),
            computeEnginePreferences = javaType.computeEnginePreferences().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferences.Companion.toKotlin(args0)
                })
            }).orElse(null),
            regionPreferences = javaType.regionPreferences().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferencesRegionPreferences.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sizingOptimizationStrategy = javaType.sizingOptimizationStrategy().map({ args0 ->
                args0
            }).orElse(null),
            soleTenancyPreferences = javaType.soleTenancyPreferences().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences.Companion.toKotlin(args0)
                })
            }).orElse(null),
            targetProduct = javaType.targetProduct().map({ args0 -> args0 }).orElse(null),
            vmwareEnginePreferences = javaType.vmwareEnginePreferences().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferences.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy