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

com.pulumi.gcp.spanner.kotlin.inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs.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.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property overrides A nested object resource.
 * Structure is documented below.
 * @property replicaSelection A nested object resource.
 * Structure is documented below.
 */
public data class InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs(
    public val overrides: Output,
    public val replicaSelection: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs =
        com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs.builder()
            .overrides(overrides.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .replicaSelection(
                replicaSelection.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs].
 */
@PulumiTagMarker
public class InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgsBuilder internal constructor() {
    private var overrides: Output? =
        null

    private var replicaSelection:
        Output? = null

    /**
     * @param value A nested object resource.
     * Structure is documented below.
     */
    @JvmName("wwvewjvxjjpjbqki")
    public suspend fun overrides(`value`: Output) {
        this.overrides = value
    }

    /**
     * @param value A nested object resource.
     * Structure is documented below.
     */
    @JvmName("crlwodmuquuovtek")
    public suspend fun replicaSelection(`value`: Output) {
        this.replicaSelection = value
    }

    /**
     * @param value A nested object resource.
     * Structure is documented below.
     */
    @JvmName("cwshnjfknjcgqtwx")
    public suspend fun overrides(`value`: InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param argument A nested object resource.
     * Structure is documented below.
     */
    @JvmName("klubeioqbrbhdnoe")
    public suspend fun overrides(argument: suspend InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgsBuilder.() -> Unit) {
        val toBeMapped =
            InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param value A nested object resource.
     * Structure is documented below.
     */
    @JvmName("wsrmxqhlrpunqxct")
    public suspend fun replicaSelection(`value`: InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.replicaSelection = mapped
    }

    /**
     * @param argument A nested object resource.
     * Structure is documented below.
     */
    @JvmName("bsuyelwqagxrdpmu")
    public suspend fun replicaSelection(argument: suspend InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgsBuilder.() -> Unit) {
        val toBeMapped =
            InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.replicaSelection = mapped
    }

    internal fun build(): InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs =
        InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs(
            overrides = overrides ?: throw PulumiNullFieldException("overrides"),
            replicaSelection = replicaSelection ?: throw PulumiNullFieldException("replicaSelection"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy