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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs.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.12.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.CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property critical Indicates whether or not this extension is critical (i.e., if the client does not know how to
 * handle this extension, the client should consider this to be an error).
 * @property objectId Describes values that are relevant in a CA certificate.
 * Structure is documented below.
 * @property value The value of this X.509 extension. A base64-encoded string.
 */
public data class CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs(
    public val critical: Output,
    public val objectId: Output,
    public val `value`: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs =
        com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs.builder()
            .critical(critical.applyValue({ args0 -> args0 }))
            .objectId(objectId.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs].
 */
@PulumiTagMarker
public class CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgsBuilder internal constructor() {
    private var critical: Output? = null

    private var objectId: Output? =
        null

    private var `value`: Output? = null

    /**
     * @param value Indicates whether or not this extension is critical (i.e., if the client does not know how to
     * handle this extension, the client should consider this to be an error).
     */
    @JvmName("aidbawreefirdwif")
    public suspend fun critical(`value`: Output) {
        this.critical = value
    }

    /**
     * @param value Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     */
    @JvmName("btkncmqjbgffokep")
    public suspend fun objectId(`value`: Output) {
        this.objectId = value
    }

    /**
     * @param value The value of this X.509 extension. A base64-encoded string.
     */
    @JvmName("csytgcedbguokuqo")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Indicates whether or not this extension is critical (i.e., if the client does not know how to
     * handle this extension, the client should consider this to be an error).
     */
    @JvmName("gufikubywllejmje")
    public suspend fun critical(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.critical = mapped
    }

    /**
     * @param value Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     */
    @JvmName("dohebkamcgkrrcdb")
    public suspend fun objectId(`value`: CaPoolIssuancePolicyBaselineValuesAdditionalExtensionObjectIdArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.objectId = mapped
    }

    /**
     * @param argument Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     */
    @JvmName("uwbportqyqutmfkn")
    public suspend fun objectId(argument: suspend CaPoolIssuancePolicyBaselineValuesAdditionalExtensionObjectIdArgsBuilder.() -> Unit) {
        val toBeMapped =
            CaPoolIssuancePolicyBaselineValuesAdditionalExtensionObjectIdArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.objectId = mapped
    }

    /**
     * @param value The value of this X.509 extension. A base64-encoded string.
     */
    @JvmName("evitlatwrihxmmkf")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs =
        CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs(
            critical = critical ?: throw PulumiNullFieldException("critical"),
            objectId = objectId ?: throw PulumiNullFieldException("objectId"),
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy