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

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

package com.pulumi.azure.apimanagement.kotlin.inputs

import com.pulumi.azure.apimanagement.inputs.DiagnosticFrontendResponseArgs.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 DiagnosticFrontendResponseArgs(
    public val bodyBytes: Output? = null,
    public val dataMasking: Output? = null,
    public val headersToLogs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.apimanagement.inputs.DiagnosticFrontendResponseArgs =
        com.pulumi.azure.apimanagement.inputs.DiagnosticFrontendResponseArgs.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 [DiagnosticFrontendResponseArgs].
 */
@PulumiTagMarker
public class DiagnosticFrontendResponseArgsBuilder 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("tacighjaqwbxmdab")
    public suspend fun bodyBytes(`value`: Output) {
        this.bodyBytes = value
    }

    /**
     * @param value A `data_masking` block as defined below.
     */
    @JvmName("acxrmatqflfwvdsi")
    public suspend fun dataMasking(`value`: Output) {
        this.dataMasking = value
    }

    /**
     * @param value Specifies a list of headers to log.
     */
    @JvmName("xgfxcvhnfrwmsmql")
    public suspend fun headersToLogs(`value`: Output>) {
        this.headersToLogs = value
    }

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

    /**
     * @param values Specifies a list of headers to log.
     */
    @JvmName("jvmhebwjquaqrtal")
    public suspend fun headersToLogs(values: List>) {
        this.headersToLogs = Output.all(values)
    }

    /**
     * @param value Number of payload bytes to log (up to 8192).
     */
    @JvmName("tdwnctsegiggvppk")
    public suspend fun bodyBytes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bodyBytes = mapped
    }

    /**
     * @param value A `data_masking` block as defined below.
     */
    @JvmName("vidruhniobhlynmj")
    public suspend fun dataMasking(`value`: DiagnosticFrontendResponseDataMaskingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataMasking = mapped
    }

    /**
     * @param argument A `data_masking` block as defined below.
     */
    @JvmName("dkygxjxdylwhfpfq")
    public suspend
    fun dataMasking(argument: suspend DiagnosticFrontendResponseDataMaskingArgsBuilder.() -> Unit) {
        val toBeMapped = DiagnosticFrontendResponseDataMaskingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dataMasking = mapped
    }

    /**
     * @param value Specifies a list of headers to log.
     */
    @JvmName("aeyrcgoecnggxaav")
    public suspend fun headersToLogs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headersToLogs = mapped
    }

    /**
     * @param values Specifies a list of headers to log.
     */
    @JvmName("nhjutdldldbdatjx")
    public suspend fun headersToLogs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headersToLogs = mapped
    }

    internal fun build(): DiagnosticFrontendResponseArgs = DiagnosticFrontendResponseArgs(
        bodyBytes = bodyBytes,
        dataMasking = dataMasking,
        headersToLogs = headersToLogs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy