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

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

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

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

import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodX509Args.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * X509 for BrokerAuthentication.
 * @property authorizationAttributes X509 authorization attributes properties.
 * @property trustedClientCaCert Name of the trusted client ca cert resource.
 */
public data class BrokerAuthenticatorMethodX509Args(
    public val authorizationAttributes: Output>? = null,
    public val trustedClientCaCert: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodX509Args =
        com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodX509Args.builder()
            .authorizationAttributes(
                authorizationAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .trustedClientCaCert(trustedClientCaCert?.applyValue({ args0 -> args0 })).build()
}

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

    private var trustedClientCaCert: Output? = null

    /**
     * @param value X509 authorization attributes properties.
     */
    @JvmName("himipnrllhsiuerg")
    public suspend fun authorizationAttributes(`value`: Output>) {
        this.authorizationAttributes = value
    }

    /**
     * @param value Name of the trusted client ca cert resource.
     */
    @JvmName("tngfdrjkpjvnxsgi")
    public suspend fun trustedClientCaCert(`value`: Output) {
        this.trustedClientCaCert = value
    }

    /**
     * @param value X509 authorization attributes properties.
     */
    @JvmName("pweluoybujfulfgi")
    public suspend fun authorizationAttributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizationAttributes = mapped
    }

    /**
     * @param argument X509 authorization attributes properties.
     */
    @JvmName("ufwhovqonygsrsyn")
    public suspend fun authorizationAttributes(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                BrokerAuthenticatorMethodX509AttributesArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.authorizationAttributes = mapped
    }

    /**
     * @param values X509 authorization attributes properties.
     */
    @JvmName("xlhmybesdhgeixuq")
    public fun authorizationAttributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authorizationAttributes = mapped
    }

    /**
     * @param value Name of the trusted client ca cert resource.
     */
    @JvmName("kahegaafdeknxcwo")
    public suspend fun trustedClientCaCert(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedClientCaCert = mapped
    }

    internal fun build(): BrokerAuthenticatorMethodX509Args = BrokerAuthenticatorMethodX509Args(
        authorizationAttributes = authorizationAttributes,
        trustedClientCaCert = trustedClientCaCert,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy