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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateTemplatePredefinedValuesKeyUsageArgs.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.CertificateTemplatePredefinedValuesKeyUsageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 baseKeyUsage Describes high-level ways in which a key may be used.
 * @property extendedKeyUsage Detailed scenarios in which a key may be used.
 * @property unknownExtendedKeyUsages Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
 */
public data class CertificateTemplatePredefinedValuesKeyUsageArgs(
    public val baseKeyUsage: Output? =
        null,
    public val extendedKeyUsage: Output? = null,
    public val unknownExtendedKeyUsages: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePredefinedValuesKeyUsageArgs =
        com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePredefinedValuesKeyUsageArgs.builder()
            .baseKeyUsage(baseKeyUsage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .extendedKeyUsage(extendedKeyUsage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .unknownExtendedKeyUsages(
                unknownExtendedKeyUsages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [CertificateTemplatePredefinedValuesKeyUsageArgs].
 */
@PulumiTagMarker
public class CertificateTemplatePredefinedValuesKeyUsageArgsBuilder internal constructor() {
    private var baseKeyUsage: Output? =
        null

    private var extendedKeyUsage:
        Output? = null

    private var unknownExtendedKeyUsages:
        Output>? = null

    /**
     * @param value Describes high-level ways in which a key may be used.
     */
    @JvmName("mynplehruwkjadce")
    public suspend fun baseKeyUsage(`value`: Output) {
        this.baseKeyUsage = value
    }

    /**
     * @param value Detailed scenarios in which a key may be used.
     */
    @JvmName("solusjgfhyrtsfhq")
    public suspend fun extendedKeyUsage(`value`: Output) {
        this.extendedKeyUsage = value
    }

    /**
     * @param value Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("peqygecbkwtiupuv")
    public suspend fun unknownExtendedKeyUsages(`value`: Output>) {
        this.unknownExtendedKeyUsages = value
    }

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

    /**
     * @param values Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("agkxuxnkwcgfomjf")
    public suspend fun unknownExtendedKeyUsages(values: List>) {
        this.unknownExtendedKeyUsages = Output.all(values)
    }

    /**
     * @param value Describes high-level ways in which a key may be used.
     */
    @JvmName("wvofwechebqyhuwe")
    public suspend fun baseKeyUsage(`value`: CertificateTemplatePredefinedValuesKeyUsageBaseKeyUsageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baseKeyUsage = mapped
    }

    /**
     * @param argument Describes high-level ways in which a key may be used.
     */
    @JvmName("lxryaycpshbximwe")
    public suspend fun baseKeyUsage(argument: suspend CertificateTemplatePredefinedValuesKeyUsageBaseKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped =
            CertificateTemplatePredefinedValuesKeyUsageBaseKeyUsageArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.baseKeyUsage = mapped
    }

    /**
     * @param value Detailed scenarios in which a key may be used.
     */
    @JvmName("pebvkdqoltcamgte")
    public suspend fun extendedKeyUsage(`value`: CertificateTemplatePredefinedValuesKeyUsageExtendedKeyUsageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedKeyUsage = mapped
    }

    /**
     * @param argument Detailed scenarios in which a key may be used.
     */
    @JvmName("duypepbawplxhnud")
    public suspend fun extendedKeyUsage(argument: suspend CertificateTemplatePredefinedValuesKeyUsageExtendedKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped =
            CertificateTemplatePredefinedValuesKeyUsageExtendedKeyUsageArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.extendedKeyUsage = mapped
    }

    /**
     * @param value Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("rnlgrkhynkpvsvli")
    public suspend fun unknownExtendedKeyUsages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param argument Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("bmaxlyrkftytxjln")
    public suspend fun unknownExtendedKeyUsages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param argument Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("tetdsanmlelfrrdr")
    public suspend fun unknownExtendedKeyUsages(vararg argument: suspend CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param argument Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("jylhawjbhwuhetdq")
    public suspend fun unknownExtendedKeyUsages(argument: suspend CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param values Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
     */
    @JvmName("jetuokqwopwyvfcu")
    public suspend fun unknownExtendedKeyUsages(vararg values: CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.unknownExtendedKeyUsages = mapped
    }

    internal fun build(): CertificateTemplatePredefinedValuesKeyUsageArgs =
        CertificateTemplatePredefinedValuesKeyUsageArgs(
            baseKeyUsage = baseKeyUsage,
            extendedKeyUsage = extendedKeyUsage,
            unknownExtendedKeyUsages = unknownExtendedKeyUsages,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy