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

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

package com.pulumi.gcp.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterMaintenanceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property maintenanceAddressCidrBlocks All IPv4 address from these ranges will be placed into maintenance mode.
 * Nodes in maintenance mode will be cordoned and drained. When both of these
 * are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set
 * on the node resource.
 */
public data class BareMetalClusterMaintenanceConfigArgs(
    public val maintenanceAddressCidrBlocks: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterMaintenanceConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterMaintenanceConfigArgs.builder()
            .maintenanceAddressCidrBlocks(
                maintenanceAddressCidrBlocks.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            ).build()
}

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

    /**
     * @param value All IPv4 address from these ranges will be placed into maintenance mode.
     * Nodes in maintenance mode will be cordoned and drained. When both of these
     * are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set
     * on the node resource.
     */
    @JvmName("uxgyhtaynwaywwxj")
    public suspend fun maintenanceAddressCidrBlocks(`value`: Output>) {
        this.maintenanceAddressCidrBlocks = value
    }

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

    /**
     * @param values All IPv4 address from these ranges will be placed into maintenance mode.
     * Nodes in maintenance mode will be cordoned and drained. When both of these
     * are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set
     * on the node resource.
     */
    @JvmName("qopihjmuiiqpgptp")
    public suspend fun maintenanceAddressCidrBlocks(values: List>) {
        this.maintenanceAddressCidrBlocks = Output.all(values)
    }

    /**
     * @param value All IPv4 address from these ranges will be placed into maintenance mode.
     * Nodes in maintenance mode will be cordoned and drained. When both of these
     * are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set
     * on the node resource.
     */
    @JvmName("uylbfgdqexdmmpax")
    public suspend fun maintenanceAddressCidrBlocks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maintenanceAddressCidrBlocks = mapped
    }

    /**
     * @param values All IPv4 address from these ranges will be placed into maintenance mode.
     * Nodes in maintenance mode will be cordoned and drained. When both of these
     * are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set
     * on the node resource.
     */
    @JvmName("mpjyefecweylvuur")
    public suspend fun maintenanceAddressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maintenanceAddressCidrBlocks = mapped
    }

    internal fun build(): BareMetalClusterMaintenanceConfigArgs =
        BareMetalClusterMaintenanceConfigArgs(
            maintenanceAddressCidrBlocks = maintenanceAddressCidrBlocks ?: throw
                PulumiNullFieldException("maintenanceAddressCidrBlocks"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy