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

com.pulumi.awsnative.pcaconnectorad.kotlin.inputs.TemplateV2Args.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pcaconnectorad.kotlin.inputs

import com.pulumi.awsnative.pcaconnectorad.inputs.TemplateV2Args.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property certificateValidity
 * @property enrollmentFlags
 * @property extensions
 * @property generalFlags
 * @property privateKeyAttributes
 * @property privateKeyFlags
 * @property subjectNameFlags
 * @property supersededTemplates
 */
public data class TemplateV2Args(
    public val certificateValidity: Output,
    public val enrollmentFlags: Output,
    public val extensions: Output,
    public val generalFlags: Output,
    public val privateKeyAttributes: Output,
    public val privateKeyFlags: Output,
    public val subjectNameFlags: Output,
    public val supersededTemplates: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pcaconnectorad.inputs.TemplateV2Args =
        com.pulumi.awsnative.pcaconnectorad.inputs.TemplateV2Args.builder()
            .certificateValidity(
                certificateValidity.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .enrollmentFlags(enrollmentFlags.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .extensions(extensions.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .generalFlags(generalFlags.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .privateKeyAttributes(
                privateKeyAttributes.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .privateKeyFlags(privateKeyFlags.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subjectNameFlags(subjectNameFlags.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .supersededTemplates(
                supersededTemplates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateV2Args].
 */
@PulumiTagMarker
public class TemplateV2ArgsBuilder internal constructor() {
    private var certificateValidity: Output? = null

    private var enrollmentFlags: Output? = null

    private var extensions: Output? = null

    private var generalFlags: Output? = null

    private var privateKeyAttributes: Output? = null

    private var privateKeyFlags: Output? = null

    private var subjectNameFlags: Output? = null

    private var supersededTemplates: Output>? = null

    /**
     * @param value
     */
    @JvmName("qmwkxiriqhempatp")
    public suspend fun certificateValidity(`value`: Output) {
        this.certificateValidity = value
    }

    /**
     * @param value
     */
    @JvmName("iagjoxwssfgcgvrs")
    public suspend fun enrollmentFlags(`value`: Output) {
        this.enrollmentFlags = value
    }

    /**
     * @param value
     */
    @JvmName("tgnavmtnjpvqdcyl")
    public suspend fun extensions(`value`: Output) {
        this.extensions = value
    }

    /**
     * @param value
     */
    @JvmName("krmchmyjencdasau")
    public suspend fun generalFlags(`value`: Output) {
        this.generalFlags = value
    }

    /**
     * @param value
     */
    @JvmName("dvvhofwcypclcgpj")
    public suspend fun privateKeyAttributes(`value`: Output) {
        this.privateKeyAttributes = value
    }

    /**
     * @param value
     */
    @JvmName("lcmhhouiheetnlsi")
    public suspend fun privateKeyFlags(`value`: Output) {
        this.privateKeyFlags = value
    }

    /**
     * @param value
     */
    @JvmName("oemlysiyehvsmwug")
    public suspend fun subjectNameFlags(`value`: Output) {
        this.subjectNameFlags = value
    }

    /**
     * @param value
     */
    @JvmName("iomacjpjggqudkjv")
    public suspend fun supersededTemplates(`value`: Output>) {
        this.supersededTemplates = value
    }

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

    /**
     * @param values
     */
    @JvmName("totnvctenetajjox")
    public suspend fun supersededTemplates(values: List>) {
        this.supersededTemplates = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("wqjnhkntwwgesors")
    public suspend fun certificateValidity(`value`: TemplateCertificateValidityArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificateValidity = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tndnvucbwwvvfait")
    public suspend fun certificateValidity(argument: suspend TemplateCertificateValidityArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateCertificateValidityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.certificateValidity = mapped
    }

    /**
     * @param value
     */
    @JvmName("agomlxweaeqfwpye")
    public suspend fun enrollmentFlags(`value`: TemplateEnrollmentFlagsV2Args) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enrollmentFlags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bxfyaagqafjtvflh")
    public suspend fun enrollmentFlags(argument: suspend TemplateEnrollmentFlagsV2ArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateEnrollmentFlagsV2ArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.enrollmentFlags = mapped
    }

    /**
     * @param value
     */
    @JvmName("dfvvuhpmvbprqdny")
    public suspend fun extensions(`value`: TemplateExtensionsV2Args) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extensions = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ksqibxshncthpxyo")
    public suspend fun extensions(argument: suspend TemplateExtensionsV2ArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateExtensionsV2ArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extensions = mapped
    }

    /**
     * @param value
     */
    @JvmName("tsnftjoxtdfsxxyl")
    public suspend fun generalFlags(`value`: TemplateGeneralFlagsV2Args) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.generalFlags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("svilpkcmhmqwhjhl")
    public suspend fun generalFlags(argument: suspend TemplateGeneralFlagsV2ArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateGeneralFlagsV2ArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.generalFlags = mapped
    }

    /**
     * @param value
     */
    @JvmName("ufwgcwaqpvlbrjga")
    public suspend fun privateKeyAttributes(`value`: TemplatePrivateKeyAttributesV2Args) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateKeyAttributes = mapped
    }

    /**
     * @param argument
     */
    @JvmName("uxfdpogtiyiggtkw")
    public suspend fun privateKeyAttributes(argument: suspend TemplatePrivateKeyAttributesV2ArgsBuilder.() -> Unit) {
        val toBeMapped = TemplatePrivateKeyAttributesV2ArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.privateKeyAttributes = mapped
    }

    /**
     * @param value
     */
    @JvmName("vnvxubigknwmktcb")
    public suspend fun privateKeyFlags(`value`: TemplatePrivateKeyFlagsV2Args) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateKeyFlags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("mfljtrxbkrorlwsi")
    public suspend fun privateKeyFlags(argument: suspend TemplatePrivateKeyFlagsV2ArgsBuilder.() -> Unit) {
        val toBeMapped = TemplatePrivateKeyFlagsV2ArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.privateKeyFlags = mapped
    }

    /**
     * @param value
     */
    @JvmName("mvswkeldpleglvsj")
    public suspend fun subjectNameFlags(`value`: TemplateSubjectNameFlagsV2Args) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subjectNameFlags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("viyaogitukqugiqu")
    public suspend fun subjectNameFlags(argument: suspend TemplateSubjectNameFlagsV2ArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateSubjectNameFlagsV2ArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.subjectNameFlags = mapped
    }

    /**
     * @param value
     */
    @JvmName("mmykvkqustxwgbgq")
    public suspend fun supersededTemplates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supersededTemplates = mapped
    }

    /**
     * @param values
     */
    @JvmName("qehsefdahrkndfqb")
    public suspend fun supersededTemplates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supersededTemplates = mapped
    }

    internal fun build(): TemplateV2Args = TemplateV2Args(
        certificateValidity = certificateValidity ?: throw PulumiNullFieldException("certificateValidity"),
        enrollmentFlags = enrollmentFlags ?: throw PulumiNullFieldException("enrollmentFlags"),
        extensions = extensions ?: throw PulumiNullFieldException("extensions"),
        generalFlags = generalFlags ?: throw PulumiNullFieldException("generalFlags"),
        privateKeyAttributes = privateKeyAttributes ?: throw
            PulumiNullFieldException("privateKeyAttributes"),
        privateKeyFlags = privateKeyFlags ?: throw PulumiNullFieldException("privateKeyFlags"),
        subjectNameFlags = subjectNameFlags ?: throw PulumiNullFieldException("subjectNameFlags"),
        supersededTemplates = supersededTemplates,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy