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

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

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

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

import com.pulumi.azurenative.iotoperationsmq.inputs.SaslRemoteBrokerBasicAuthenticationArgs.builder
import com.pulumi.azurenative.iotoperationsmq.kotlin.enums.KafkaSaslType
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Kafka RemoteBrokerConnection Sasl Authentication properties.
 * @property saslType Sasl Mechanism for remote broker authentication.
 * @property token Sasl token for remote broker authentication.
 */
public data class SaslRemoteBrokerBasicAuthenticationArgs(
    public val saslType: Output>,
    public val token: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperationsmq.inputs.SaslRemoteBrokerBasicAuthenticationArgs =
        com.pulumi.azurenative.iotoperationsmq.inputs.SaslRemoteBrokerBasicAuthenticationArgs.builder()
            .saslType(
                saslType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .token(token.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var token: Output? = null

    /**
     * @param value Sasl Mechanism for remote broker authentication.
     */
    @JvmName("rohiaeslvixbhntf")
    public suspend fun saslType(`value`: Output>) {
        this.saslType = value
    }

    /**
     * @param value Sasl token for remote broker authentication.
     */
    @JvmName("rtrqjxgtxybymigs")
    public suspend fun token(`value`: Output) {
        this.token = value
    }

    /**
     * @param value Sasl Mechanism for remote broker authentication.
     */
    @JvmName("bnxoywjaxaqliwxl")
    public suspend fun saslType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.saslType = mapped
    }

    /**
     * @param value Sasl Mechanism for remote broker authentication.
     */
    @JvmName("fupmymypsqlrkoto")
    public fun saslType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.saslType = mapped
    }

    /**
     * @param value Sasl Mechanism for remote broker authentication.
     */
    @JvmName("hhacrkgltexfpusm")
    public fun saslType(`value`: KafkaSaslType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.saslType = mapped
    }

    /**
     * @param value Sasl token for remote broker authentication.
     */
    @JvmName("rdabmpeliueyhhge")
    public suspend fun token(`value`: SaslRemoteBrokerBasicAuthenticationTokenArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.token = mapped
    }

    /**
     * @param argument Sasl token for remote broker authentication.
     */
    @JvmName("tuqwbtbvopjlqksq")
    public suspend fun token(argument: suspend SaslRemoteBrokerBasicAuthenticationTokenArgsBuilder.() -> Unit) {
        val toBeMapped = SaslRemoteBrokerBasicAuthenticationTokenArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.token = mapped
    }

    internal fun build(): SaslRemoteBrokerBasicAuthenticationArgs =
        SaslRemoteBrokerBasicAuthenticationArgs(
            saslType = saslType ?: throw PulumiNullFieldException("saslType"),
            token = token ?: throw PulumiNullFieldException("token"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy