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

com.pulumi.azurenative.compute.kotlin.inputs.EncryptionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.EncryptionArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.EncryptionType
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Encryption at rest settings for disk or snapshot
 * @property diskEncryptionSetId ResourceId of the disk encryption set to use for enabling encryption at rest.
 * @property type The type of key used to encrypt the data of the disk.
 */
public data class EncryptionArgs(
    public val diskEncryptionSetId: Output? = null,
    public val type: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.EncryptionArgs =
        com.pulumi.azurenative.compute.inputs.EncryptionArgs.builder()
            .diskEncryptionSetId(diskEncryptionSetId?.applyValue({ args0 -> args0 }))
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EncryptionArgs].
 */
@PulumiTagMarker
public class EncryptionArgsBuilder internal constructor() {
    private var diskEncryptionSetId: Output? = null

    private var type: Output>? = null

    /**
     * @param value ResourceId of the disk encryption set to use for enabling encryption at rest.
     */
    @JvmName("leevldlyxklfbqqp")
    public suspend fun diskEncryptionSetId(`value`: Output) {
        this.diskEncryptionSetId = value
    }

    /**
     * @param value The type of key used to encrypt the data of the disk.
     */
    @JvmName("faaavairmdxqyixu")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value ResourceId of the disk encryption set to use for enabling encryption at rest.
     */
    @JvmName("cyqnxavglsgintcq")
    public suspend fun diskEncryptionSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionSetId = mapped
    }

    /**
     * @param value The type of key used to encrypt the data of the disk.
     */
    @JvmName("jnchrnykreawxeqv")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type of key used to encrypt the data of the disk.
     */
    @JvmName("tfgfxkqwqsbcvtbv")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type of key used to encrypt the data of the disk.
     */
    @JvmName("mwpwjfobbtiblxwi")
    public fun type(`value`: EncryptionType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): EncryptionArgs = EncryptionArgs(
        diskEncryptionSetId = diskEncryptionSetId,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy