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

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

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewayProbeMatchArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property body A snippet from the Response Body which must be present in the Response.
 * @property statusCodes A list of allowed status codes for this Health Probe.
 */
public data class ApplicationGatewayProbeMatchArgs(
    public val body: Output? = null,
    public val statusCodes: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayProbeMatchArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayProbeMatchArgs.builder()
            .body(body?.applyValue({ args0 -> args0 }))
            .statusCodes(statusCodes.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ApplicationGatewayProbeMatchArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayProbeMatchArgsBuilder internal constructor() {
    private var body: Output? = null

    private var statusCodes: Output>? = null

    /**
     * @param value A snippet from the Response Body which must be present in the Response.
     */
    @JvmName("fixuoeyegermdsof")
    public suspend fun body(`value`: Output) {
        this.body = value
    }

    /**
     * @param value A list of allowed status codes for this Health Probe.
     */
    @JvmName("uerxrornucxealcw")
    public suspend fun statusCodes(`value`: Output>) {
        this.statusCodes = value
    }

    @JvmName("oftgbaukmsrarfpb")
    public suspend fun statusCodes(vararg values: Output) {
        this.statusCodes = Output.all(values.asList())
    }

    /**
     * @param values A list of allowed status codes for this Health Probe.
     */
    @JvmName("kutqeuisvvikjdxx")
    public suspend fun statusCodes(values: List>) {
        this.statusCodes = Output.all(values)
    }

    /**
     * @param value A snippet from the Response Body which must be present in the Response.
     */
    @JvmName("yqkucxpsfoxqvqot")
    public suspend fun body(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.body = mapped
    }

    /**
     * @param value A list of allowed status codes for this Health Probe.
     */
    @JvmName("hirpfpgfgisowisf")
    public suspend fun statusCodes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statusCodes = mapped
    }

    /**
     * @param values A list of allowed status codes for this Health Probe.
     */
    @JvmName("fwrurhkuocmqsrrj")
    public suspend fun statusCodes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statusCodes = mapped
    }

    internal fun build(): ApplicationGatewayProbeMatchArgs = ApplicationGatewayProbeMatchArgs(
        body = body,
        statusCodes = statusCodes ?: throw PulumiNullFieldException("statusCodes"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy