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

com.pulumi.googlenative.privateca.v1.kotlin.inputs.IssuanceModesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.privateca.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.privateca.v1.inputs.IssuanceModesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * IssuanceModes specifies the allowed ways in which Certificates may be requested from this CaPool.
 * @property allowConfigBasedIssuance Optional. When true, allows callers to create Certificates by specifying a CertificateConfig.
 * @property allowCsrBasedIssuance Optional. When true, allows callers to create Certificates by specifying a CSR.
 */
public data class IssuanceModesArgs(
    public val allowConfigBasedIssuance: Output? = null,
    public val allowCsrBasedIssuance: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.privateca.v1.inputs.IssuanceModesArgs =
        com.pulumi.googlenative.privateca.v1.inputs.IssuanceModesArgs.builder()
            .allowConfigBasedIssuance(allowConfigBasedIssuance?.applyValue({ args0 -> args0 }))
            .allowCsrBasedIssuance(allowCsrBasedIssuance?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IssuanceModesArgs].
 */
@PulumiTagMarker
public class IssuanceModesArgsBuilder internal constructor() {
    private var allowConfigBasedIssuance: Output? = null

    private var allowCsrBasedIssuance: Output? = null

    /**
     * @param value Optional. When true, allows callers to create Certificates by specifying a CertificateConfig.
     */
    @JvmName("noxqgoutdpsmadkp")
    public suspend fun allowConfigBasedIssuance(`value`: Output) {
        this.allowConfigBasedIssuance = value
    }

    /**
     * @param value Optional. When true, allows callers to create Certificates by specifying a CSR.
     */
    @JvmName("uulmbfmifawvvvos")
    public suspend fun allowCsrBasedIssuance(`value`: Output) {
        this.allowCsrBasedIssuance = value
    }

    /**
     * @param value Optional. When true, allows callers to create Certificates by specifying a CertificateConfig.
     */
    @JvmName("vwmaolajqwdibplk")
    public suspend fun allowConfigBasedIssuance(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowConfigBasedIssuance = mapped
    }

    /**
     * @param value Optional. When true, allows callers to create Certificates by specifying a CSR.
     */
    @JvmName("fkleuktpneyttrmb")
    public suspend fun allowCsrBasedIssuance(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowCsrBasedIssuance = mapped
    }

    internal fun build(): IssuanceModesArgs = IssuanceModesArgs(
        allowConfigBasedIssuance = allowConfigBasedIssuance,
        allowCsrBasedIssuance = allowCsrBasedIssuance,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy