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

com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceSettingsLocationPreferenceArgs.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.sql.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsLocationPreferenceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property followGaeApplication A GAE application whose zone to remain
 * in. Must be in the same region as this instance.
 * @property secondaryZone The preferred Compute Engine zone for the secondary/failover.
 * @property zone The preferred compute engine
 * [zone](https://cloud.google.com/compute/docs/zones?hl=en).
 */
public data class DatabaseInstanceSettingsLocationPreferenceArgs(
    public val followGaeApplication: Output? = null,
    public val secondaryZone: Output? = null,
    public val zone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsLocationPreferenceArgs =
        com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsLocationPreferenceArgs.builder()
            .followGaeApplication(followGaeApplication?.applyValue({ args0 -> args0 }))
            .secondaryZone(secondaryZone?.applyValue({ args0 -> args0 }))
            .zone(zone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseInstanceSettingsLocationPreferenceArgs].
 */
@PulumiTagMarker
public class DatabaseInstanceSettingsLocationPreferenceArgsBuilder internal constructor() {
    private var followGaeApplication: Output? = null

    private var secondaryZone: Output? = null

    private var zone: Output? = null

    /**
     * @param value A GAE application whose zone to remain
     * in. Must be in the same region as this instance.
     */
    @JvmName("ddbcsilutlreyyal")
    public suspend fun followGaeApplication(`value`: Output) {
        this.followGaeApplication = value
    }

    /**
     * @param value The preferred Compute Engine zone for the secondary/failover.
     */
    @JvmName("abwnqvehigavmpac")
    public suspend fun secondaryZone(`value`: Output) {
        this.secondaryZone = value
    }

    /**
     * @param value The preferred compute engine
     * [zone](https://cloud.google.com/compute/docs/zones?hl=en).
     */
    @JvmName("etcxcgecsouenhxh")
    public suspend fun zone(`value`: Output) {
        this.zone = value
    }

    /**
     * @param value A GAE application whose zone to remain
     * in. Must be in the same region as this instance.
     */
    @JvmName("qyvmvcrgoosybdtf")
    public suspend fun followGaeApplication(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.followGaeApplication = mapped
    }

    /**
     * @param value The preferred Compute Engine zone for the secondary/failover.
     */
    @JvmName("fkfmrnifopnoeglc")
    public suspend fun secondaryZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secondaryZone = mapped
    }

    /**
     * @param value The preferred compute engine
     * [zone](https://cloud.google.com/compute/docs/zones?hl=en).
     */
    @JvmName("gmhgwpqsinvydquw")
    public suspend fun zone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zone = mapped
    }

    internal fun build(): DatabaseInstanceSettingsLocationPreferenceArgs =
        DatabaseInstanceSettingsLocationPreferenceArgs(
            followGaeApplication = followGaeApplication,
            secondaryZone = secondaryZone,
            zone = zone,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy