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

com.pulumi.azurenative.appplatform.kotlin.inputs.GatewayPropertiesClientAuthArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.GatewayPropertiesClientAuthArgs.builder
import com.pulumi.azurenative.appplatform.kotlin.enums.GatewayCertificateVerification
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Client-Certification Authentication.
 * @property certificateVerification Whether to enable certificate verification or not
 * @property certificates Collection of certificate resource Ids in Azure Spring Apps.
 */
public data class GatewayPropertiesClientAuthArgs(
    public val certificateVerification: Output>? =
        null,
    public val certificates: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.GatewayPropertiesClientAuthArgs =
        com.pulumi.azurenative.appplatform.inputs.GatewayPropertiesClientAuthArgs.builder()
            .certificateVerification(
                certificateVerification?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .certificates(certificates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var certificates: Output>? = null

    /**
     * @param value Whether to enable certificate verification or not
     */
    @JvmName("mjhgvrmmtybgctyx")
    public suspend fun certificateVerification(`value`: Output>) {
        this.certificateVerification = value
    }

    /**
     * @param value Collection of certificate resource Ids in Azure Spring Apps.
     */
    @JvmName("rhopmrtpdassftlb")
    public suspend fun certificates(`value`: Output>) {
        this.certificates = value
    }

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

    /**
     * @param values Collection of certificate resource Ids in Azure Spring Apps.
     */
    @JvmName("jfbqdgjqgcsxwpij")
    public suspend fun certificates(values: List>) {
        this.certificates = Output.all(values)
    }

    /**
     * @param value Whether to enable certificate verification or not
     */
    @JvmName("wswymsbixqclnxtc")
    public suspend fun certificateVerification(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateVerification = mapped
    }

    /**
     * @param value Whether to enable certificate verification or not
     */
    @JvmName("riawfenslhkgmysw")
    public fun certificateVerification(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificateVerification = mapped
    }

    /**
     * @param value Whether to enable certificate verification or not
     */
    @JvmName("gwsgltkandblegub")
    public fun certificateVerification(`value`: GatewayCertificateVerification) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificateVerification = mapped
    }

    /**
     * @param value Collection of certificate resource Ids in Azure Spring Apps.
     */
    @JvmName("cmdffrgmtraaddtw")
    public suspend fun certificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificates = mapped
    }

    /**
     * @param values Collection of certificate resource Ids in Azure Spring Apps.
     */
    @JvmName("kdveoegdterrqsee")
    public suspend fun certificates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificates = mapped
    }

    internal fun build(): GatewayPropertiesClientAuthArgs = GatewayPropertiesClientAuthArgs(
        certificateVerification = certificateVerification,
        certificates = certificates,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy