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

com.pulumi.awsnative.pcaconnectorad.kotlin.inputs.TemplatePrivateKeyAttributesV3Args.kt Maven / Gradle / Ivy

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

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

import com.pulumi.awsnative.pcaconnectorad.inputs.TemplatePrivateKeyAttributesV3Args.builder
import com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplateKeySpec
import com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplatePrivateKeyAlgorithm
import com.pulumi.core.Either
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 kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property algorithm
 * @property cryptoProviders
 * @property keySpec
 * @property keyUsageProperty
 * @property minimalKeyLength
 */
public data class TemplatePrivateKeyAttributesV3Args(
    public val algorithm: Output,
    public val cryptoProviders: Output>? = null,
    public val keySpec: Output,
    public val keyUsageProperty: Output>,
    public val minimalKeyLength: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pcaconnectorad.inputs.TemplatePrivateKeyAttributesV3Args =
        com.pulumi.awsnative.pcaconnectorad.inputs.TemplatePrivateKeyAttributesV3Args.builder()
            .algorithm(algorithm.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .cryptoProviders(cryptoProviders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .keySpec(keySpec.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyUsageProperty(
                keyUsageProperty.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .minimalKeyLength(minimalKeyLength.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TemplatePrivateKeyAttributesV3Args].
 */
@PulumiTagMarker
public class TemplatePrivateKeyAttributesV3ArgsBuilder internal constructor() {
    private var algorithm: Output? = null

    private var cryptoProviders: Output>? = null

    private var keySpec: Output? = null

    private var keyUsageProperty:
        Output>? =
        null

    private var minimalKeyLength: Output? = null

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value
     */
    @JvmName("tkrucnnjspbkuila")
    public fun keyUsageProperty(`value`: TemplateKeyUsageProperty0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            TemplateKeyUsageProperty0PropertiesArgs,
            TemplateKeyUsageProperty1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUsageProperty = mapped
    }

    /**
     * @param value
     */
    @JvmName("tfayqagjctxwrfea")
    public fun keyUsageProperty(`value`: TemplateKeyUsageProperty1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            TemplateKeyUsageProperty0PropertiesArgs,
            TemplateKeyUsageProperty1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUsageProperty = mapped
    }

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

    internal fun build(): TemplatePrivateKeyAttributesV3Args = TemplatePrivateKeyAttributesV3Args(
        algorithm = algorithm ?: throw PulumiNullFieldException("algorithm"),
        cryptoProviders = cryptoProviders,
        keySpec = keySpec ?: throw PulumiNullFieldException("keySpec"),
        keyUsageProperty = keyUsageProperty ?: throw PulumiNullFieldException("keyUsageProperty"),
        minimalKeyLength = minimalKeyLength ?: throw PulumiNullFieldException("minimalKeyLength"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy