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

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

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

import com.pulumi.azure.apimanagement.inputs.DiagnosticBackendRequestDataMaskingHeaderArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property mode The data masking mode. Possible values are `Mask` and `Hide` for `query_params`. The only possible value is `Mask` for `headers`.
 * @property value The name of the header or the query parameter to mask.
 */
public data class DiagnosticBackendRequestDataMaskingHeaderArgs(
    public val mode: Output,
    public val `value`: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.apimanagement.inputs.DiagnosticBackendRequestDataMaskingHeaderArgs =
        com.pulumi.azure.apimanagement.inputs.DiagnosticBackendRequestDataMaskingHeaderArgs.builder()
            .mode(mode.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DiagnosticBackendRequestDataMaskingHeaderArgs].
 */
@PulumiTagMarker
public class DiagnosticBackendRequestDataMaskingHeaderArgsBuilder internal constructor() {
    private var mode: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The data masking mode. Possible values are `Mask` and `Hide` for `query_params`. The only possible value is `Mask` for `headers`.
     */
    @JvmName("ysjgnxvemlkoprnu")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value The name of the header or the query parameter to mask.
     */
    @JvmName("emynnguhofwtbjvb")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The data masking mode. Possible values are `Mask` and `Hide` for `query_params`. The only possible value is `Mask` for `headers`.
     */
    @JvmName("mjnljjeriotidtyx")
    public suspend fun mode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The name of the header or the query parameter to mask.
     */
    @JvmName("ahlgctadpwmvntlj")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): DiagnosticBackendRequestDataMaskingHeaderArgs =
        DiagnosticBackendRequestDataMaskingHeaderArgs(
            mode = mode ?: throw PulumiNullFieldException("mode"),
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy