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

com.pulumi.azure.keyvault.kotlin.inputs.CertifiateCertificatePolicyX509CertificatePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyX509CertificatePropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property extendedKeyUsages A list of Extended/Enhanced Key Usages.
 * @property keyUsages A list of uses associated with this Key. Possible values include `cRLSign`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `encipherOnly`, `keyAgreement`, `keyCertSign`, `keyEncipherment` and `nonRepudiation` and are case-sensitive.
 * @property subject The Certificate's Subject.
 * @property subjectAlternativeNames A `subject_alternative_names` block as defined below.
 * @property validityInMonths The Certificates Validity Period in Months.
 */
public data class CertifiateCertificatePolicyX509CertificatePropertiesArgs(
    public val extendedKeyUsages: Output>? = null,
    public val keyUsages: Output>,
    public val subject: Output,
    public val subjectAlternativeNames: Output? =
        null,
    public val validityInMonths: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyX509CertificatePropertiesArgs =
        com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyX509CertificatePropertiesArgs.builder()
            .extendedKeyUsages(extendedKeyUsages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .keyUsages(keyUsages.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subject(subject.applyValue({ args0 -> args0 }))
            .subjectAlternativeNames(
                subjectAlternativeNames?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .validityInMonths(validityInMonths.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertifiateCertificatePolicyX509CertificatePropertiesArgs].
 */
@PulumiTagMarker
public class CertifiateCertificatePolicyX509CertificatePropertiesArgsBuilder internal constructor() {
    private var extendedKeyUsages: Output>? = null

    private var keyUsages: Output>? = null

    private var subject: Output? = null

    private var subjectAlternativeNames:
        Output? =
        null

    private var validityInMonths: Output? = null

    /**
     * @param value A list of Extended/Enhanced Key Usages.
     */
    @JvmName("tbyofrrqfbomlxyd")
    public suspend fun extendedKeyUsages(`value`: Output>) {
        this.extendedKeyUsages = value
    }

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

    /**
     * @param values A list of Extended/Enhanced Key Usages.
     */
    @JvmName("cjjvtrtgbqnxsodi")
    public suspend fun extendedKeyUsages(values: List>) {
        this.extendedKeyUsages = Output.all(values)
    }

    /**
     * @param value A list of uses associated with this Key. Possible values include `cRLSign`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `encipherOnly`, `keyAgreement`, `keyCertSign`, `keyEncipherment` and `nonRepudiation` and are case-sensitive.
     */
    @JvmName("yeomcniatwllxvyy")
    public suspend fun keyUsages(`value`: Output>) {
        this.keyUsages = value
    }

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

    /**
     * @param values A list of uses associated with this Key. Possible values include `cRLSign`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `encipherOnly`, `keyAgreement`, `keyCertSign`, `keyEncipherment` and `nonRepudiation` and are case-sensitive.
     */
    @JvmName("yvtsvyfndjbfyvno")
    public suspend fun keyUsages(values: List>) {
        this.keyUsages = Output.all(values)
    }

    /**
     * @param value The Certificate's Subject.
     */
    @JvmName("ivtvwfnahafnyrgy")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value A `subject_alternative_names` block as defined below.
     */
    @JvmName("hxdhfhjystsusrgu")
    public suspend fun subjectAlternativeNames(`value`: Output) {
        this.subjectAlternativeNames = value
    }

    /**
     * @param value The Certificates Validity Period in Months.
     */
    @JvmName("thtkmnbrmepsfqlm")
    public suspend fun validityInMonths(`value`: Output) {
        this.validityInMonths = value
    }

    /**
     * @param value A list of Extended/Enhanced Key Usages.
     */
    @JvmName("xttbuyaduoyxnxsi")
    public suspend fun extendedKeyUsages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedKeyUsages = mapped
    }

    /**
     * @param values A list of Extended/Enhanced Key Usages.
     */
    @JvmName("unwwvjqsradfkpcs")
    public suspend fun extendedKeyUsages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extendedKeyUsages = mapped
    }

    /**
     * @param value A list of uses associated with this Key. Possible values include `cRLSign`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `encipherOnly`, `keyAgreement`, `keyCertSign`, `keyEncipherment` and `nonRepudiation` and are case-sensitive.
     */
    @JvmName("vvdgqmfiywxppfgo")
    public suspend fun keyUsages(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUsages = mapped
    }

    /**
     * @param values A list of uses associated with this Key. Possible values include `cRLSign`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `encipherOnly`, `keyAgreement`, `keyCertSign`, `keyEncipherment` and `nonRepudiation` and are case-sensitive.
     */
    @JvmName("xdrwmvfuqnweuosg")
    public suspend fun keyUsages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUsages = mapped
    }

    /**
     * @param value The Certificate's Subject.
     */
    @JvmName("vpaqdbcfmxpenhjm")
    public suspend fun subject(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param value A `subject_alternative_names` block as defined below.
     */
    @JvmName("werplovytvavjnmp")
    public suspend fun subjectAlternativeNames(`value`: CertifiateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subjectAlternativeNames = mapped
    }

    /**
     * @param argument A `subject_alternative_names` block as defined below.
     */
    @JvmName("btabfrxnwrlmullg")
    public suspend fun subjectAlternativeNames(argument: suspend CertifiateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgsBuilder.() -> Unit) {
        val toBeMapped =
            CertifiateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.subjectAlternativeNames = mapped
    }

    /**
     * @param value The Certificates Validity Period in Months.
     */
    @JvmName("cuvoaxmrbijqkgeg")
    public suspend fun validityInMonths(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validityInMonths = mapped
    }

    internal fun build(): CertifiateCertificatePolicyX509CertificatePropertiesArgs =
        CertifiateCertificatePolicyX509CertificatePropertiesArgs(
            extendedKeyUsages = extendedKeyUsages,
            keyUsages = keyUsages ?: throw PulumiNullFieldException("keyUsages"),
            subject = subject ?: throw PulumiNullFieldException("subject"),
            subjectAlternativeNames = subjectAlternativeNames,
            validityInMonths = validityInMonths ?: throw PulumiNullFieldException("validityInMonths"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy