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

com.pulumi.gcp.securitycenter.kotlin.inputs.ProjectCustomModuleCustomConfigCustomOutputPropertyArgs.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.securitycenter.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securitycenter.inputs.ProjectCustomModuleCustomConfigCustomOutputPropertyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property name Name of the property for the custom output.
 * @property valueExpression The CEL expression for the custom output. A resource property can be specified
 * to return the value of the property or a text string enclosed in quotation marks.
 * Structure is documented below.
 */
public data class ProjectCustomModuleCustomConfigCustomOutputPropertyArgs(
    public val name: Output? = null,
    public val valueExpression: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.securitycenter.inputs.ProjectCustomModuleCustomConfigCustomOutputPropertyArgs =
        com.pulumi.gcp.securitycenter.inputs.ProjectCustomModuleCustomConfigCustomOutputPropertyArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .valueExpression(
                valueExpression?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ProjectCustomModuleCustomConfigCustomOutputPropertyArgs].
 */
@PulumiTagMarker
public class ProjectCustomModuleCustomConfigCustomOutputPropertyArgsBuilder internal constructor() {
    private var name: Output? = null

    private var valueExpression:
        Output? = null

    /**
     * @param value Name of the property for the custom output.
     */
    @JvmName("hvlibesyugrdnwmg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The CEL expression for the custom output. A resource property can be specified
     * to return the value of the property or a text string enclosed in quotation marks.
     * Structure is documented below.
     */
    @JvmName("okfcdqrckinmklfv")
    public suspend fun valueExpression(`value`: Output) {
        this.valueExpression = value
    }

    /**
     * @param value Name of the property for the custom output.
     */
    @JvmName("whbytbiqojxnajot")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The CEL expression for the custom output. A resource property can be specified
     * to return the value of the property or a text string enclosed in quotation marks.
     * Structure is documented below.
     */
    @JvmName("rdybfpyogpcrbood")
    public suspend fun valueExpression(`value`: ProjectCustomModuleCustomConfigCustomOutputPropertyValueExpressionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueExpression = mapped
    }

    /**
     * @param argument The CEL expression for the custom output. A resource property can be specified
     * to return the value of the property or a text string enclosed in quotation marks.
     * Structure is documented below.
     */
    @JvmName("tpkuduauyabgynhk")
    public suspend fun valueExpression(argument: suspend ProjectCustomModuleCustomConfigCustomOutputPropertyValueExpressionArgsBuilder.() -> Unit) {
        val toBeMapped =
            ProjectCustomModuleCustomConfigCustomOutputPropertyValueExpressionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.valueExpression = mapped
    }

    internal fun build(): ProjectCustomModuleCustomConfigCustomOutputPropertyArgs =
        ProjectCustomModuleCustomConfigCustomOutputPropertyArgs(
            name = name,
            valueExpression = valueExpression,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy