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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterMaintenanceConfigArgs.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.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterMaintenanceConfigArgs.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 BareMetalAdminClusterMaintenanceConfigArgs(
    public val maintenanceAddressCidrBlocks: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterMaintenanceConfigArgs = com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterMaintenanceConfigArgs.builder()
        .maintenanceAddressCidrBlocks(
            maintenanceAddressCidrBlocks.applyValue({ args0 ->
                args0.map({ args0 -> args0 })
            }),
        ).build()
}

/**
 * Builder for [BareMetalAdminClusterMaintenanceConfigArgs].
 */
@PulumiTagMarker
public class BareMetalAdminClusterMaintenanceConfigArgsBuilder 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("aahdogrhgagouwsn")
    public suspend fun maintenanceAddressCidrBlocks(`value`: Output>) {
        this.maintenanceAddressCidrBlocks = value
    }

    @JvmName("ansabhoajbqcxdeg")
    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("twuohjhylahjvgoc")
    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("lqtwxypiinffagiy")
    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("pqorchjirfhashxb")
    public suspend fun maintenanceAddressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maintenanceAddressCidrBlocks = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy