
com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesContentValidationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesContentValidationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The collection of content validation properties
* @property contentMatch Content to look for in the return of the WebTest. Must not be null or empty.
* @property ignoreCase When set, this value makes the ContentMatch validation case insensitive.
* @property passIfTextFound When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
*/
public data class WebTestPropertiesContentValidationArgs(
public val contentMatch: Output? = null,
public val ignoreCase: Output? = null,
public val passIfTextFound: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.WebTestPropertiesContentValidationArgs =
com.pulumi.azurenative.insights.inputs.WebTestPropertiesContentValidationArgs.builder()
.contentMatch(contentMatch?.applyValue({ args0 -> args0 }))
.ignoreCase(ignoreCase?.applyValue({ args0 -> args0 }))
.passIfTextFound(passIfTextFound?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebTestPropertiesContentValidationArgs].
*/
@PulumiTagMarker
public class WebTestPropertiesContentValidationArgsBuilder internal constructor() {
private var contentMatch: Output? = null
private var ignoreCase: Output? = null
private var passIfTextFound: Output? = null
/**
* @param value Content to look for in the return of the WebTest. Must not be null or empty.
*/
@JvmName("jurmjqtdhnydwhve")
public suspend fun contentMatch(`value`: Output) {
this.contentMatch = value
}
/**
* @param value When set, this value makes the ContentMatch validation case insensitive.
*/
@JvmName("euucoinyiekksgyk")
public suspend fun ignoreCase(`value`: Output) {
this.ignoreCase = value
}
/**
* @param value When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
*/
@JvmName("seykftntaagqkspv")
public suspend fun passIfTextFound(`value`: Output) {
this.passIfTextFound = value
}
/**
* @param value Content to look for in the return of the WebTest. Must not be null or empty.
*/
@JvmName("oodeakspvhmircsf")
public suspend fun contentMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contentMatch = mapped
}
/**
* @param value When set, this value makes the ContentMatch validation case insensitive.
*/
@JvmName("rtuynpkkjyycwrja")
public suspend fun ignoreCase(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ignoreCase = mapped
}
/**
* @param value When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
*/
@JvmName("fmkudeslvnvxuwbe")
public suspend fun passIfTextFound(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.passIfTextFound = mapped
}
internal fun build(): WebTestPropertiesContentValidationArgs =
WebTestPropertiesContentValidationArgs(
contentMatch = contentMatch,
ignoreCase = ignoreCase,
passIfTextFound = passIfTextFound,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy