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

com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs.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.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property preferredRegions A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
 */
public data class PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs(
    public val preferredRegions: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs =
        com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs.builder()
            .preferredRegions(preferredRegions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
     */
    @JvmName("vyfytorrgtibekuw")
    public suspend fun preferredRegions(`value`: Output>) {
        this.preferredRegions = value
    }

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

    /**
     * @param values A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
     */
    @JvmName("vgqeqbkvacjlmwdm")
    public suspend fun preferredRegions(values: List>) {
        this.preferredRegions = Output.all(values)
    }

    /**
     * @param value A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
     */
    @JvmName("ptwgthpnbmjwcarp")
    public suspend fun preferredRegions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredRegions = mapped
    }

    /**
     * @param values A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
     */
    @JvmName("phfeplldtvdowjde")
    public suspend fun preferredRegions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preferredRegions = mapped
    }

    internal fun build(): PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs =
        PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs(
            preferredRegions = preferredRegions,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy