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

com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupCondition.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property alertContext A `alert_context` block as defined below.
 * @property alertRuleId A `alert_rule_id` block as defined below.
 * @property description A `description` block as defined below.
 * @property monitor A `monitor` block as defined below.
 * @property monitorService A `monitor_service` block as defined below.
 * @property severity A `severity` block as defined below.
 * @property targetResourceType A `target_resource_type` block as defined below.
 */
public data class ActionRuleActionGroupCondition(
    public val alertContext: ActionRuleActionGroupConditionAlertContext? = null,
    public val alertRuleId: ActionRuleActionGroupConditionAlertRuleId? = null,
    public val description: ActionRuleActionGroupConditionDescription? = null,
    public val monitor: ActionRuleActionGroupConditionMonitor? = null,
    public val monitorService: ActionRuleActionGroupConditionMonitorService? = null,
    public val severity: ActionRuleActionGroupConditionSeverity? = null,
    public val targetResourceType: ActionRuleActionGroupConditionTargetResourceType? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.ActionRuleActionGroupCondition):
            ActionRuleActionGroupCondition = ActionRuleActionGroupCondition(
            alertContext = javaType.alertContext().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionAlertContext.Companion.toKotlin(args0)
                })
            }).orElse(null),
            alertRuleId = javaType.alertRuleId().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionAlertRuleId.Companion.toKotlin(args0)
                })
            }).orElse(null),
            description = javaType.description().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionDescription.Companion.toKotlin(args0)
                })
            }).orElse(null),
            monitor = javaType.monitor().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionMonitor.Companion.toKotlin(args0)
                })
            }).orElse(null),
            monitorService = javaType.monitorService().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionMonitorService.Companion.toKotlin(args0)
                })
            }).orElse(null),
            severity = javaType.severity().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionSeverity.Companion.toKotlin(args0)
                })
            }).orElse(null),
            targetResourceType = javaType.targetResourceType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionRuleActionGroupConditionTargetResourceType.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy