
com.pulumi.azure.appinsights.kotlin.inputs.StandardWebTestValidationRulesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.appinsights.kotlin.inputs
import com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property content A `content` block as defined above.
* @property expectedStatusCode The expected status code of the response. Default is '200', '0' means 'response code < 400'
* @property sslCertRemainingLifetime The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
* @property sslCheckEnabled Should the SSL check be enabled?
*/
public data class StandardWebTestValidationRulesArgs(
public val content: Output? = null,
public val expectedStatusCode: Output? = null,
public val sslCertRemainingLifetime: Output? = null,
public val sslCheckEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesArgs =
com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesArgs.builder()
.content(content?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.expectedStatusCode(expectedStatusCode?.applyValue({ args0 -> args0 }))
.sslCertRemainingLifetime(sslCertRemainingLifetime?.applyValue({ args0 -> args0 }))
.sslCheckEnabled(sslCheckEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StandardWebTestValidationRulesArgs].
*/
@PulumiTagMarker
public class StandardWebTestValidationRulesArgsBuilder internal constructor() {
private var content: Output? = null
private var expectedStatusCode: Output? = null
private var sslCertRemainingLifetime: Output? = null
private var sslCheckEnabled: Output? = null
/**
* @param value A `content` block as defined above.
*/
@JvmName("sdbfqmmsjudnpghr")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value The expected status code of the response. Default is '200', '0' means 'response code < 400'
*/
@JvmName("oogajhcctggyrvlr")
public suspend fun expectedStatusCode(`value`: Output) {
this.expectedStatusCode = value
}
/**
* @param value The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
*/
@JvmName("etfdtmhacvegbpmy")
public suspend fun sslCertRemainingLifetime(`value`: Output) {
this.sslCertRemainingLifetime = value
}
/**
* @param value Should the SSL check be enabled?
*/
@JvmName("pkluretqlmuxlmbs")
public suspend fun sslCheckEnabled(`value`: Output) {
this.sslCheckEnabled = value
}
/**
* @param value A `content` block as defined above.
*/
@JvmName("rqmupyaqatrvursc")
public suspend fun content(`value`: StandardWebTestValidationRulesContentArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.content = mapped
}
/**
* @param argument A `content` block as defined above.
*/
@JvmName("syscflsxtfgknvvn")
public suspend
fun content(argument: suspend StandardWebTestValidationRulesContentArgsBuilder.() -> Unit) {
val toBeMapped = StandardWebTestValidationRulesContentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.content = mapped
}
/**
* @param value The expected status code of the response. Default is '200', '0' means 'response code < 400'
*/
@JvmName("vkgdyqopklawauxd")
public suspend fun expectedStatusCode(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expectedStatusCode = mapped
}
/**
* @param value The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
*/
@JvmName("lrualjwhkktqxxlc")
public suspend fun sslCertRemainingLifetime(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sslCertRemainingLifetime = mapped
}
/**
* @param value Should the SSL check be enabled?
*/
@JvmName("hgqpdbhsjpjbrpen")
public suspend fun sslCheckEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sslCheckEnabled = mapped
}
internal fun build(): StandardWebTestValidationRulesArgs = StandardWebTestValidationRulesArgs(
content = content,
expectedStatusCode = expectedStatusCode,
sslCertRemainingLifetime = sslCertRemainingLifetime,
sslCheckEnabled = sslCheckEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy