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

com.pulumi.azurenative.iotoperations.kotlin.inputs.PrincipalDefinitionArgs.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.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.PrincipalDefinitionArgs.builder
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.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * PrincipalDefinition properties of Rule
 * @property attributes A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
 * @property clientIds A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
 * @property usernames A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
 */
public data class PrincipalDefinitionArgs(
    public val attributes: Output>>? = null,
    public val clientIds: Output>? = null,
    public val usernames: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.PrincipalDefinitionArgs =
        com.pulumi.azurenative.iotoperations.inputs.PrincipalDefinitionArgs.builder()
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.map({ args0 ->
                            args0.key.to(args0.value)
                        }).toMap()
                    })
                }),
            )
            .clientIds(clientIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .usernames(usernames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var clientIds: Output>? = null

    private var usernames: Output>? = null

    /**
     * @param value A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
     */
    @JvmName("dtjnkduficqgoxng")
    public suspend fun attributes(`value`: Output>>) {
        this.attributes = value
    }

    @JvmName("rjmmpdghdhktippv")
    public suspend fun attributes(vararg values: Output>) {
        this.attributes = Output.all(values.asList())
    }

    /**
     * @param values A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
     */
    @JvmName("wnutmsdivutlqiqr")
    public suspend fun attributes(values: List>>) {
        this.attributes = Output.all(values)
    }

    /**
     * @param value A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
     */
    @JvmName("yttcnoxkvyvdntwp")
    public suspend fun clientIds(`value`: Output>) {
        this.clientIds = value
    }

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

    /**
     * @param values A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
     */
    @JvmName("yaqtgiybyicnxcrj")
    public suspend fun clientIds(values: List>) {
        this.clientIds = Output.all(values)
    }

    /**
     * @param value A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
     */
    @JvmName("sydqghewcfiodeta")
    public suspend fun usernames(`value`: Output>) {
        this.usernames = value
    }

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

    /**
     * @param values A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
     */
    @JvmName("hrohgacpqjchlacr")
    public suspend fun usernames(values: List>) {
        this.usernames = Output.all(values)
    }

    /**
     * @param value A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
     */
    @JvmName("xgcqdyqedeuvrqqo")
    public suspend fun attributes(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param values A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
     */
    @JvmName("syqidijicbxclppb")
    public suspend fun attributes(vararg values: Map) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param value A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
     */
    @JvmName("vihganriqxybuqct")
    public suspend fun clientIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientIds = mapped
    }

    /**
     * @param values A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
     */
    @JvmName("dkbmsuucaejreflm")
    public suspend fun clientIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientIds = mapped
    }

    /**
     * @param value A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
     */
    @JvmName("fhlegwxrnwrerkbe")
    public suspend fun usernames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usernames = mapped
    }

    /**
     * @param values A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
     */
    @JvmName("ckrvcwuktkidjbhr")
    public suspend fun usernames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.usernames = mapped
    }

    internal fun build(): PrincipalDefinitionArgs = PrincipalDefinitionArgs(
        attributes = attributes,
        clientIds = clientIds,
        usernames = usernames,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy