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

com.pulumi.gcp.monitoring.kotlin.inputs.UptimeCheckConfigContentMatcherJsonPathMatcherArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.monitoring.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigContentMatcherJsonPathMatcherArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property jsonMatcher Options to perform JSONPath content matching.
 * Default value is `EXACT_MATCH`.
 * Possible values are: `EXACT_MATCH`, `REGEX_MATCH`.
 * @property jsonPath JSONPath within the response output pointing to the expected `ContentMatcher::content` to match against.
 */
public data class UptimeCheckConfigContentMatcherJsonPathMatcherArgs(
    public val jsonMatcher: Output? = null,
    public val jsonPath: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigContentMatcherJsonPathMatcherArgs =
        com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigContentMatcherJsonPathMatcherArgs.builder()
            .jsonMatcher(jsonMatcher?.applyValue({ args0 -> args0 }))
            .jsonPath(jsonPath.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UptimeCheckConfigContentMatcherJsonPathMatcherArgs].
 */
@PulumiTagMarker
public class UptimeCheckConfigContentMatcherJsonPathMatcherArgsBuilder internal constructor() {
    private var jsonMatcher: Output? = null

    private var jsonPath: Output? = null

    /**
     * @param value Options to perform JSONPath content matching.
     * Default value is `EXACT_MATCH`.
     * Possible values are: `EXACT_MATCH`, `REGEX_MATCH`.
     */
    @JvmName("ppeqrvywxslqblgw")
    public suspend fun jsonMatcher(`value`: Output) {
        this.jsonMatcher = value
    }

    /**
     * @param value JSONPath within the response output pointing to the expected `ContentMatcher::content` to match against.
     */
    @JvmName("ampmvaxrssiahafm")
    public suspend fun jsonPath(`value`: Output) {
        this.jsonPath = value
    }

    /**
     * @param value Options to perform JSONPath content matching.
     * Default value is `EXACT_MATCH`.
     * Possible values are: `EXACT_MATCH`, `REGEX_MATCH`.
     */
    @JvmName("bklerhduqctcshxt")
    public suspend fun jsonMatcher(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jsonMatcher = mapped
    }

    /**
     * @param value JSONPath within the response output pointing to the expected `ContentMatcher::content` to match against.
     */
    @JvmName("bknqjhjylyvqtlpv")
    public suspend fun jsonPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jsonPath = mapped
    }

    internal fun build(): UptimeCheckConfigContentMatcherJsonPathMatcherArgs =
        UptimeCheckConfigContentMatcherJsonPathMatcherArgs(
            jsonMatcher = jsonMatcher,
            jsonPath = jsonPath ?: throw PulumiNullFieldException("jsonPath"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy