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

com.pulumi.gcp.orgpolicy.kotlin.inputs.PolicySpecRuleValuesArgs.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.orgpolicy.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleValuesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedValues List of values allowed at this resource.
 * @property deniedValues List of values denied at this resource.
 */
public data class PolicySpecRuleValuesArgs(
    public val allowedValues: Output>? = null,
    public val deniedValues: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleValuesArgs =
        com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleValuesArgs.builder()
            .allowedValues(allowedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .deniedValues(deniedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PolicySpecRuleValuesArgs].
 */
@PulumiTagMarker
public class PolicySpecRuleValuesArgsBuilder internal constructor() {
    private var allowedValues: Output>? = null

    private var deniedValues: Output>? = null

    /**
     * @param value List of values allowed at this resource.
     */
    @JvmName("yyjxivixflbjrfkn")
    public suspend fun allowedValues(`value`: Output>) {
        this.allowedValues = value
    }

    @JvmName("rwmakcphvcpaytxa")
    public suspend fun allowedValues(vararg values: Output) {
        this.allowedValues = Output.all(values.asList())
    }

    /**
     * @param values List of values allowed at this resource.
     */
    @JvmName("ycrfujubvykkilqi")
    public suspend fun allowedValues(values: List>) {
        this.allowedValues = Output.all(values)
    }

    /**
     * @param value List of values denied at this resource.
     */
    @JvmName("oticwjdacehruaar")
    public suspend fun deniedValues(`value`: Output>) {
        this.deniedValues = value
    }

    @JvmName("pmesfxfbwptjvfbx")
    public suspend fun deniedValues(vararg values: Output) {
        this.deniedValues = Output.all(values.asList())
    }

    /**
     * @param values List of values denied at this resource.
     */
    @JvmName("lbitbqtvxpfwjldt")
    public suspend fun deniedValues(values: List>) {
        this.deniedValues = Output.all(values)
    }

    /**
     * @param value List of values allowed at this resource.
     */
    @JvmName("kqugmegyqsvfshhi")
    public suspend fun allowedValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedValues = mapped
    }

    /**
     * @param values List of values allowed at this resource.
     */
    @JvmName("ansxlnqudekwfarb")
    public suspend fun allowedValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedValues = mapped
    }

    /**
     * @param value List of values denied at this resource.
     */
    @JvmName("bjntcmddxangoxee")
    public suspend fun deniedValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deniedValues = mapped
    }

    /**
     * @param values List of values denied at this resource.
     */
    @JvmName("dfuranhtjemfejkb")
    public suspend fun deniedValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deniedValues = mapped
    }

    internal fun build(): PolicySpecRuleValuesArgs = PolicySpecRuleValuesArgs(
        allowedValues = allowedValues,
        deniedValues = deniedValues,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy