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

com.pulumi.azurenative.aad.kotlin.inputs.LdapsSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.aad.kotlin.inputs

import com.pulumi.azurenative.aad.inputs.LdapsSettingsArgs.builder
import com.pulumi.azurenative.aad.kotlin.enums.ExternalAccess
import com.pulumi.azurenative.aad.kotlin.enums.Ldaps
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.jvm.JvmName

/**
 * Secure LDAP Settings
 * @property externalAccess A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled.
 * @property ldaps A flag to determine whether or not Secure LDAP is enabled or disabled.
 * @property pfxCertificate The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.
 * @property pfxCertificatePassword The password to decrypt the provided Secure LDAP certificate pfx file.
 */
public data class LdapsSettingsArgs(
    public val externalAccess: Output>? = null,
    public val ldaps: Output>? = null,
    public val pfxCertificate: Output? = null,
    public val pfxCertificatePassword: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.aad.inputs.LdapsSettingsArgs =
        com.pulumi.azurenative.aad.inputs.LdapsSettingsArgs.builder()
            .externalAccess(
                externalAccess?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .ldaps(
                ldaps?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .pfxCertificate(pfxCertificate?.applyValue({ args0 -> args0 }))
            .pfxCertificatePassword(pfxCertificatePassword?.applyValue({ args0 -> args0 })).build()
}

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

    private var ldaps: Output>? = null

    private var pfxCertificate: Output? = null

    private var pfxCertificatePassword: Output? = null

    /**
     * @param value A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled.
     */
    @JvmName("xurleiljawlxtlmq")
    public suspend fun externalAccess(`value`: Output>) {
        this.externalAccess = value
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP is enabled or disabled.
     */
    @JvmName("eadjorudagkuinhb")
    public suspend fun ldaps(`value`: Output>) {
        this.ldaps = value
    }

    /**
     * @param value The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.
     */
    @JvmName("wculyyqiwpfpbbfu")
    public suspend fun pfxCertificate(`value`: Output) {
        this.pfxCertificate = value
    }

    /**
     * @param value The password to decrypt the provided Secure LDAP certificate pfx file.
     */
    @JvmName("qoxivbloevvtalgi")
    public suspend fun pfxCertificatePassword(`value`: Output) {
        this.pfxCertificatePassword = value
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled.
     */
    @JvmName("hidemeeyhqpgdlup")
    public suspend fun externalAccess(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalAccess = mapped
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled.
     */
    @JvmName("lccfpdkkthuibihr")
    public fun externalAccess(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.externalAccess = mapped
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled.
     */
    @JvmName("cyssdawtfunsabbi")
    public fun externalAccess(`value`: ExternalAccess) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.externalAccess = mapped
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP is enabled or disabled.
     */
    @JvmName("ohddwhkqqagvvagg")
    public suspend fun ldaps(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ldaps = mapped
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP is enabled or disabled.
     */
    @JvmName("jrmadjumjlpqplxd")
    public fun ldaps(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ldaps = mapped
    }

    /**
     * @param value A flag to determine whether or not Secure LDAP is enabled or disabled.
     */
    @JvmName("udnexrlvmstoscmw")
    public fun ldaps(`value`: Ldaps) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ldaps = mapped
    }

    /**
     * @param value The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.
     */
    @JvmName("duiwyaeuqjkymmud")
    public suspend fun pfxCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pfxCertificate = mapped
    }

    /**
     * @param value The password to decrypt the provided Secure LDAP certificate pfx file.
     */
    @JvmName("eeyyirkdyoilhbuf")
    public suspend fun pfxCertificatePassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pfxCertificatePassword = mapped
    }

    internal fun build(): LdapsSettingsArgs = LdapsSettingsArgs(
        externalAccess = externalAccess,
        ldaps = ldaps,
        pfxCertificate = pfxCertificate,
        pfxCertificatePassword = pfxCertificatePassword,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy