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

com.pulumi.azurenative.compute.kotlin.inputs.RestorePointEncryptionArgs.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.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.RestorePointEncryptionArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.RestorePointEncryptionType
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point.
 * @property diskEncryptionSet Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
 * @property type The type of key used to encrypt the data of the disk restore point.
 */
public data class RestorePointEncryptionArgs(
    public val diskEncryptionSet: Output? = null,
    public val type: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.RestorePointEncryptionArgs =
        com.pulumi.azurenative.compute.inputs.RestorePointEncryptionArgs.builder()
            .diskEncryptionSet(diskEncryptionSet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RestorePointEncryptionArgs].
 */
@PulumiTagMarker
public class RestorePointEncryptionArgsBuilder internal constructor() {
    private var diskEncryptionSet: Output? = null

    private var type: Output>? = null

    /**
     * @param value Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
     */
    @JvmName("lxhcvilwjnlysvhe")
    public suspend fun diskEncryptionSet(`value`: Output) {
        this.diskEncryptionSet = value
    }

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

    /**
     * @param value Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
     */
    @JvmName("rtvjcrcyqnamvush")
    public suspend fun diskEncryptionSet(`value`: DiskEncryptionSetParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionSet = mapped
    }

    /**
     * @param argument Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
     */
    @JvmName("fqkydtbgpdomwjih")
    public suspend fun diskEncryptionSet(argument: suspend DiskEncryptionSetParametersArgsBuilder.() -> Unit) {
        val toBeMapped = DiskEncryptionSetParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.diskEncryptionSet = mapped
    }

    /**
     * @param value The type of key used to encrypt the data of the disk restore point.
     */
    @JvmName("bhghbulghoccqnyw")
    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 restore point.
     */
    @JvmName("xqabfihtytbliyxo")
    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 restore point.
     */
    @JvmName("xpfyspdbcrrjfnkr")
    public fun type(`value`: RestorePointEncryptionType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): RestorePointEncryptionArgs = RestorePointEncryptionArgs(
        diskEncryptionSet = diskEncryptionSet,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy