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

com.pulumi.azurenative.network.kotlin.inputs.ApplicationGatewaySslProfileArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.ApplicationGatewaySslProfileArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * SSL profile of an application gateway.
 * @property clientAuthConfiguration Client authentication configuration of the application gateway resource.
 * @property id Resource ID.
 * @property name Name of the SSL profile that is unique within an Application Gateway.
 * @property sslPolicy SSL policy of the application gateway resource.
 * @property trustedClientCertificates Array of references to application gateway trusted client certificates.
 */
public data class ApplicationGatewaySslProfileArgs(
    public val clientAuthConfiguration: Output? = null,
    public val id: Output? = null,
    public val name: Output? = null,
    public val sslPolicy: Output? = null,
    public val trustedClientCertificates: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ApplicationGatewaySslProfileArgs =
        com.pulumi.azurenative.network.inputs.ApplicationGatewaySslProfileArgs.builder()
            .clientAuthConfiguration(
                clientAuthConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .sslPolicy(sslPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .trustedClientCertificates(
                trustedClientCertificates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationGatewaySslProfileArgs].
 */
@PulumiTagMarker
public class ApplicationGatewaySslProfileArgsBuilder internal constructor() {
    private var clientAuthConfiguration: Output? = null

    private var id: Output? = null

    private var name: Output? = null

    private var sslPolicy: Output? = null

    private var trustedClientCertificates: Output>? = null

    /**
     * @param value Client authentication configuration of the application gateway resource.
     */
    @JvmName("elgjrmhkxecoewoq")
    public suspend fun clientAuthConfiguration(`value`: Output) {
        this.clientAuthConfiguration = value
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("iipvirfnvudpfvcb")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Name of the SSL profile that is unique within an Application Gateway.
     */
    @JvmName("yjqtjlxyffnhqtri")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value SSL policy of the application gateway resource.
     */
    @JvmName("lbjsrbtelvrddjlk")
    public suspend fun sslPolicy(`value`: Output) {
        this.sslPolicy = value
    }

    /**
     * @param value Array of references to application gateway trusted client certificates.
     */
    @JvmName("uohuyrbvjhikrclt")
    public suspend fun trustedClientCertificates(`value`: Output>) {
        this.trustedClientCertificates = value
    }

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

    /**
     * @param values Array of references to application gateway trusted client certificates.
     */
    @JvmName("iwthjpdeyghajnqw")
    public suspend fun trustedClientCertificates(values: List>) {
        this.trustedClientCertificates = Output.all(values)
    }

    /**
     * @param value Client authentication configuration of the application gateway resource.
     */
    @JvmName("jgaqsquvlikdbots")
    public suspend fun clientAuthConfiguration(`value`: ApplicationGatewayClientAuthConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientAuthConfiguration = mapped
    }

    /**
     * @param argument Client authentication configuration of the application gateway resource.
     */
    @JvmName("eexmbatvxriscbuu")
    public suspend fun clientAuthConfiguration(argument: suspend ApplicationGatewayClientAuthConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationGatewayClientAuthConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.clientAuthConfiguration = mapped
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("qpdavxskbwpnykta")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Name of the SSL profile that is unique within an Application Gateway.
     */
    @JvmName("spbtnauyspuufjxi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value SSL policy of the application gateway resource.
     */
    @JvmName("qomixomdnuubssyh")
    public suspend fun sslPolicy(`value`: ApplicationGatewaySslPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslPolicy = mapped
    }

    /**
     * @param argument SSL policy of the application gateway resource.
     */
    @JvmName("ufrlokoblvebdqox")
    public suspend fun sslPolicy(argument: suspend ApplicationGatewaySslPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationGatewaySslPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sslPolicy = mapped
    }

    /**
     * @param value Array of references to application gateway trusted client certificates.
     */
    @JvmName("safhixwavmteflax")
    public suspend fun trustedClientCertificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedClientCertificates = mapped
    }

    /**
     * @param argument Array of references to application gateway trusted client certificates.
     */
    @JvmName("gysllhbpxbcthtgb")
    public suspend fun trustedClientCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.trustedClientCertificates = mapped
    }

    /**
     * @param argument Array of references to application gateway trusted client certificates.
     */
    @JvmName("ffithemoevmfpict")
    public suspend fun trustedClientCertificates(vararg argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.trustedClientCertificates = mapped
    }

    /**
     * @param argument Array of references to application gateway trusted client certificates.
     */
    @JvmName("sycnvgvbbttefsnx")
    public suspend fun trustedClientCertificates(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubResourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.trustedClientCertificates = mapped
    }

    /**
     * @param values Array of references to application gateway trusted client certificates.
     */
    @JvmName("vcanveaycdjigfre")
    public suspend fun trustedClientCertificates(vararg values: SubResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trustedClientCertificates = mapped
    }

    internal fun build(): ApplicationGatewaySslProfileArgs = ApplicationGatewaySslProfileArgs(
        clientAuthConfiguration = clientAuthConfiguration,
        id = id,
        name = name,
        sslPolicy = sslPolicy,
        trustedClientCertificates = trustedClientCertificates,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy