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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureSpecClusterupgradeArgs.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.gkehub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureSpecClusterupgradeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property gkeUpgradeOverrides Configuration overrides for individual upgrades.
 * Structure is documented below.
 * @property postConditions Post conditions to override for the specified upgrade.
 * Structure is documented below.
 * @property upstreamFleets Specified if other fleet should be considered as a source of upgrades. Currently, at most one upstream fleet is allowed. The fleet name should be either fleet project number or id.
 */
public data class FeatureSpecClusterupgradeArgs(
    public val gkeUpgradeOverrides: Output>? =
        null,
    public val postConditions: Output? = null,
    public val upstreamFleets: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureSpecClusterupgradeArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureSpecClusterupgradeArgs.builder()
            .gkeUpgradeOverrides(
                gkeUpgradeOverrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .postConditions(postConditions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .upstreamFleets(upstreamFleets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var postConditions: Output? = null

    private var upstreamFleets: Output>? = null

    /**
     * @param value Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("utpiagkseafekrld")
    public suspend fun gkeUpgradeOverrides(`value`: Output>) {
        this.gkeUpgradeOverrides = value
    }

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

    /**
     * @param values Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("ynjsiyboomssgipx")
    public suspend fun gkeUpgradeOverrides(values: List>) {
        this.gkeUpgradeOverrides = Output.all(values)
    }

    /**
     * @param value Post conditions to override for the specified upgrade.
     * Structure is documented below.
     */
    @JvmName("ckobirwjkfcswthh")
    public suspend fun postConditions(`value`: Output) {
        this.postConditions = value
    }

    /**
     * @param value Specified if other fleet should be considered as a source of upgrades. Currently, at most one upstream fleet is allowed. The fleet name should be either fleet project number or id.
     */
    @JvmName("cbfvcwukalroswbp")
    public suspend fun upstreamFleets(`value`: Output>) {
        this.upstreamFleets = value
    }

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

    /**
     * @param values Specified if other fleet should be considered as a source of upgrades. Currently, at most one upstream fleet is allowed. The fleet name should be either fleet project number or id.
     */
    @JvmName("nrgdxuljljmrhfjl")
    public suspend fun upstreamFleets(values: List>) {
        this.upstreamFleets = Output.all(values)
    }

    /**
     * @param value Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("lydxwpyenqwtdryv")
    public suspend fun gkeUpgradeOverrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gkeUpgradeOverrides = mapped
    }

    /**
     * @param argument Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("fclprquvmljpaogx")
    public suspend fun gkeUpgradeOverrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FeatureSpecClusterupgradeGkeUpgradeOverrideArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.gkeUpgradeOverrides = mapped
    }

    /**
     * @param argument Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("siktwavpuxtotnmk")
    public suspend fun gkeUpgradeOverrides(vararg argument: suspend FeatureSpecClusterupgradeGkeUpgradeOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FeatureSpecClusterupgradeGkeUpgradeOverrideArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.gkeUpgradeOverrides = mapped
    }

    /**
     * @param argument Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("qwgtwtnmbnqydope")
    public suspend fun gkeUpgradeOverrides(argument: suspend FeatureSpecClusterupgradeGkeUpgradeOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FeatureSpecClusterupgradeGkeUpgradeOverrideArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.gkeUpgradeOverrides = mapped
    }

    /**
     * @param values Configuration overrides for individual upgrades.
     * Structure is documented below.
     */
    @JvmName("gstaqtltbiecmgec")
    public suspend fun gkeUpgradeOverrides(vararg values: FeatureSpecClusterupgradeGkeUpgradeOverrideArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gkeUpgradeOverrides = mapped
    }

    /**
     * @param value Post conditions to override for the specified upgrade.
     * Structure is documented below.
     */
    @JvmName("hmaahfgwnrqhigay")
    public suspend fun postConditions(`value`: FeatureSpecClusterupgradePostConditionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postConditions = mapped
    }

    /**
     * @param argument Post conditions to override for the specified upgrade.
     * Structure is documented below.
     */
    @JvmName("goqjvytwdfyukybg")
    public suspend fun postConditions(argument: suspend FeatureSpecClusterupgradePostConditionsArgsBuilder.() -> Unit) {
        val toBeMapped = FeatureSpecClusterupgradePostConditionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.postConditions = mapped
    }

    /**
     * @param value Specified if other fleet should be considered as a source of upgrades. Currently, at most one upstream fleet is allowed. The fleet name should be either fleet project number or id.
     */
    @JvmName("eftoxdihednkinwr")
    public suspend fun upstreamFleets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.upstreamFleets = mapped
    }

    /**
     * @param values Specified if other fleet should be considered as a source of upgrades. Currently, at most one upstream fleet is allowed. The fleet name should be either fleet project number or id.
     */
    @JvmName("rhbunyaldgsxvxqo")
    public suspend fun upstreamFleets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.upstreamFleets = mapped
    }

    internal fun build(): FeatureSpecClusterupgradeArgs = FeatureSpecClusterupgradeArgs(
        gkeUpgradeOverrides = gkeUpgradeOverrides,
        postConditions = postConditions,
        upstreamFleets = upstreamFleets ?: throw PulumiNullFieldException("upstreamFleets"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy