com.pulumi.gcp.vmwareengine.kotlin.inputs.NetworkPolicyInternetAccessArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.NetworkPolicyInternetAccessArgs.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 NetworkPolicyInternetAccessArgs(
public val enabled: Output? = null,
public val state: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.NetworkPolicyInternetAccessArgs =
com.pulumi.gcp.vmwareengine.inputs.NetworkPolicyInternetAccessArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.state(state?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NetworkPolicyInternetAccessArgs].
*/
@PulumiTagMarker
public class NetworkPolicyInternetAccessArgsBuilder internal constructor() {
private var enabled: Output? = null
private var state: Output? = null
/**
* @param value True if the service is enabled; false otherwise.
*/
@JvmName("rcidkgsdthkatpoi")
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("xtnxpoeyglonxohq")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value True if the service is enabled; false otherwise.
*/
@JvmName("bsacuxfvvurjdrwj")
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("mmqgjwqvmupllhbs")
public suspend fun state(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): NetworkPolicyInternetAccessArgs = NetworkPolicyInternetAccessArgs(
enabled = enabled,
state = state,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy