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

com.pulumi.azure.hpc.kotlin.outputs.CacheDirectoryLdap.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.hpc.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property baseDn The base distinguished name (DN) for the LDAP domain.
 * @property bind A `bind` block as defined above.
 * @property certificateValidationUri The URI of the CA certificate to validate the LDAP secure connection.
 * @property downloadCertificateAutomatically Whether the certificate should be automatically downloaded. This can be set to `true` only when `certificate_validation_uri` is provided.
 * @property encrypted Whether the LDAP connection should be encrypted?
 * @property server The FQDN or IP address of the LDAP server.
 */
public data class CacheDirectoryLdap(
    public val baseDn: String,
    public val bind: CacheDirectoryLdapBind? = null,
    public val certificateValidationUri: String? = null,
    public val downloadCertificateAutomatically: Boolean? = null,
    public val encrypted: Boolean? = null,
    public val server: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.hpc.outputs.CacheDirectoryLdap): CacheDirectoryLdap = CacheDirectoryLdap(
            baseDn = javaType.baseDn(),
            bind = javaType.bind().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.hpc.kotlin.outputs.CacheDirectoryLdapBind.Companion.toKotlin(args0)
                })
            }).orElse(null),
            certificateValidationUri = javaType.certificateValidationUri().map({ args0 -> args0 }).orElse(null),
            downloadCertificateAutomatically = javaType.downloadCertificateAutomatically().map({ args0 ->
                args0
            }).orElse(null),
            encrypted = javaType.encrypted().map({ args0 -> args0 }).orElse(null),
            server = javaType.server(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy