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

com.pulumi.vault.okta.kotlin.inputs.AuthBackendUserArgs.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: 6.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.okta.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.okta.inputs.AuthBackendUserArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property groups Groups within the Okta auth backend to associate with this user
 * @property policies Policies to associate with this user
 * @property username Name of the user within Okta
 */
public data class AuthBackendUserArgs(
    public val groups: Output>? = null,
    public val policies: Output>? = null,
    public val username: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.okta.inputs.AuthBackendUserArgs =
        com.pulumi.vault.okta.inputs.AuthBackendUserArgs.builder()
            .groups(groups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .policies(policies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .username(username.applyValue({ args0 -> args0 })).build()
}

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

    private var policies: Output>? = null

    private var username: Output? = null

    /**
     * @param value Groups within the Okta auth backend to associate with this user
     */
    @JvmName("wpedodlrjkfxpcge")
    public suspend fun groups(`value`: Output>) {
        this.groups = value
    }

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

    /**
     * @param values Groups within the Okta auth backend to associate with this user
     */
    @JvmName("clkxhukdhwnemdme")
    public suspend fun groups(values: List>) {
        this.groups = Output.all(values)
    }

    /**
     * @param value Policies to associate with this user
     */
    @JvmName("qjdkxlkrixmwytxy")
    public suspend fun policies(`value`: Output>) {
        this.policies = value
    }

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

    /**
     * @param values Policies to associate with this user
     */
    @JvmName("dxilcrmkvuyywges")
    public suspend fun policies(values: List>) {
        this.policies = Output.all(values)
    }

    /**
     * @param value Name of the user within Okta
     */
    @JvmName("ofdenquljmmjkunn")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Groups within the Okta auth backend to associate with this user
     */
    @JvmName("qhjqqdmnaghjinoa")
    public suspend fun groups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groups = mapped
    }

    /**
     * @param values Groups within the Okta auth backend to associate with this user
     */
    @JvmName("eshmeejjiuyjjioj")
    public suspend fun groups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groups = mapped
    }

    /**
     * @param value Policies to associate with this user
     */
    @JvmName("rjtlfafhjjdpfhlc")
    public suspend fun policies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    /**
     * @param values Policies to associate with this user
     */
    @JvmName("kuiwyqnbhtsmyput")
    public suspend fun policies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    /**
     * @param value Name of the user within Okta
     */
    @JvmName("bulcdvrcrrwebrkf")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): AuthBackendUserArgs = AuthBackendUserArgs(
        groups = groups,
        policies = policies,
        username = username ?: throw PulumiNullFieldException("username"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy