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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateTemplatePredefinedValuesArgs.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.CertificateTemplatePredefinedValuesArgs.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. Describes custom X.509 extensions.
 * @property aiaOcspServers Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
 * @property caOptions Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
 * @property keyUsage Optional. Indicates the intended use for keys that correspond to a certificate.
 * @property policyIds Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
 */
public data class CertificateTemplatePredefinedValuesArgs(
    public val additionalExtensions: Output>? = null,
    public val aiaOcspServers: Output>? = null,
    public val caOptions: Output? = null,
    public val keyUsage: Output? = null,
    public val policyIds: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePredefinedValuesArgs =
        com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePredefinedValuesArgs.builder()
            .additionalExtensions(
                additionalExtensions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .aiaOcspServers(aiaOcspServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .caOptions(caOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyUsage(keyUsage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .policyIds(
                policyIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var aiaOcspServers: Output>? = null

    private var caOptions: Output? = null

    private var keyUsage: Output? = null

    private var policyIds: Output>? = null

    /**
     * @param value Optional. Describes custom X.509 extensions.
     */
    @JvmName("tktflixiprovgcvp")
    public suspend fun additionalExtensions(`value`: Output>) {
        this.additionalExtensions = value
    }

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

    /**
     * @param values Optional. Describes custom X.509 extensions.
     */
    @JvmName("nvhvsguqgydynioj")
    public suspend fun additionalExtensions(values: List>) {
        this.additionalExtensions = Output.all(values)
    }

    /**
     * @param value Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
     */
    @JvmName("cqmbpckuvbtqayrx")
    public suspend fun aiaOcspServers(`value`: Output>) {
        this.aiaOcspServers = value
    }

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

    /**
     * @param values Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
     */
    @JvmName("lrnexqfcnbybydbh")
    public suspend fun aiaOcspServers(values: List>) {
        this.aiaOcspServers = Output.all(values)
    }

    /**
     * @param value Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
     */
    @JvmName("wldutwshxkkwsdki")
    public suspend fun caOptions(`value`: Output) {
        this.caOptions = value
    }

    /**
     * @param value Optional. Indicates the intended use for keys that correspond to a certificate.
     */
    @JvmName("irxsgjvnivpqocav")
    public suspend fun keyUsage(`value`: Output) {
        this.keyUsage = value
    }

    /**
     * @param value Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("tcpdksqbcbomynji")
    public suspend fun policyIds(`value`: Output>) {
        this.policyIds = value
    }

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

    /**
     * @param values Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("asvbibkintqajifv")
    public suspend fun policyIds(values: List>) {
        this.policyIds = Output.all(values)
    }

    /**
     * @param value Optional. Describes custom X.509 extensions.
     */
    @JvmName("doiiwlqfdtyovkym")
    public suspend fun additionalExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Optional. Describes custom X.509 extensions.
     */
    @JvmName("jfvcnoursngunfil")
    public suspend fun additionalExtensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePredefinedValuesAdditionalExtensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Optional. Describes custom X.509 extensions.
     */
    @JvmName("fuigtosrlrpaaiad")
    public suspend fun additionalExtensions(vararg argument: suspend CertificateTemplatePredefinedValuesAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePredefinedValuesAdditionalExtensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Optional. Describes custom X.509 extensions.
     */
    @JvmName("cmvhhjlipoeykobs")
    public suspend fun additionalExtensions(argument: suspend CertificateTemplatePredefinedValuesAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                CertificateTemplatePredefinedValuesAdditionalExtensionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param values Optional. Describes custom X.509 extensions.
     */
    @JvmName("ieetxiqwbksfanww")
    public suspend fun additionalExtensions(vararg values: CertificateTemplatePredefinedValuesAdditionalExtensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param value Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
     */
    @JvmName("rryekquhmekdjwsm")
    public suspend fun aiaOcspServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aiaOcspServers = mapped
    }

    /**
     * @param values Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
     */
    @JvmName("hfqqdneeiuymiife")
    public suspend fun aiaOcspServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.aiaOcspServers = mapped
    }

    /**
     * @param value Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
     */
    @JvmName("pkgnimniorenmxgt")
    public suspend fun caOptions(`value`: CertificateTemplatePredefinedValuesCaOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caOptions = mapped
    }

    /**
     * @param argument Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
     */
    @JvmName("bcnvqlftruhucoma")
    public suspend fun caOptions(argument: suspend CertificateTemplatePredefinedValuesCaOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateTemplatePredefinedValuesCaOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.caOptions = mapped
    }

    /**
     * @param value Optional. Indicates the intended use for keys that correspond to a certificate.
     */
    @JvmName("hvprqxgifvedlxmo")
    public suspend fun keyUsage(`value`: CertificateTemplatePredefinedValuesKeyUsageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyUsage = mapped
    }

    /**
     * @param argument Optional. Indicates the intended use for keys that correspond to a certificate.
     */
    @JvmName("mtwxnpjidvqqqouu")
    public suspend fun keyUsage(argument: suspend CertificateTemplatePredefinedValuesKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateTemplatePredefinedValuesKeyUsageArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.keyUsage = mapped
    }

    /**
     * @param value Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("rvdjobiigkrokauo")
    public suspend fun policyIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyIds = mapped
    }

    /**
     * @param argument Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("iefiexphwypeeslx")
    public suspend fun policyIds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePredefinedValuesPolicyIdArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param argument Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("aiaiiinjgknwbdlk")
    public suspend fun policyIds(vararg argument: suspend CertificateTemplatePredefinedValuesPolicyIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePredefinedValuesPolicyIdArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param argument Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("pjtfcvfqwptoksql")
    public suspend fun policyIds(argument: suspend CertificateTemplatePredefinedValuesPolicyIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateTemplatePredefinedValuesPolicyIdArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param values Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     */
    @JvmName("xerfdnotexkaeapr")
    public suspend fun policyIds(vararg values: CertificateTemplatePredefinedValuesPolicyIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyIds = mapped
    }

    internal fun build(): CertificateTemplatePredefinedValuesArgs =
        CertificateTemplatePredefinedValuesArgs(
            additionalExtensions = additionalExtensions,
            aiaOcspServers = aiaOcspServers,
            caOptions = caOptions,
            keyUsage = keyUsage,
            policyIds = policyIds,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy