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

com.pulumi.azurenative.dbforpostgresql.kotlin.inputs.AuthConfigArgs.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.dbforpostgresql.kotlin.inputs

import com.pulumi.azurenative.dbforpostgresql.inputs.AuthConfigArgs.builder
import com.pulumi.azurenative.dbforpostgresql.kotlin.enums.ActiveDirectoryAuthEnum
import com.pulumi.azurenative.dbforpostgresql.kotlin.enums.PasswordAuthEnum
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

/**
 * Authentication configuration properties of a server
 * @property activeDirectoryAuth If Enabled, Azure Active Directory authentication is enabled.
 * @property passwordAuth If Enabled, Password authentication is enabled.
 * @property tenantId Tenant id of the server.
 */
public data class AuthConfigArgs(
    public val activeDirectoryAuth: Output>? = null,
    public val passwordAuth: Output>? = null,
    public val tenantId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.dbforpostgresql.inputs.AuthConfigArgs =
        com.pulumi.azurenative.dbforpostgresql.inputs.AuthConfigArgs.builder()
            .activeDirectoryAuth(
                activeDirectoryAuth?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .passwordAuth(
                passwordAuth?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .tenantId(tenantId?.applyValue({ args0 -> args0 })).build()
}

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

    private var passwordAuth: Output>? = null

    private var tenantId: Output? = null

    /**
     * @param value If Enabled, Azure Active Directory authentication is enabled.
     */
    @JvmName("eyvdsqtfikedhofq")
    public suspend fun activeDirectoryAuth(`value`: Output>) {
        this.activeDirectoryAuth = value
    }

    /**
     * @param value If Enabled, Password authentication is enabled.
     */
    @JvmName("tyywpiwsowddfmcl")
    public suspend fun passwordAuth(`value`: Output>) {
        this.passwordAuth = value
    }

    /**
     * @param value Tenant id of the server.
     */
    @JvmName("gxgagsletglqwiit")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value If Enabled, Azure Active Directory authentication is enabled.
     */
    @JvmName("ytvcjckgrrqgsftu")
    public suspend fun activeDirectoryAuth(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeDirectoryAuth = mapped
    }

    /**
     * @param value If Enabled, Azure Active Directory authentication is enabled.
     */
    @JvmName("xliusgrdrrbqaekj")
    public fun activeDirectoryAuth(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.activeDirectoryAuth = mapped
    }

    /**
     * @param value If Enabled, Azure Active Directory authentication is enabled.
     */
    @JvmName("xiyedprhmhsbljxm")
    public fun activeDirectoryAuth(`value`: ActiveDirectoryAuthEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.activeDirectoryAuth = mapped
    }

    /**
     * @param value If Enabled, Password authentication is enabled.
     */
    @JvmName("pjwkttqkmcnntkuc")
    public suspend fun passwordAuth(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passwordAuth = mapped
    }

    /**
     * @param value If Enabled, Password authentication is enabled.
     */
    @JvmName("tgaxneuyglhfvsud")
    public fun passwordAuth(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.passwordAuth = mapped
    }

    /**
     * @param value If Enabled, Password authentication is enabled.
     */
    @JvmName("gcsixxboillntpwm")
    public fun passwordAuth(`value`: PasswordAuthEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.passwordAuth = mapped
    }

    /**
     * @param value Tenant id of the server.
     */
    @JvmName("pphxxglxtgsyfswv")
    public suspend fun tenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    internal fun build(): AuthConfigArgs = AuthConfigArgs(
        activeDirectoryAuth = activeDirectoryAuth,
        passwordAuth = passwordAuth,
        tenantId = tenantId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy