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

com.pulumi.azurenative.compute.kotlin.inputs.RestorePointSourceVMOSDiskArgs.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.RestorePointSourceVMOSDiskArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Describes an Operating System disk.
 * @property diskRestorePoint Contains Disk Restore Point properties.
 * @property managedDisk Gets the managed disk details
 */
public data class RestorePointSourceVMOSDiskArgs(
    public val diskRestorePoint: Output? = null,
    public val managedDisk: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.RestorePointSourceVMOSDiskArgs =
        com.pulumi.azurenative.compute.inputs.RestorePointSourceVMOSDiskArgs.builder()
            .diskRestorePoint(diskRestorePoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .managedDisk(managedDisk?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RestorePointSourceVMOSDiskArgs].
 */
@PulumiTagMarker
public class RestorePointSourceVMOSDiskArgsBuilder internal constructor() {
    private var diskRestorePoint: Output? = null

    private var managedDisk: Output? = null

    /**
     * @param value Contains Disk Restore Point properties.
     */
    @JvmName("gexqjpsdmqmgptct")
    public suspend fun diskRestorePoint(`value`: Output) {
        this.diskRestorePoint = value
    }

    /**
     * @param value Gets the managed disk details
     */
    @JvmName("rbxacftqxkuirisf")
    public suspend fun managedDisk(`value`: Output) {
        this.managedDisk = value
    }

    /**
     * @param value Contains Disk Restore Point properties.
     */
    @JvmName("ajtmfyatkibjeyhk")
    public suspend fun diskRestorePoint(`value`: DiskRestorePointAttributesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskRestorePoint = mapped
    }

    /**
     * @param argument Contains Disk Restore Point properties.
     */
    @JvmName("aakjkaaqncfymyet")
    public suspend fun diskRestorePoint(argument: suspend DiskRestorePointAttributesArgsBuilder.() -> Unit) {
        val toBeMapped = DiskRestorePointAttributesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.diskRestorePoint = mapped
    }

    /**
     * @param value Gets the managed disk details
     */
    @JvmName("ekcuwsyqmnygixem")
    public suspend fun managedDisk(`value`: ManagedDiskParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedDisk = mapped
    }

    /**
     * @param argument Gets the managed disk details
     */
    @JvmName("whqkpxtsxfqgvfwn")
    public suspend fun managedDisk(argument: suspend ManagedDiskParametersArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedDiskParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.managedDisk = mapped
    }

    internal fun build(): RestorePointSourceVMOSDiskArgs = RestorePointSourceVMOSDiskArgs(
        diskRestorePoint = diskRestorePoint,
        managedDisk = managedDisk,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy