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

com.pulumi.gcp.vmwareengine.kotlin.inputs.NetworkPolicyExternalIpArgs.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.vmwareengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vmwareengine.inputs.NetworkPolicyExternalIpArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled True if the service is enabled; false otherwise.
 * @property state (Output)
 * State of the service. New values may be added to this enum when appropriate.
 */
public data class NetworkPolicyExternalIpArgs(
    public val enabled: Output? = null,
    public val state: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.NetworkPolicyExternalIpArgs =
        com.pulumi.gcp.vmwareengine.inputs.NetworkPolicyExternalIpArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0 })).build()
}

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

    private var state: Output? = null

    /**
     * @param value True if the service is enabled; false otherwise.
     */
    @JvmName("njelkrecsbmdfbmd")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value (Output)
     * State of the service. New values may be added to this enum when appropriate.
     */
    @JvmName("plvhqwawgmwjgpdj")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value True if the service is enabled; false otherwise.
     */
    @JvmName("wbntoukpmhblscvr")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value (Output)
     * State of the service. New values may be added to this enum when appropriate.
     */
    @JvmName("lpdlgwktbwbligaq")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    internal fun build(): NetworkPolicyExternalIpArgs = NetworkPolicyExternalIpArgs(
        enabled = enabled,
        state = state,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy