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

com.pulumi.azurenative.insights.kotlin.inputs.RuleManagementEventDataSourceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.RuleManagementEventDataSourceArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.
 * @property claims the claims.
 * @property eventName the event name.
 * @property eventSource the event source.
 * @property legacyResourceId the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
 * @property level the level.
 * @property metricNamespace the namespace of the metric.
 * @property odataType specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
 * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'.
 * @property operationName The name of the operation that should be checked for. If no name is provided, any operation will match.
 * @property resourceGroupName the resource group name.
 * @property resourceLocation the location of the resource.
 * @property resourceProviderName the resource provider name.
 * @property resourceUri the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
 * @property status The status of the operation that should be checked for. If no status is provided, any status will match.
 * @property subStatus the substatus.
 */
public data class RuleManagementEventDataSourceArgs(
    public val claims: Output? = null,
    public val eventName: Output? = null,
    public val eventSource: Output? = null,
    public val legacyResourceId: Output? = null,
    public val level: Output? = null,
    public val metricNamespace: Output? = null,
    public val odataType: Output,
    public val operationName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val resourceLocation: Output? = null,
    public val resourceProviderName: Output? = null,
    public val resourceUri: Output? = null,
    public val status: Output? = null,
    public val subStatus: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.RuleManagementEventDataSourceArgs =
        com.pulumi.azurenative.insights.inputs.RuleManagementEventDataSourceArgs.builder()
            .claims(claims?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .eventName(eventName?.applyValue({ args0 -> args0 }))
            .eventSource(eventSource?.applyValue({ args0 -> args0 }))
            .legacyResourceId(legacyResourceId?.applyValue({ args0 -> args0 }))
            .level(level?.applyValue({ args0 -> args0 }))
            .metricNamespace(metricNamespace?.applyValue({ args0 -> args0 }))
            .odataType(odataType.applyValue({ args0 -> args0 }))
            .operationName(operationName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .resourceLocation(resourceLocation?.applyValue({ args0 -> args0 }))
            .resourceProviderName(resourceProviderName?.applyValue({ args0 -> args0 }))
            .resourceUri(resourceUri?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0 }))
            .subStatus(subStatus?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RuleManagementEventDataSourceArgs].
 */
@PulumiTagMarker
public class RuleManagementEventDataSourceArgsBuilder internal constructor() {
    private var claims: Output? = null

    private var eventName: Output? = null

    private var eventSource: Output? = null

    private var legacyResourceId: Output? = null

    private var level: Output? = null

    private var metricNamespace: Output? = null

    private var odataType: Output? = null

    private var operationName: Output? = null

    private var resourceGroupName: Output? = null

    private var resourceLocation: Output? = null

    private var resourceProviderName: Output? = null

    private var resourceUri: Output? = null

    private var status: Output? = null

    private var subStatus: Output? = null

    /**
     * @param value the claims.
     */
    @JvmName("tqlgatriigjiawfa")
    public suspend fun claims(`value`: Output) {
        this.claims = value
    }

    /**
     * @param value the event name.
     */
    @JvmName("mjmvtlbsebwmqupk")
    public suspend fun eventName(`value`: Output) {
        this.eventName = value
    }

    /**
     * @param value the event source.
     */
    @JvmName("xfxpddtstcfjwqio")
    public suspend fun eventSource(`value`: Output) {
        this.eventSource = value
    }

    /**
     * @param value the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     */
    @JvmName("rpgxtdtnutbtwhta")
    public suspend fun legacyResourceId(`value`: Output) {
        this.legacyResourceId = value
    }

    /**
     * @param value the level.
     */
    @JvmName("oaathkmfgdjulnfv")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value the namespace of the metric.
     */
    @JvmName("fxvvghugpoppsjld")
    public suspend fun metricNamespace(`value`: Output) {
        this.metricNamespace = value
    }

    /**
     * @param value specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
     * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'.
     */
    @JvmName("eteympykupxtgkxt")
    public suspend fun odataType(`value`: Output) {
        this.odataType = value
    }

    /**
     * @param value The name of the operation that should be checked for. If no name is provided, any operation will match.
     */
    @JvmName("osaprbjnbvpjeyjx")
    public suspend fun operationName(`value`: Output) {
        this.operationName = value
    }

    /**
     * @param value the resource group name.
     */
    @JvmName("slgkvyiqhryjrbjo")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value the location of the resource.
     */
    @JvmName("thencgfqxqqljkuw")
    public suspend fun resourceLocation(`value`: Output) {
        this.resourceLocation = value
    }

    /**
     * @param value the resource provider name.
     */
    @JvmName("wydtinddedfygrdb")
    public suspend fun resourceProviderName(`value`: Output) {
        this.resourceProviderName = value
    }

    /**
     * @param value the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     */
    @JvmName("kjejbrlcopwydysi")
    public suspend fun resourceUri(`value`: Output) {
        this.resourceUri = value
    }

    /**
     * @param value The status of the operation that should be checked for. If no status is provided, any status will match.
     */
    @JvmName("nroudfqttmduspxn")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value the substatus.
     */
    @JvmName("uopssicpimftocls")
    public suspend fun subStatus(`value`: Output) {
        this.subStatus = value
    }

    /**
     * @param value the claims.
     */
    @JvmName("jjhhffdbebnpwptx")
    public suspend fun claims(`value`: RuleManagementEventClaimsDataSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.claims = mapped
    }

    /**
     * @param argument the claims.
     */
    @JvmName("ptauhjlegveyniht")
    public suspend fun claims(argument: suspend RuleManagementEventClaimsDataSourceArgsBuilder.() -> Unit) {
        val toBeMapped = RuleManagementEventClaimsDataSourceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param value the event name.
     */
    @JvmName("xvtgevmaexhtgwgp")
    public suspend fun eventName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventName = mapped
    }

    /**
     * @param value the event source.
     */
    @JvmName("jjfprikatklkjnry")
    public suspend fun eventSource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventSource = mapped
    }

    /**
     * @param value the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     */
    @JvmName("gbavdvknvfswoapy")
    public suspend fun legacyResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.legacyResourceId = mapped
    }

    /**
     * @param value the level.
     */
    @JvmName("rnacxkuddofvwegu")
    public suspend fun level(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value the namespace of the metric.
     */
    @JvmName("aennnahhaljldyub")
    public suspend fun metricNamespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricNamespace = mapped
    }

    /**
     * @param value specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
     * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource'.
     */
    @JvmName("ppmjpygfpfhfowwm")
    public suspend fun odataType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.odataType = mapped
    }

    /**
     * @param value The name of the operation that should be checked for. If no name is provided, any operation will match.
     */
    @JvmName("ffoivkypdisslhnm")
    public suspend fun operationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.operationName = mapped
    }

    /**
     * @param value the resource group name.
     */
    @JvmName("byllwvrjoumivhqi")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value the location of the resource.
     */
    @JvmName("ptfqvuwriffimrkf")
    public suspend fun resourceLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceLocation = mapped
    }

    /**
     * @param value the resource provider name.
     */
    @JvmName("ccsucshtmidabcco")
    public suspend fun resourceProviderName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceProviderName = mapped
    }

    /**
     * @param value the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     */
    @JvmName("eneoymtfxqclcmwi")
    public suspend fun resourceUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceUri = mapped
    }

    /**
     * @param value The status of the operation that should be checked for. If no status is provided, any status will match.
     */
    @JvmName("pynqsjegrptrgocs")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value the substatus.
     */
    @JvmName("qgvtkoqgfuxqvcan")
    public suspend fun subStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subStatus = mapped
    }

    internal fun build(): RuleManagementEventDataSourceArgs = RuleManagementEventDataSourceArgs(
        claims = claims,
        eventName = eventName,
        eventSource = eventSource,
        legacyResourceId = legacyResourceId,
        level = level,
        metricNamespace = metricNamespace,
        odataType = odataType ?: throw PulumiNullFieldException("odataType"),
        operationName = operationName,
        resourceGroupName = resourceGroupName,
        resourceLocation = resourceLocation,
        resourceProviderName = resourceProviderName,
        resourceUri = resourceUri,
        status = status,
        subStatus = subStatus,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy