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

com.pulumi.azurenative.iotoperations.kotlin.inputs.BrokerAuthenticatorCustomAuthArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorCustomAuthArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Custom Authentication properties
 * @property x509 X509 Custom Auth type details.
 */
public data class BrokerAuthenticatorCustomAuthArgs(
    public val x509: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorCustomAuthArgs =
        com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorCustomAuthArgs.builder()
            .x509(x509.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BrokerAuthenticatorCustomAuthArgs].
 */
@PulumiTagMarker
public class BrokerAuthenticatorCustomAuthArgsBuilder internal constructor() {
    private var x509: Output? = null

    /**
     * @param value X509 Custom Auth type details.
     */
    @JvmName("lqirwdnlddoobcbb")
    public suspend fun x509(`value`: Output) {
        this.x509 = value
    }

    /**
     * @param value X509 Custom Auth type details.
     */
    @JvmName("nbmnlkjkvhbqkvlm")
    public suspend fun x509(`value`: X509ManualCertificateArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.x509 = mapped
    }

    /**
     * @param argument X509 Custom Auth type details.
     */
    @JvmName("samxoeycrwcabnwm")
    public suspend fun x509(argument: suspend X509ManualCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = X509ManualCertificateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.x509 = mapped
    }

    internal fun build(): BrokerAuthenticatorCustomAuthArgs = BrokerAuthenticatorCustomAuthArgs(
        x509 = x509 ?: throw PulumiNullFieldException("x509"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy