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

com.pulumi.gcp.container.kotlin.inputs.ClusterNetworkPolicyArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNetworkPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether network policy is enabled on the cluster.
 * @property provider The selected network policy provider. Defaults to PROVIDER_UNSPECIFIED.
 */
public data class ClusterNetworkPolicyArgs(
    public val enabled: Output,
    public val provider: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNetworkPolicyArgs =
        com.pulumi.gcp.container.inputs.ClusterNetworkPolicyArgs.builder()
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .provider(provider?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterNetworkPolicyArgs].
 */
@PulumiTagMarker
public class ClusterNetworkPolicyArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var provider: Output? = null

    /**
     * @param value Whether network policy is enabled on the cluster.
     */
    @JvmName("mqsedfjuakbhoitr")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The selected network policy provider. Defaults to PROVIDER_UNSPECIFIED.
     */
    @JvmName("xigasihyibvnclpc")
    public suspend fun provider(`value`: Output) {
        this.provider = value
    }

    /**
     * @param value Whether network policy is enabled on the cluster.
     */
    @JvmName("iiaxnhwvaqdhwxbf")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The selected network policy provider. Defaults to PROVIDER_UNSPECIFIED.
     */
    @JvmName("wfyqauemsyvqfjoi")
    public suspend fun provider(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provider = mapped
    }

    internal fun build(): ClusterNetworkPolicyArgs = ClusterNetworkPolicyArgs(
        enabled = enabled ?: throw PulumiNullFieldException("enabled"),
        provider = provider,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy