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

com.pulumi.azure.policy.kotlin.inputs.PolicySetDefinitionPolicyDefinitionReferenceArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.policy.kotlin.inputs

import com.pulumi.azure.policy.inputs.PolicySetDefinitionPolicyDefinitionReferenceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property parameterValues Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.
 * @property policyDefinitionId The ID of the policy definition that will be included in this policy set definition.
 * @property policyGroupNames A list of names of the policy definition groups that this policy definition reference belongs to.
 * @property referenceId A unique ID within this policy set definition for this policy definition reference.
 */
public data class PolicySetDefinitionPolicyDefinitionReferenceArgs(
    public val parameterValues: Output? = null,
    public val policyDefinitionId: Output,
    public val policyGroupNames: Output>? = null,
    public val referenceId: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.policy.inputs.PolicySetDefinitionPolicyDefinitionReferenceArgs =
        com.pulumi.azure.policy.inputs.PolicySetDefinitionPolicyDefinitionReferenceArgs.builder()
            .parameterValues(parameterValues?.applyValue({ args0 -> args0 }))
            .policyDefinitionId(policyDefinitionId.applyValue({ args0 -> args0 }))
            .policyGroupNames(policyGroupNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .referenceId(referenceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicySetDefinitionPolicyDefinitionReferenceArgs].
 */
@PulumiTagMarker
public class PolicySetDefinitionPolicyDefinitionReferenceArgsBuilder internal constructor() {
    private var parameterValues: Output? = null

    private var policyDefinitionId: Output? = null

    private var policyGroupNames: Output>? = null

    private var referenceId: Output? = null

    /**
     * @param value Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.
     */
    @JvmName("swuvhdjcmyapnito")
    public suspend fun parameterValues(`value`: Output) {
        this.parameterValues = value
    }

    /**
     * @param value The ID of the policy definition that will be included in this policy set definition.
     */
    @JvmName("qfhknrhqcocrwdjx")
    public suspend fun policyDefinitionId(`value`: Output) {
        this.policyDefinitionId = value
    }

    /**
     * @param value A list of names of the policy definition groups that this policy definition reference belongs to.
     */
    @JvmName("gddshgcapfyvsgpx")
    public suspend fun policyGroupNames(`value`: Output>) {
        this.policyGroupNames = value
    }

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

    /**
     * @param values A list of names of the policy definition groups that this policy definition reference belongs to.
     */
    @JvmName("cshmdacrgpelohmv")
    public suspend fun policyGroupNames(values: List>) {
        this.policyGroupNames = Output.all(values)
    }

    /**
     * @param value A unique ID within this policy set definition for this policy definition reference.
     */
    @JvmName("gvgvtiqtegjgjswx")
    public suspend fun referenceId(`value`: Output) {
        this.referenceId = value
    }

    /**
     * @param value Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.
     */
    @JvmName("tqonlqvpshthxkyp")
    public suspend fun parameterValues(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterValues = mapped
    }

    /**
     * @param value The ID of the policy definition that will be included in this policy set definition.
     */
    @JvmName("witsakxuiqpogbxq")
    public suspend fun policyDefinitionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyDefinitionId = mapped
    }

    /**
     * @param value A list of names of the policy definition groups that this policy definition reference belongs to.
     */
    @JvmName("rljuqivtovblwyxq")
    public suspend fun policyGroupNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyGroupNames = mapped
    }

    /**
     * @param values A list of names of the policy definition groups that this policy definition reference belongs to.
     */
    @JvmName("lkoxtqgpcbicegji")
    public suspend fun policyGroupNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyGroupNames = mapped
    }

    /**
     * @param value A unique ID within this policy set definition for this policy definition reference.
     */
    @JvmName("aovktsqsxfwpjkbh")
    public suspend fun referenceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.referenceId = mapped
    }

    internal fun build(): PolicySetDefinitionPolicyDefinitionReferenceArgs =
        PolicySetDefinitionPolicyDefinitionReferenceArgs(
            parameterValues = parameterValues,
            policyDefinitionId = policyDefinitionId ?: throw PulumiNullFieldException("policyDefinitionId"),
            policyGroupNames = policyGroupNames,
            referenceId = referenceId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy