com.pulumi.azure.apimanagement.kotlin.inputs.ApiDiagnosticFrontendRequestArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.apimanagement.kotlin.inputs
import com.pulumi.azure.apimanagement.inputs.ApiDiagnosticFrontendRequestArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property bodyBytes Number of payload bytes to log (up to 8192).
* @property dataMasking A `data_masking` block as defined below.
* @property headersToLogs Specifies a list of headers to log.
*/
public data class ApiDiagnosticFrontendRequestArgs(
public val bodyBytes: Output? = null,
public val dataMasking: Output? = null,
public val headersToLogs: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.inputs.ApiDiagnosticFrontendRequestArgs =
com.pulumi.azure.apimanagement.inputs.ApiDiagnosticFrontendRequestArgs.builder()
.bodyBytes(bodyBytes?.applyValue({ args0 -> args0 }))
.dataMasking(dataMasking?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.headersToLogs(headersToLogs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [ApiDiagnosticFrontendRequestArgs].
*/
@PulumiTagMarker
public class ApiDiagnosticFrontendRequestArgsBuilder internal constructor() {
private var bodyBytes: Output? = null
private var dataMasking: Output? = null
private var headersToLogs: Output>? = null
/**
* @param value Number of payload bytes to log (up to 8192).
*/
@JvmName("fhgbiqhikfxrngsh")
public suspend fun bodyBytes(`value`: Output) {
this.bodyBytes = value
}
/**
* @param value A `data_masking` block as defined below.
*/
@JvmName("hpmyxcfuwiixqbgb")
public suspend fun dataMasking(`value`: Output) {
this.dataMasking = value
}
/**
* @param value Specifies a list of headers to log.
*/
@JvmName("kkruetbhdcisixfo")
public suspend fun headersToLogs(`value`: Output>) {
this.headersToLogs = value
}
@JvmName("vtqrfvdnwnxyovtu")
public suspend fun headersToLogs(vararg values: Output) {
this.headersToLogs = Output.all(values.asList())
}
/**
* @param values Specifies a list of headers to log.
*/
@JvmName("vnnspeupiwkuetuq")
public suspend fun headersToLogs(values: List