com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppLogsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.WindowsWebAppLogsArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property applicationLogs A `application_logs` block as defined above.
* @property detailedErrorMessages Should detailed error messages be enabled.
* @property failedRequestTracing Should tracing be enabled for failed requests.
* @property httpLogs A `http_logs` block as defined above.
*/
public data class WindowsWebAppLogsArgs(
public val applicationLogs: Output? = null,
public val detailedErrorMessages: Output? = null,
public val failedRequestTracing: Output? = null,
public val httpLogs: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.WindowsWebAppLogsArgs =
com.pulumi.azure.appservice.inputs.WindowsWebAppLogsArgs.builder()
.applicationLogs(applicationLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.detailedErrorMessages(detailedErrorMessages?.applyValue({ args0 -> args0 }))
.failedRequestTracing(failedRequestTracing?.applyValue({ args0 -> args0 }))
.httpLogs(httpLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [WindowsWebAppLogsArgs].
*/
@PulumiTagMarker
public class WindowsWebAppLogsArgsBuilder internal constructor() {
private var applicationLogs: Output? = null
private var detailedErrorMessages: Output? = null
private var failedRequestTracing: Output? = null
private var httpLogs: Output? = null
/**
* @param value A `application_logs` block as defined above.
*/
@JvmName("evsihxmjjfvbmwrg")
public suspend fun applicationLogs(`value`: Output) {
this.applicationLogs = value
}
/**
* @param value Should detailed error messages be enabled.
*/
@JvmName("hmpotrgdskqpqeit")
public suspend fun detailedErrorMessages(`value`: Output) {
this.detailedErrorMessages = value
}
/**
* @param value Should tracing be enabled for failed requests.
*/
@JvmName("ojfrnwipliucvffx")
public suspend fun failedRequestTracing(`value`: Output) {
this.failedRequestTracing = value
}
/**
* @param value A `http_logs` block as defined above.
*/
@JvmName("eodsatrrtlnjjmcq")
public suspend fun httpLogs(`value`: Output) {
this.httpLogs = value
}
/**
* @param value A `application_logs` block as defined above.
*/
@JvmName("iticrhnfxgfxkabx")
public suspend fun applicationLogs(`value`: WindowsWebAppLogsApplicationLogsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applicationLogs = mapped
}
/**
* @param argument A `application_logs` block as defined above.
*/
@JvmName("tkmidgglkpsvepxv")
public suspend fun applicationLogs(argument: suspend WindowsWebAppLogsApplicationLogsArgsBuilder.() -> Unit) {
val toBeMapped = WindowsWebAppLogsApplicationLogsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.applicationLogs = mapped
}
/**
* @param value Should detailed error messages be enabled.
*/
@JvmName("erugdwnfeyxrdcfr")
public suspend fun detailedErrorMessages(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.detailedErrorMessages = mapped
}
/**
* @param value Should tracing be enabled for failed requests.
*/
@JvmName("swvbfdolunimohgu")
public suspend fun failedRequestTracing(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failedRequestTracing = mapped
}
/**
* @param value A `http_logs` block as defined above.
*/
@JvmName("yagjljdibqmjiqfn")
public suspend fun httpLogs(`value`: WindowsWebAppLogsHttpLogsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpLogs = mapped
}
/**
* @param argument A `http_logs` block as defined above.
*/
@JvmName("blahkscgxphuffgm")
public suspend fun httpLogs(argument: suspend WindowsWebAppLogsHttpLogsArgsBuilder.() -> Unit) {
val toBeMapped = WindowsWebAppLogsHttpLogsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.httpLogs = mapped
}
internal fun build(): WindowsWebAppLogsArgs = WindowsWebAppLogsArgs(
applicationLogs = applicationLogs,
detailedErrorMessages = detailedErrorMessages,
failedRequestTracing = failedRequestTracing,
httpLogs = httpLogs,
)
}