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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateTemplatePassthroughExtensionsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.certificateauthority.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePassthroughExtensionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 additionalExtensions Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
 * @property knownExtensions Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
 */
public data class CertificateTemplatePassthroughExtensionsArgs(
    public val additionalExtensions: Output>? = null,
    public val knownExtensions: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePassthroughExtensionsArgs =
        com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePassthroughExtensionsArgs.builder()
            .additionalExtensions(
                additionalExtensions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .knownExtensions(knownExtensions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var knownExtensions: Output>? = null

    /**
     * @param value Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("dfbxxxreuvyvdvrv")
    public suspend fun additionalExtensions(`value`: Output>) {
        this.additionalExtensions = value
    }

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

    /**
     * @param values Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("evfgtmpiejbrnrlr")
    public suspend fun additionalExtensions(values: List>) {
        this.additionalExtensions = Output.all(values)
    }

    /**
     * @param value Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("xidghvybilrlpnuj")
    public suspend fun knownExtensions(`value`: Output>) {
        this.knownExtensions = value
    }

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

    /**
     * @param values Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("yukfixjcvnvhuycu")
    public suspend fun knownExtensions(values: List>) {
        this.knownExtensions = Output.all(values)
    }

    /**
     * @param value Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("oldacsvjvamujxid")
    public suspend fun additionalExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("afsfrlexcyncfvbt")
    public suspend fun additionalExtensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePassthroughExtensionsAdditionalExtensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("dupyjqpicnpcyalw")
    public suspend fun additionalExtensions(vararg argument: suspend CertificateTemplatePassthroughExtensionsAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePassthroughExtensionsAdditionalExtensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("ivkafksaffjpkwpg")
    public suspend fun additionalExtensions(argument: suspend CertificateTemplatePassthroughExtensionsAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                CertificateTemplatePassthroughExtensionsAdditionalExtensionArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param values Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("ddbjbthsiljqtwep")
    public suspend fun additionalExtensions(vararg values: CertificateTemplatePassthroughExtensionsAdditionalExtensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param value Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("ovbydcumgsehnvhj")
    public suspend fun knownExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.knownExtensions = mapped
    }

    /**
     * @param values Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
     */
    @JvmName("lexcwhcokftuomup")
    public suspend fun knownExtensions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.knownExtensions = mapped
    }

    internal fun build(): CertificateTemplatePassthroughExtensionsArgs =
        CertificateTemplatePassthroughExtensionsArgs(
            additionalExtensions = additionalExtensions,
            knownExtensions = knownExtensions,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy