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

com.pulumi.azure.servicefabric.kotlin.inputs.ClusterReverseProxyCertificateCommonNamesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.servicefabric.kotlin.inputs

import com.pulumi.azure.servicefabric.inputs.ClusterReverseProxyCertificateCommonNamesArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property commonNames A `common_names` block as defined below.
 * @property x509StoreName The X509 Store where the Certificate Exists, such as `My`.
 */
public data class ClusterReverseProxyCertificateCommonNamesArgs(
    public val commonNames: Output>,
    public val x509StoreName: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.servicefabric.inputs.ClusterReverseProxyCertificateCommonNamesArgs =
        com.pulumi.azure.servicefabric.inputs.ClusterReverseProxyCertificateCommonNamesArgs.builder()
            .commonNames(
                commonNames.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .x509StoreName(x509StoreName.applyValue({ args0 -> args0 })).build()
}

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

    private var x509StoreName: Output? = null

    /**
     * @param value A `common_names` block as defined below.
     */
    @JvmName("mhepxonjusybsyqv")
    public suspend fun commonNames(`value`: Output>) {
        this.commonNames = value
    }

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

    /**
     * @param values A `common_names` block as defined below.
     */
    @JvmName("cylfksxkmcjmqhau")
    public suspend fun commonNames(values: List>) {
        this.commonNames = Output.all(values)
    }

    /**
     * @param value The X509 Store where the Certificate Exists, such as `My`.
     */
    @JvmName("bbygdunongoygudw")
    public suspend fun x509StoreName(`value`: Output) {
        this.x509StoreName = value
    }

    /**
     * @param value A `common_names` block as defined below.
     */
    @JvmName("ucxfiycrsagubwcx")
    public suspend fun commonNames(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.commonNames = mapped
    }

    /**
     * @param argument A `common_names` block as defined below.
     */
    @JvmName("eiydwiyblwshvfhw")
    public suspend fun commonNames(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterReverseProxyCertificateCommonNamesCommonNameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.commonNames = mapped
    }

    /**
     * @param argument A `common_names` block as defined below.
     */
    @JvmName("wnusbqlehrlgrvyy")
    public suspend fun commonNames(vararg argument: suspend ClusterReverseProxyCertificateCommonNamesCommonNameArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterReverseProxyCertificateCommonNamesCommonNameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.commonNames = mapped
    }

    /**
     * @param argument A `common_names` block as defined below.
     */
    @JvmName("pyehehaauhanpmbq")
    public suspend fun commonNames(argument: suspend ClusterReverseProxyCertificateCommonNamesCommonNameArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ClusterReverseProxyCertificateCommonNamesCommonNameArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.commonNames = mapped
    }

    /**
     * @param values A `common_names` block as defined below.
     */
    @JvmName("pqomueimimtubqor")
    public suspend fun commonNames(vararg values: ClusterReverseProxyCertificateCommonNamesCommonNameArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.commonNames = mapped
    }

    /**
     * @param value The X509 Store where the Certificate Exists, such as `My`.
     */
    @JvmName("tesssskplitbolww")
    public suspend fun x509StoreName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.x509StoreName = mapped
    }

    internal fun build(): ClusterReverseProxyCertificateCommonNamesArgs =
        ClusterReverseProxyCertificateCommonNamesArgs(
            commonNames = commonNames ?: throw PulumiNullFieldException("commonNames"),
            x509StoreName = x509StoreName ?: throw PulumiNullFieldException("x509StoreName"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy