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

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

package com.pulumi.gcp.spanner.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.spanner.inputs.InstanceConfigReplicaArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property defaultLeaderLocation If true, this location is designated as the default leader location where
 * leader replicas are placed.
 * - - -
 * @property location The location of the serving resources, e.g. "us-central1".
 * @property type Indicates the type of replica.  See the [replica types
 * documentation](https://cloud.google.com/spanner/docs/replication#replica_types)
 * for more details.
 * Possible values are: `READ_WRITE`, `READ_ONLY`, `WITNESS`.
 */
public data class InstanceConfigReplicaArgs(
    public val defaultLeaderLocation: Output? = null,
    public val location: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.spanner.inputs.InstanceConfigReplicaArgs =
        com.pulumi.gcp.spanner.inputs.InstanceConfigReplicaArgs.builder()
            .defaultLeaderLocation(defaultLeaderLocation?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceConfigReplicaArgs].
 */
@PulumiTagMarker
public class InstanceConfigReplicaArgsBuilder internal constructor() {
    private var defaultLeaderLocation: Output? = null

    private var location: Output? = null

    private var type: Output? = null

    /**
     * @param value If true, this location is designated as the default leader location where
     * leader replicas are placed.
     * - - -
     */
    @JvmName("wasjpyoebiypviit")
    public suspend fun defaultLeaderLocation(`value`: Output) {
        this.defaultLeaderLocation = value
    }

    /**
     * @param value The location of the serving resources, e.g. "us-central1".
     */
    @JvmName("vlsplnmohqicpsuc")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Indicates the type of replica.  See the [replica types
   * documentation](https://cloud.google.com/spanner/docs/replication#replica_types)
     * for more details.
     * Possible values are: `READ_WRITE`, `READ_ONLY`, `WITNESS`.
     */
    @JvmName("tcgkwvwktihibjjv")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value If true, this location is designated as the default leader location where
     * leader replicas are placed.
     * - - -
     */
    @JvmName("jfpcqaachehkgaxq")
    public suspend fun defaultLeaderLocation(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultLeaderLocation = mapped
    }

    /**
     * @param value The location of the serving resources, e.g. "us-central1".
     */
    @JvmName("gaaaiojujrygrfuy")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Indicates the type of replica.  See the [replica types
   * documentation](https://cloud.google.com/spanner/docs/replication#replica_types)
     * for more details.
     * Possible values are: `READ_WRITE`, `READ_ONLY`, `WITNESS`.
     */
    @JvmName("xgngvsorxcsyhojt")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): InstanceConfigReplicaArgs = InstanceConfigReplicaArgs(
        defaultLeaderLocation = defaultLeaderLocation,
        location = location,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy