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

com.pulumi.azure.cdn.kotlin.inputs.FrontdoorSecretSecretArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.cdn.kotlin.inputs

import com.pulumi.azure.cdn.inputs.FrontdoorSecretSecretArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property customerCertificates A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
 */
public data class FrontdoorSecretSecretArgs(
    public val customerCertificates: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.FrontdoorSecretSecretArgs =
        com.pulumi.azure.cdn.inputs.FrontdoorSecretSecretArgs.builder()
            .customerCertificates(
                customerCertificates.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    /**
     * @param value A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("lssaojxxtoxnuudd")
    public suspend fun customerCertificates(`value`: Output>) {
        this.customerCertificates = value
    }

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

    /**
     * @param values A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("lbhxgagmaoscuwot")
    public suspend fun customerCertificates(values: List>) {
        this.customerCertificates = Output.all(values)
    }

    /**
     * @param value A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("ndgrofcnubdlbycs")
    public suspend fun customerCertificates(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customerCertificates = mapped
    }

    /**
     * @param argument A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("sgtjpqkpidkxddjg")
    public suspend fun customerCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorSecretSecretCustomerCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.customerCertificates = mapped
    }

    /**
     * @param argument A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("mvxwcypwkbnuqeqn")
    public suspend fun customerCertificates(vararg argument: suspend FrontdoorSecretSecretCustomerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorSecretSecretCustomerCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.customerCertificates = mapped
    }

    /**
     * @param argument A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("bxsbqevhoghxmsab")
    public suspend fun customerCertificates(argument: suspend FrontdoorSecretSecretCustomerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrontdoorSecretSecretCustomerCertificateArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.customerCertificates = mapped
    }

    /**
     * @param values A `customer_certificate` block as defined below. Changing this forces a new Front Door Secret to be created.
     */
    @JvmName("thxexduvqpdyfwey")
    public suspend fun customerCertificates(vararg values: FrontdoorSecretSecretCustomerCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customerCertificates = mapped
    }

    internal fun build(): FrontdoorSecretSecretArgs = FrontdoorSecretSecretArgs(
        customerCertificates = customerCertificates ?: throw
            PulumiNullFieldException("customerCertificates"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy