com.pulumi.gcp.monitoring.kotlin.outputs.UptimeCheckConfigContentMatcher.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.monitoring.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property content String or regex content to match (max 1024 bytes)
* @property jsonPathMatcher Information needed to perform a JSONPath content match. Used for `ContentMatcherOption::MATCHES_JSON_PATH` and `ContentMatcherOption::NOT_MATCHES_JSON_PATH`.
* Structure is documented below.
* @property matcher The type of content matcher that will be applied to the server output, compared to the content string when the check is run.
* Default value is `CONTAINS_STRING`.
* Possible values are: `CONTAINS_STRING`, `NOT_CONTAINS_STRING`, `MATCHES_REGEX`, `NOT_MATCHES_REGEX`, `MATCHES_JSON_PATH`, `NOT_MATCHES_JSON_PATH`.
*/
public data class UptimeCheckConfigContentMatcher(
public val content: String,
public val jsonPathMatcher: UptimeCheckConfigContentMatcherJsonPathMatcher? = null,
public val matcher: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.UptimeCheckConfigContentMatcher): UptimeCheckConfigContentMatcher = UptimeCheckConfigContentMatcher(
content = javaType.content(),
jsonPathMatcher = javaType.jsonPathMatcher().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.UptimeCheckConfigContentMatcherJsonPathMatcher.Companion.toKotlin(args0)
})
}).orElse(null),
matcher = javaType.matcher().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy