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

com.pulumi.azurenative.keyvault.kotlin.inputs.KeyAttributesArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.keyvault.kotlin.inputs

import com.pulumi.azurenative.keyvault.inputs.KeyAttributesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The object attributes managed by the Azure Key Vault service.
 * @property enabled Determines whether or not the object is enabled.
 * @property expires Expiry date in seconds since 1970-01-01T00:00:00Z.
 * @property exportable Indicates if the private key can be exported.
 * @property notBefore Not before date in seconds since 1970-01-01T00:00:00Z.
 */
public data class KeyAttributesArgs(
    public val enabled: Output? = null,
    public val expires: Output? = null,
    public val exportable: Output? = null,
    public val notBefore: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.keyvault.inputs.KeyAttributesArgs =
        com.pulumi.azurenative.keyvault.inputs.KeyAttributesArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .expires(expires?.applyValue({ args0 -> args0 }))
            .exportable(exportable?.applyValue({ args0 -> args0 }))
            .notBefore(notBefore?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KeyAttributesArgs].
 */
@PulumiTagMarker
public class KeyAttributesArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var expires: Output? = null

    private var exportable: Output? = null

    private var notBefore: Output? = null

    /**
     * @param value Determines whether or not the object is enabled.
     */
    @JvmName("xcvqcevdumjokwit")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Expiry date in seconds since 1970-01-01T00:00:00Z.
     */
    @JvmName("yufwrygiwjciiogp")
    public suspend fun expires(`value`: Output) {
        this.expires = value
    }

    /**
     * @param value Indicates if the private key can be exported.
     */
    @JvmName("eumdbbcqnfdiefjj")
    public suspend fun exportable(`value`: Output) {
        this.exportable = value
    }

    /**
     * @param value Not before date in seconds since 1970-01-01T00:00:00Z.
     */
    @JvmName("gtkjgetbfmqxmjcy")
    public suspend fun notBefore(`value`: Output) {
        this.notBefore = value
    }

    /**
     * @param value Determines whether or not the object is enabled.
     */
    @JvmName("onotjirqestxlpoc")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Expiry date in seconds since 1970-01-01T00:00:00Z.
     */
    @JvmName("qbafroyhfdfiurid")
    public suspend fun expires(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expires = mapped
    }

    /**
     * @param value Indicates if the private key can be exported.
     */
    @JvmName("mcfyqcqmpiebgilj")
    public suspend fun exportable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exportable = mapped
    }

    /**
     * @param value Not before date in seconds since 1970-01-01T00:00:00Z.
     */
    @JvmName("pwsfhaejgtltijrm")
    public suspend fun notBefore(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notBefore = mapped
    }

    internal fun build(): KeyAttributesArgs = KeyAttributesArgs(
        enabled = enabled,
        expires = expires,
        exportable = exportable,
        notBefore = notBefore,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy