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

com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.BrokerAuthenticatorMethodSatArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperationsmq.kotlin.inputs

import com.pulumi.azurenative.iotoperationsmq.inputs.BrokerAuthenticatorMethodSatArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Service Account Token for BrokerAuthentication
 * @property audiences List of allowed audience.
 */
public data class BrokerAuthenticatorMethodSatArgs(
    public val audiences: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperationsmq.inputs.BrokerAuthenticatorMethodSatArgs =
        com.pulumi.azurenative.iotoperationsmq.inputs.BrokerAuthenticatorMethodSatArgs.builder()
            .audiences(audiences.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value List of allowed audience.
     */
    @JvmName("vplmufbxyhmcprfk")
    public suspend fun audiences(`value`: Output>) {
        this.audiences = value
    }

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

    /**
     * @param values List of allowed audience.
     */
    @JvmName("yfoajiueptyjixil")
    public suspend fun audiences(values: List>) {
        this.audiences = Output.all(values)
    }

    /**
     * @param value List of allowed audience.
     */
    @JvmName("rbguetcgrlwucucc")
    public suspend fun audiences(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audiences = mapped
    }

    /**
     * @param values List of allowed audience.
     */
    @JvmName("gpusvlwhquiixoat")
    public suspend fun audiences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audiences = mapped
    }

    internal fun build(): BrokerAuthenticatorMethodSatArgs = BrokerAuthenticatorMethodSatArgs(
        audiences = audiences ?: throw PulumiNullFieldException("audiences"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy