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

com.pulumi.azure.appinsights.kotlin.inputs.StandardWebTestValidationRulesContentArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appinsights.kotlin.inputs

import com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesContentArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property contentMatch A string value containing the content to match on.
 * @property ignoreCase Ignore the casing in the `content_match` value.
 * @property passIfTextFound If the content of `content_match` is found, pass the test. If set to `false`, the WebTest is failing if the content of `content_match` is found.
 */
public data class StandardWebTestValidationRulesContentArgs(
    public val contentMatch: Output,
    public val ignoreCase: Output? = null,
    public val passIfTextFound: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesContentArgs =
        com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesContentArgs.builder()
            .contentMatch(contentMatch.applyValue({ args0 -> args0 }))
            .ignoreCase(ignoreCase?.applyValue({ args0 -> args0 }))
            .passIfTextFound(passIfTextFound?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StandardWebTestValidationRulesContentArgs].
 */
@PulumiTagMarker
public class StandardWebTestValidationRulesContentArgsBuilder internal constructor() {
    private var contentMatch: Output? = null

    private var ignoreCase: Output? = null

    private var passIfTextFound: Output? = null

    /**
     * @param value A string value containing the content to match on.
     */
    @JvmName("csuaxwlmqgdolobn")
    public suspend fun contentMatch(`value`: Output) {
        this.contentMatch = value
    }

    /**
     * @param value Ignore the casing in the `content_match` value.
     */
    @JvmName("qynlkrdbnycpicnk")
    public suspend fun ignoreCase(`value`: Output) {
        this.ignoreCase = value
    }

    /**
     * @param value If the content of `content_match` is found, pass the test. If set to `false`, the WebTest is failing if the content of `content_match` is found.
     */
    @JvmName("uhhvcoerpsjsvuod")
    public suspend fun passIfTextFound(`value`: Output) {
        this.passIfTextFound = value
    }

    /**
     * @param value A string value containing the content to match on.
     */
    @JvmName("rsuyrteuehhlwmka")
    public suspend fun contentMatch(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentMatch = mapped
    }

    /**
     * @param value Ignore the casing in the `content_match` value.
     */
    @JvmName("yqlvawufjuqibyoo")
    public suspend fun ignoreCase(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreCase = mapped
    }

    /**
     * @param value If the content of `content_match` is found, pass the test. If set to `false`, the WebTest is failing if the content of `content_match` is found.
     */
    @JvmName("bmvurixbtnusapei")
    public suspend fun passIfTextFound(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passIfTextFound = mapped
    }

    internal fun build(): StandardWebTestValidationRulesContentArgs =
        StandardWebTestValidationRulesContentArgs(
            contentMatch = contentMatch ?: throw PulumiNullFieldException("contentMatch"),
            ignoreCase = ignoreCase,
            passIfTextFound = passIfTextFound,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy