![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.alertsmanagement.kotlin.outputs.SuppressionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.alertsmanagement.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Action rule with suppression configuration
* @property conditions conditions on which alerts will be filtered
* @property createdAt Creation time of action rule. Date-Time in ISO-8601 format.
* @property createdBy Created by user name.
* @property description Description of action rule
* @property lastModifiedAt Last updated time of action rule. Date-Time in ISO-8601 format.
* @property lastModifiedBy Last modified by user name.
* @property scope scope on which action rule will apply
* @property status Indicates if the given action rule is enabled or disabled
* @property suppressionConfig suppression configuration for the action rule
* @property type Indicates type of action rule
* Expected value is 'Suppression'.
*/
public data class SuppressionResponse(
public val conditions: ConditionsResponse? = null,
public val createdAt: String,
public val createdBy: String,
public val description: String? = null,
public val lastModifiedAt: String,
public val lastModifiedBy: String,
public val scope: ScopeResponse? = null,
public val status: String? = null,
public val suppressionConfig: SuppressionConfigResponse,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.alertsmanagement.outputs.SuppressionResponse): SuppressionResponse = SuppressionResponse(
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.alertsmanagement.kotlin.outputs.ConditionsResponse.Companion.toKotlin(args0)
})
}).orElse(null),
createdAt = javaType.createdAt(),
createdBy = javaType.createdBy(),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
lastModifiedAt = javaType.lastModifiedAt(),
lastModifiedBy = javaType.lastModifiedBy(),
scope = javaType.scope().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.alertsmanagement.kotlin.outputs.ScopeResponse.Companion.toKotlin(args0)
})
}).orElse(null),
status = javaType.status().map({ args0 -> args0 }).orElse(null),
suppressionConfig = javaType.suppressionConfig().let({ args0 ->
com.pulumi.azurenative.alertsmanagement.kotlin.outputs.SuppressionConfigResponse.Companion.toKotlin(args0)
}),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy