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

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>) {
        this.headersToLogs = Output.all(values)
    }

    /**
     * @param value Number of payload bytes to log (up to 8192).
     */
    @JvmName("jjtpubcutjbomxkn")
    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("phoghbfxgqgdhmnl")
    public suspend fun dataMasking(`value`: ApiDiagnosticFrontendRequestDataMaskingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataMasking = mapped
    }

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

    /**
     * @param value Specifies a list of headers to log.
     */
    @JvmName("bhwwivnjijbflacy")
    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("kidcwwxhxrixbfdr")
    public suspend fun headersToLogs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headersToLogs = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy