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

com.pulumi.awsnative.pcaconnectorad.kotlin.inputs.TemplatePrivateKeyAttributesV2Args.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.TemplatePrivateKeyAttributesV2Args.builder
import com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplateKeySpec
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 cryptoProviders
 * @property keySpec
 * @property minimalKeyLength
 */
public data class TemplatePrivateKeyAttributesV2Args(
    public val cryptoProviders: Output>? = null,
    public val keySpec: Output,
    public val minimalKeyLength: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pcaconnectorad.inputs.TemplatePrivateKeyAttributesV2Args =
        com.pulumi.awsnative.pcaconnectorad.inputs.TemplatePrivateKeyAttributesV2Args.builder()
            .cryptoProviders(cryptoProviders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .keySpec(keySpec.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .minimalKeyLength(minimalKeyLength.applyValue({ args0 -> args0 })).build()
}

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

    private var keySpec: Output? = null

    private var minimalKeyLength: Output? = null

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

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy