
com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesArgs.kt Maven / Gradle / Ivy
@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.PreferenceSetVirtualMachinePreferencesArgs.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 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 PreferenceSetVirtualMachinePreferencesArgs(
public val commitmentPlan: Output? = null,
public val computeEnginePreferences: Output? = null,
public val regionPreferences: Output? =
null,
public val sizingOptimizationStrategy: Output? = null,
public val soleTenancyPreferences: Output? = null,
public val targetProduct: Output? = null,
public val vmwareEnginePreferences: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesArgs =
com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesArgs.builder()
.commitmentPlan(commitmentPlan?.applyValue({ args0 -> args0 }))
.computeEnginePreferences(
computeEnginePreferences?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.regionPreferences(regionPreferences?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sizingOptimizationStrategy(sizingOptimizationStrategy?.applyValue({ args0 -> args0 }))
.soleTenancyPreferences(
soleTenancyPreferences?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.targetProduct(targetProduct?.applyValue({ args0 -> args0 }))
.vmwareEnginePreferences(
vmwareEnginePreferences?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PreferenceSetVirtualMachinePreferencesArgs].
*/
@PulumiTagMarker
public class PreferenceSetVirtualMachinePreferencesArgsBuilder internal constructor() {
private var commitmentPlan: Output? = null
private var computeEnginePreferences:
Output? = null
private var regionPreferences:
Output? = null
private var sizingOptimizationStrategy: Output? = null
private var soleTenancyPreferences:
Output? = null
private var targetProduct: Output? = null
private var vmwareEnginePreferences:
Output? = null
/**
* @param value 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`
*/
@JvmName("qcmqpdueatqqpdjm")
public suspend fun commitmentPlan(`value`: Output) {
this.commitmentPlan = value
}
/**
* @param value The user preferences relating to Compute Engine target platform.
* Structure is documented below.
*/
@JvmName("lkxfuxljudesllqq")
public suspend fun computeEnginePreferences(`value`: Output) {
this.computeEnginePreferences = value
}
/**
* @param value The user preferences relating to target regions.
* Structure is documented below.
*/
@JvmName("edmqumrqdctfaokm")
public suspend fun regionPreferences(`value`: Output) {
this.regionPreferences = value
}
/**
* @param value 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`
*/
@JvmName("srowlsqetxrvbggu")
public suspend fun sizingOptimizationStrategy(`value`: Output) {
this.sizingOptimizationStrategy = value
}
/**
* @param value Preferences concerning Sole Tenancy nodes and VMs.
* Structure is documented below.
*/
@JvmName("rkqhnpvkmaltxicf")
public suspend fun soleTenancyPreferences(`value`: Output) {
this.soleTenancyPreferences = value
}
/**
* @param value 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`
*/
@JvmName("facsndxxsxfqifed")
public suspend fun targetProduct(`value`: Output) {
this.targetProduct = value
}
/**
* @param value The user preferences relating to Google Cloud VMware Engine target platform.
* Structure is documented below.
*/
@JvmName("aqxgruyqwwcomfhh")
public suspend fun vmwareEnginePreferences(`value`: Output) {
this.vmwareEnginePreferences = value
}
/**
* @param value 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`
*/
@JvmName("qfwbmaraxiqqcasl")
public suspend fun commitmentPlan(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commitmentPlan = mapped
}
/**
* @param value The user preferences relating to Compute Engine target platform.
* Structure is documented below.
*/
@JvmName("itaystxyfrmehfjp")
public suspend fun computeEnginePreferences(`value`: PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.computeEnginePreferences = mapped
}
/**
* @param argument The user preferences relating to Compute Engine target platform.
* Structure is documented below.
*/
@JvmName("gqjnbgnwirprshwp")
public suspend fun computeEnginePreferences(argument: suspend PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgsBuilder.() -> Unit) {
val toBeMapped =
PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.computeEnginePreferences = mapped
}
/**
* @param value The user preferences relating to target regions.
* Structure is documented below.
*/
@JvmName("uwwcjuiqwhblthad")
public suspend fun regionPreferences(`value`: PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.regionPreferences = mapped
}
/**
* @param argument The user preferences relating to target regions.
* Structure is documented below.
*/
@JvmName("ejnbfbkbheqostnb")
public suspend fun regionPreferences(argument: suspend PreferenceSetVirtualMachinePreferencesRegionPreferencesArgsBuilder.() -> Unit) {
val toBeMapped =
PreferenceSetVirtualMachinePreferencesRegionPreferencesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.regionPreferences = mapped
}
/**
* @param value 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`
*/
@JvmName("yplxlwfiikuueufk")
public suspend fun sizingOptimizationStrategy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sizingOptimizationStrategy = mapped
}
/**
* @param value Preferences concerning Sole Tenancy nodes and VMs.
* Structure is documented below.
*/
@JvmName("gotqxaqumwptmsgh")
public suspend fun soleTenancyPreferences(`value`: PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.soleTenancyPreferences = mapped
}
/**
* @param argument Preferences concerning Sole Tenancy nodes and VMs.
* Structure is documented below.
*/
@JvmName("qwllpgfijxojgacr")
public suspend fun soleTenancyPreferences(argument: suspend PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgsBuilder.() -> Unit) {
val toBeMapped =
PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.soleTenancyPreferences = mapped
}
/**
* @param value 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`
*/
@JvmName("pqwvxdihnyldwron")
public suspend fun targetProduct(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetProduct = mapped
}
/**
* @param value The user preferences relating to Google Cloud VMware Engine target platform.
* Structure is documented below.
*/
@JvmName("ylpgphsxnhekqjiw")
public suspend fun vmwareEnginePreferences(`value`: PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vmwareEnginePreferences = mapped
}
/**
* @param argument The user preferences relating to Google Cloud VMware Engine target platform.
* Structure is documented below.
*/
@JvmName("wmbbgmsvfdjufamv")
public suspend fun vmwareEnginePreferences(argument: suspend PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgsBuilder.() -> Unit) {
val toBeMapped =
PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.vmwareEnginePreferences = mapped
}
internal fun build(): PreferenceSetVirtualMachinePreferencesArgs =
PreferenceSetVirtualMachinePreferencesArgs(
commitmentPlan = commitmentPlan,
computeEnginePreferences = computeEnginePreferences,
regionPreferences = regionPreferences,
sizingOptimizationStrategy = sizingOptimizationStrategy,
soleTenancyPreferences = soleTenancyPreferences,
targetProduct = targetProduct,
vmwareEnginePreferences = vmwareEnginePreferences,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy