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

com.pulumi.gcp.orgpolicy.kotlin.inputs.PolicyDryRunSpecRuleValuesArgs.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.13.1.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.PolicyDryRunSpecRuleValuesArgs.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 PolicyDryRunSpecRuleValuesArgs(
    public val allowedValues: Output>? = null,
    public val deniedValues: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.orgpolicy.inputs.PolicyDryRunSpecRuleValuesArgs =
        com.pulumi.gcp.orgpolicy.inputs.PolicyDryRunSpecRuleValuesArgs.builder()
            .allowedValues(allowedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .deniedValues(deniedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var deniedValues: Output>? = null

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

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

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

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

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

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

    /**
     * @param value List of values allowed at this resource.
     */
    @JvmName("ubcefinoustsyndj")
    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("hfjfdnexdrvyoemk")
    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("xvsneeemasesfaxi")
    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("kjqtjdesyfgfawmi")
    public suspend fun deniedValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deniedValues = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy