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

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

/**
 *
 * @property allowConfigBasedIssuance When true, allows callers to create Certificates by specifying a CertificateConfig.
 * @property allowCsrBasedIssuance When true, allows callers to create Certificates by specifying a CSR.
 */
public data class CaPoolIssuancePolicyAllowedIssuanceModesArgs(
    public val allowConfigBasedIssuance: Output,
    public val allowCsrBasedIssuance: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyAllowedIssuanceModesArgs =
        com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyAllowedIssuanceModesArgs.builder()
            .allowConfigBasedIssuance(allowConfigBasedIssuance.applyValue({ args0 -> args0 }))
            .allowCsrBasedIssuance(allowCsrBasedIssuance.applyValue({ args0 -> args0 })).build()
}

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

    private var allowCsrBasedIssuance: Output? = null

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

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

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

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

    internal fun build(): CaPoolIssuancePolicyAllowedIssuanceModesArgs =
        CaPoolIssuancePolicyAllowedIssuanceModesArgs(
            allowConfigBasedIssuance = allowConfigBasedIssuance ?: throw
                PulumiNullFieldException("allowConfigBasedIssuance"),
            allowCsrBasedIssuance = allowCsrBasedIssuance ?: throw
                PulumiNullFieldException("allowCsrBasedIssuance"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy