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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs.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.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs.builder
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 baseKeyUsage Describes high-level ways in which a key may be used.
 * Structure is documented below.
 * @property extendedKeyUsage Describes high-level ways in which a key may be used.
 * Structure is documented below.
 * @property unknownExtendedKeyUsages An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
 * Structure is documented below.
 */
public data class CaPoolIssuancePolicyBaselineValuesKeyUsageArgs(
    public val baseKeyUsage: Output,
    public val extendedKeyUsage: Output,
    public val unknownExtendedKeyUsages: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs =
        com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesKeyUsageArgs.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 [CaPoolIssuancePolicyBaselineValuesKeyUsageArgs].
 */
@PulumiTagMarker
public class CaPoolIssuancePolicyBaselineValuesKeyUsageArgsBuilder 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.
     * Structure is documented below.
     */
    @JvmName("mjyymyyrqtufkdgt")
    public suspend fun baseKeyUsage(`value`: Output) {
        this.baseKeyUsage = value
    }

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

    /**
     * @param value An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("tbrcntexgvbkcgoo")
    public suspend fun unknownExtendedKeyUsages(`value`: Output>) {
        this.unknownExtendedKeyUsages = value
    }

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

    /**
     * @param values An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("osgcbbumclyiehwu")
    public suspend fun unknownExtendedKeyUsages(values: List>) {
        this.unknownExtendedKeyUsages = Output.all(values)
    }

    /**
     * @param value Describes high-level ways in which a key may be used.
     * Structure is documented below.
     */
    @JvmName("prwlpaaexttmqfki")
    public suspend fun baseKeyUsage(`value`: CaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageArgs) {
        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.
     * Structure is documented below.
     */
    @JvmName("sksylyeiyenokpxl")
    public suspend fun baseKeyUsage(argument: suspend CaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped =
            CaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.baseKeyUsage = mapped
    }

    /**
     * @param value Describes high-level ways in which a key may be used.
     * Structure is documented below.
     */
    @JvmName("drwauexftfldxojk")
    public suspend fun extendedKeyUsage(`value`: CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extendedKeyUsage = mapped
    }

    /**
     * @param argument Describes high-level ways in which a key may be used.
     * Structure is documented below.
     */
    @JvmName("bqhogsvhybdvokwt")
    public suspend fun extendedKeyUsage(argument: suspend CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped =
            CaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.extendedKeyUsage = mapped
    }

    /**
     * @param value An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("liohytiuclcnnvne")
    public suspend fun unknownExtendedKeyUsages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param argument An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("cxcqhlfbvymhhame")
    public suspend fun unknownExtendedKeyUsages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param argument An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("jwekripocgpxmqse")
    public suspend fun unknownExtendedKeyUsages(vararg argument: suspend CaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param argument An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("whpxdaadlpdbpogt")
    public suspend fun unknownExtendedKeyUsages(argument: suspend CaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                CaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsageArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.unknownExtendedKeyUsages = mapped
    }

    /**
     * @param values An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     */
    @JvmName("vytaytucemtbviip")
    public suspend fun unknownExtendedKeyUsages(vararg values: CaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.unknownExtendedKeyUsages = mapped
    }

    internal fun build(): CaPoolIssuancePolicyBaselineValuesKeyUsageArgs =
        CaPoolIssuancePolicyBaselineValuesKeyUsageArgs(
            baseKeyUsage = baseKeyUsage ?: throw PulumiNullFieldException("baseKeyUsage"),
            extendedKeyUsage = extendedKeyUsage ?: throw PulumiNullFieldException("extendedKeyUsage"),
            unknownExtendedKeyUsages = unknownExtendedKeyUsages,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy