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

com.pulumi.azure.apimanagement.kotlin.inputs.DiagnosticBackendRequestDataMaskingArgs.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.DiagnosticBackendRequestDataMaskingArgs.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 DiagnosticBackendRequestDataMaskingArgs(
    public val headers: Output>? = null,
    public val queryParams: Output>? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.apimanagement.inputs.DiagnosticBackendRequestDataMaskingArgs =
        com.pulumi.azure.apimanagement.inputs.DiagnosticBackendRequestDataMaskingArgs.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 [DiagnosticBackendRequestDataMaskingArgs].
 */
@PulumiTagMarker
public class DiagnosticBackendRequestDataMaskingArgsBuilder internal constructor() {
    private var headers: Output>? = null

    private var queryParams: Output>? = null

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

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

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

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

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

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

    /**
     * @param value A `headers` block as defined below.
     */
    @JvmName("bvkwodoogmdjuvqt")
    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("uxygpusfvcfrltxi")
    public suspend
    fun headers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DiagnosticBackendRequestDataMaskingHeaderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headers = mapped
    }

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

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

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

    /**
     * @param value A `query_params` block as defined below.
     */
    @JvmName("drtuqlvxmtttmyxv")
    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("sbwgvrrejjkmxyll")
    public suspend
    fun queryParams(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DiagnosticBackendRequestDataMaskingQueryParamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.queryParams = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy