com.pulumi.azure.appinsights.kotlin.inputs.StandardWebTestRequestArgs.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.StandardWebTestRequestArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property body The WebTest request body.
* @property followRedirectsEnabled Should the following of redirects be enabled? Defaults to `true`.
* @property headers One or more `header` blocks as defined above.
* @property httpVerb Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'. Defaults to `GET`.
* @property parseDependentRequestsEnabled Should the parsing of dependend requests be enabled? Defaults to `true`.
* @property url The WebTest request URL.
*/
public data class StandardWebTestRequestArgs(
public val body: Output? = null,
public val followRedirectsEnabled: Output? = null,
public val headers: Output>? = null,
public val httpVerb: Output? = null,
public val parseDependentRequestsEnabled: Output? = null,
public val url: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appinsights.inputs.StandardWebTestRequestArgs =
com.pulumi.azure.appinsights.inputs.StandardWebTestRequestArgs.builder()
.body(body?.applyValue({ args0 -> args0 }))
.followRedirectsEnabled(followRedirectsEnabled?.applyValue({ args0 -> args0 }))
.headers(
headers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.httpVerb(httpVerb?.applyValue({ args0 -> args0 }))
.parseDependentRequestsEnabled(parseDependentRequestsEnabled?.applyValue({ args0 -> args0 }))
.url(url.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StandardWebTestRequestArgs].
*/
@PulumiTagMarker
public class StandardWebTestRequestArgsBuilder internal constructor() {
private var body: Output? = null
private var followRedirectsEnabled: Output? = null
private var headers: Output>? = null
private var httpVerb: Output? = null
private var parseDependentRequestsEnabled: Output? = null
private var url: Output? = null
/**
* @param value The WebTest request body.
*/
@JvmName("avxbbdrqrtkfoopb")
public suspend fun body(`value`: Output) {
this.body = value
}
/**
* @param value Should the following of redirects be enabled? Defaults to `true`.
*/
@JvmName("mxmcitrxgcjvjrfg")
public suspend fun followRedirectsEnabled(`value`: Output) {
this.followRedirectsEnabled = value
}
/**
* @param value One or more `header` blocks as defined above.
*/
@JvmName("qyqwvpyhnlvihyba")
public suspend fun headers(`value`: Output>) {
this.headers = value
}
@JvmName("ospyncsihrspovax")
public suspend fun headers(vararg values: Output) {
this.headers = Output.all(values.asList())
}
/**
* @param values One or more `header` blocks as defined above.
*/
@JvmName("hbphssxtrtqxuqjh")
public suspend fun headers(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy