com.pulumi.gcp.projects.kotlin.inputs.OrganizationPolicyBooleanPolicyArgs.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.projects.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.projects.inputs.OrganizationPolicyBooleanPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enforced If true, then the Policy is enforced. If false, then any configuration is acceptable.
*/
public data class OrganizationPolicyBooleanPolicyArgs(
public val enforced: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.projects.inputs.OrganizationPolicyBooleanPolicyArgs =
com.pulumi.gcp.projects.inputs.OrganizationPolicyBooleanPolicyArgs.builder()
.enforced(enforced.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OrganizationPolicyBooleanPolicyArgs].
*/
@PulumiTagMarker
public class OrganizationPolicyBooleanPolicyArgsBuilder internal constructor() {
private var enforced: Output? = null
/**
* @param value If true, then the Policy is enforced. If false, then any configuration is acceptable.
*/
@JvmName("mgvhkwvghrfroyem")
public suspend fun enforced(`value`: Output) {
this.enforced = value
}
/**
* @param value If true, then the Policy is enforced. If false, then any configuration is acceptable.
*/
@JvmName("cjakdcnqgnougdkm")
public suspend fun enforced(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enforced = mapped
}
internal fun build(): OrganizationPolicyBooleanPolicyArgs = OrganizationPolicyBooleanPolicyArgs(
enforced = enforced ?: throw PulumiNullFieldException("enforced"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy