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

com.pulumi.azure.monitoring.kotlin.inputs.ActionRuleSuppressionScopeArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionScopeArgs.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 resourceIds A list of resource IDs of the given scope type which will be the target of action rule.
 * @property type Specifies the type of target scope. Possible values are `ResourceGroup` and `Resource`.
 */
public data class ActionRuleSuppressionScopeArgs(
    public val resourceIds: Output>,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionScopeArgs =
        com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionScopeArgs.builder()
            .resourceIds(resourceIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output? = null

    /**
     * @param value A list of resource IDs of the given scope type which will be the target of action rule.
     */
    @JvmName("tvbpqntilodkleni")
    public suspend fun resourceIds(`value`: Output>) {
        this.resourceIds = value
    }

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

    /**
     * @param values A list of resource IDs of the given scope type which will be the target of action rule.
     */
    @JvmName("etuhwjcrchmqfxym")
    public suspend fun resourceIds(values: List>) {
        this.resourceIds = Output.all(values)
    }

    /**
     * @param value Specifies the type of target scope. Possible values are `ResourceGroup` and `Resource`.
     */
    @JvmName("axbfxdhqniqcujwf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A list of resource IDs of the given scope type which will be the target of action rule.
     */
    @JvmName("ihmevckjnmmwktxv")
    public suspend fun resourceIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceIds = mapped
    }

    /**
     * @param values A list of resource IDs of the given scope type which will be the target of action rule.
     */
    @JvmName("tpupxrupwckbdvlv")
    public suspend fun resourceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceIds = mapped
    }

    /**
     * @param value Specifies the type of target scope. Possible values are `ResourceGroup` and `Resource`.
     */
    @JvmName("qmrsyxqwkdvwluwp")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ActionRuleSuppressionScopeArgs = ActionRuleSuppressionScopeArgs(
        resourceIds = resourceIds ?: throw PulumiNullFieldException("resourceIds"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy