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

com.pulumi.azure.apimanagement.kotlin.inputs.DiagnosticFrontendRequestDataMaskingArgs.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.DiagnosticFrontendRequestDataMaskingArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property headers A `headers` block as defined below.
 * @property queryParams A `query_params` block as defined below.
 */
public data class DiagnosticFrontendRequestDataMaskingArgs(
    public val headers: Output>? = null,
    public val queryParams: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.apimanagement.inputs.DiagnosticFrontendRequestDataMaskingArgs =
        com.pulumi.azure.apimanagement.inputs.DiagnosticFrontendRequestDataMaskingArgs.builder()
            .headers(
                headers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .queryParams(
                queryParams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DiagnosticFrontendRequestDataMaskingArgs].
 */
@PulumiTagMarker
public class DiagnosticFrontendRequestDataMaskingArgsBuilder internal constructor() {
    private var headers: Output>? = null

    private var queryParams: Output>? = null

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

    @JvmName("yxjkvlqpvhuiodik")
    public suspend fun headers(
        vararg
        values: Output,
    ) {
        this.headers = Output.all(values.asList())
    }

    /**
     * @param values A `headers` block as defined below.
     */
    @JvmName("bfwjkhntqjsnwwvd")
    public suspend fun headers(values: List>) {
        this.headers = Output.all(values)
    }

    /**
     * @param value A `query_params` block as defined below.
     */
    @JvmName("vavdnpajiykyxaiw")
    public suspend
    fun queryParams(`value`: Output>) {
        this.queryParams = value
    }

    @JvmName("jgaddaaoslobalva")
    public suspend fun queryParams(
        vararg
        values: Output,
    ) {
        this.queryParams = Output.all(values.asList())
    }

    /**
     * @param values A `query_params` block as defined below.
     */
    @JvmName("lleoplimpxxmnkna")
    public suspend
    fun queryParams(values: List>) {
        this.queryParams = Output.all(values)
    }

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

    /**
     * @param argument A `headers` block as defined below.
     */
    @JvmName("biikbleeimxwglpm")
    public suspend
    fun headers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DiagnosticFrontendRequestDataMaskingHeaderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headers = mapped
    }

    /**
     * @param argument A `headers` block as defined below.
     */
    @JvmName("qvrilvwhygtnqopr")
    public suspend fun headers(
        vararg
        argument: suspend DiagnosticFrontendRequestDataMaskingHeaderArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            DiagnosticFrontendRequestDataMaskingHeaderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headers = mapped
    }

    /**
     * @param argument A `headers` block as defined below.
     */
    @JvmName("acuoqjrnvcmwmgxp")
    public suspend
    fun headers(argument: suspend DiagnosticFrontendRequestDataMaskingHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DiagnosticFrontendRequestDataMaskingHeaderArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.headers = mapped
    }

    /**
     * @param values A `headers` block as defined below.
     */
    @JvmName("sbgrupgxfqtsxevn")
    public suspend fun headers(vararg values: DiagnosticFrontendRequestDataMaskingHeaderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headers = mapped
    }

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

    /**
     * @param argument A `query_params` block as defined below.
     */
    @JvmName("cnbbnrtulnktxbxh")
    public suspend
    fun queryParams(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DiagnosticFrontendRequestDataMaskingQueryParamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.queryParams = mapped
    }

    /**
     * @param argument A `query_params` block as defined below.
     */
    @JvmName("fyjrtswvyutwnvgi")
    public suspend fun queryParams(
        vararg
        argument: suspend DiagnosticFrontendRequestDataMaskingQueryParamArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            DiagnosticFrontendRequestDataMaskingQueryParamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.queryParams = mapped
    }

    /**
     * @param argument A `query_params` block as defined below.
     */
    @JvmName("hckwhqutiaokfixr")
    public suspend
    fun queryParams(argument: suspend DiagnosticFrontendRequestDataMaskingQueryParamArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DiagnosticFrontendRequestDataMaskingQueryParamArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.queryParams = mapped
    }

    /**
     * @param values A `query_params` block as defined below.
     */
    @JvmName("eicgceuatybljoyy")
    public suspend fun queryParams(
        vararg
        values: DiagnosticFrontendRequestDataMaskingQueryParamArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryParams = mapped
    }

    internal fun build(): DiagnosticFrontendRequestDataMaskingArgs =
        DiagnosticFrontendRequestDataMaskingArgs(
            headers = headers,
            queryParams = queryParams,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy