
com.pulumi.azurenative.insights.kotlin.inputs.WebtestLocationAvailabilityCriteriaArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.WebtestLocationAvailabilityCriteriaArgs.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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Specifies the metric alert rule criteria for a web test resource.
* @property componentId The Application Insights resource Id.
* @property failedLocationCount The number of failed locations.
* @property odataType specifies the type of the alert criteria.
* Expected value is 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria'.
* @property webTestId The Application Insights web test Id.
*/
public data class WebtestLocationAvailabilityCriteriaArgs(
public val componentId: Output,
public val failedLocationCount: Output,
public val odataType: Output,
public val webTestId: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.WebtestLocationAvailabilityCriteriaArgs =
com.pulumi.azurenative.insights.inputs.WebtestLocationAvailabilityCriteriaArgs.builder()
.componentId(componentId.applyValue({ args0 -> args0 }))
.failedLocationCount(failedLocationCount.applyValue({ args0 -> args0 }))
.odataType(odataType.applyValue({ args0 -> args0 }))
.webTestId(webTestId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebtestLocationAvailabilityCriteriaArgs].
*/
@PulumiTagMarker
public class WebtestLocationAvailabilityCriteriaArgsBuilder internal constructor() {
private var componentId: Output? = null
private var failedLocationCount: Output? = null
private var odataType: Output? = null
private var webTestId: Output? = null
/**
* @param value The Application Insights resource Id.
*/
@JvmName("ivmisqkiigqelwvb")
public suspend fun componentId(`value`: Output) {
this.componentId = value
}
/**
* @param value The number of failed locations.
*/
@JvmName("dmwrwymdocomnnnt")
public suspend fun failedLocationCount(`value`: Output) {
this.failedLocationCount = value
}
/**
* @param value specifies the type of the alert criteria.
* Expected value is 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria'.
*/
@JvmName("qddbwymavhiilgcc")
public suspend fun odataType(`value`: Output) {
this.odataType = value
}
/**
* @param value The Application Insights web test Id.
*/
@JvmName("ynsfnhhahexhnyfr")
public suspend fun webTestId(`value`: Output) {
this.webTestId = value
}
/**
* @param value The Application Insights resource Id.
*/
@JvmName("sgmacqorpbqgdjfe")
public suspend fun componentId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.componentId = mapped
}
/**
* @param value The number of failed locations.
*/
@JvmName("ytyvyfmmeeodmhgu")
public suspend fun failedLocationCount(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.failedLocationCount = mapped
}
/**
* @param value specifies the type of the alert criteria.
* Expected value is 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria'.
*/
@JvmName("myepcpurqkviwplk")
public suspend fun odataType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.odataType = mapped
}
/**
* @param value The Application Insights web test Id.
*/
@JvmName("ylucmdypfcqwvygt")
public suspend fun webTestId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.webTestId = mapped
}
internal fun build(): WebtestLocationAvailabilityCriteriaArgs =
WebtestLocationAvailabilityCriteriaArgs(
componentId = componentId ?: throw PulumiNullFieldException("componentId"),
failedLocationCount = failedLocationCount ?: throw PulumiNullFieldException("failedLocationCount"),
odataType = odataType ?: throw PulumiNullFieldException("odataType"),
webTestId = webTestId ?: throw PulumiNullFieldException("webTestId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy