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

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

/**
 *
 * @property isCa Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.
 * @property maxIssuerPathLength Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
 */
public data class CertificateTemplatePredefinedValuesCaOptionsArgs(
    public val isCa: Output? = null,
    public val maxIssuerPathLength: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePredefinedValuesCaOptionsArgs =
        com.pulumi.gcp.certificateauthority.inputs.CertificateTemplatePredefinedValuesCaOptionsArgs.builder()
            .isCa(isCa?.applyValue({ args0 -> args0 }))
            .maxIssuerPathLength(maxIssuerPathLength?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateTemplatePredefinedValuesCaOptionsArgs].
 */
@PulumiTagMarker
public class CertificateTemplatePredefinedValuesCaOptionsArgsBuilder internal constructor() {
    private var isCa: Output? = null

    private var maxIssuerPathLength: Output? = null

    /**
     * @param value Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.
     */
    @JvmName("uqejbneuoirgtcpb")
    public suspend fun isCa(`value`: Output) {
        this.isCa = value
    }

    /**
     * @param value Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
     */
    @JvmName("dpdnqetmrrhjkotq")
    public suspend fun maxIssuerPathLength(`value`: Output) {
        this.maxIssuerPathLength = value
    }

    /**
     * @param value Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.
     */
    @JvmName("acncvdskoagcojla")
    public suspend fun isCa(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isCa = mapped
    }

    /**
     * @param value Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
     */
    @JvmName("slsksbpxawmsrtao")
    public suspend fun maxIssuerPathLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxIssuerPathLength = mapped
    }

    internal fun build(): CertificateTemplatePredefinedValuesCaOptionsArgs =
        CertificateTemplatePredefinedValuesCaOptionsArgs(
            isCa = isCa,
            maxIssuerPathLength = maxIssuerPathLength,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy