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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.AccessLevelsAccessLevelCustomArgs.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.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelsAccessLevelCustomArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property expr Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
 * This page details the objects and attributes that are used to the build the CEL expressions for
 * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
 * Structure is documented below.
 */
public data class AccessLevelsAccessLevelCustomArgs(
    public val expr: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelsAccessLevelCustomArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelsAccessLevelCustomArgs.builder()
            .expr(expr.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AccessLevelsAccessLevelCustomArgs].
 */
@PulumiTagMarker
public class AccessLevelsAccessLevelCustomArgsBuilder internal constructor() {
    private var expr: Output? = null

    /**
     * @param value Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
     * This page details the objects and attributes that are used to the build the CEL expressions for
     * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
     * Structure is documented below.
     */
    @JvmName("msvrduumhxnpuanp")
    public suspend fun expr(`value`: Output) {
        this.expr = value
    }

    /**
     * @param value Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
     * This page details the objects and attributes that are used to the build the CEL expressions for
     * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
     * Structure is documented below.
     */
    @JvmName("wwtgfixrnrnhjhrn")
    public suspend fun expr(`value`: AccessLevelsAccessLevelCustomExprArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.expr = mapped
    }

    /**
     * @param argument Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language.
     * This page details the objects and attributes that are used to the build the CEL expressions for
     * custom access levels - https://cloud.google.com/access-context-manager/docs/custom-access-level-spec.
     * Structure is documented below.
     */
    @JvmName("aeaejulvtwrbocqv")
    public suspend fun expr(argument: suspend AccessLevelsAccessLevelCustomExprArgsBuilder.() -> Unit) {
        val toBeMapped = AccessLevelsAccessLevelCustomExprArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.expr = mapped
    }

    internal fun build(): AccessLevelsAccessLevelCustomArgs = AccessLevelsAccessLevelCustomArgs(
        expr = expr ?: throw PulumiNullFieldException("expr"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy