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

com.pulumi.azure.siterecovery.kotlin.inputs.ReplicatedVMUnmanagedDiskArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.siterecovery.kotlin.inputs

import com.pulumi.azure.siterecovery.inputs.ReplicatedVMUnmanagedDiskArgs.builder
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property diskUri Id of disk that should be replicated. Changing this forces a new resource to be created.
 * @property stagingStorageAccountId Storage account that should be used for caching. Changing this forces a new resource to be created.
 * @property targetStorageAccountId Storage account disk should belong to when a failover is done. Changing this forces a new resource to be created.
 */
public data class ReplicatedVMUnmanagedDiskArgs(
    public val diskUri: Output,
    public val stagingStorageAccountId: Output,
    public val targetStorageAccountId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.siterecovery.inputs.ReplicatedVMUnmanagedDiskArgs =
        com.pulumi.azure.siterecovery.inputs.ReplicatedVMUnmanagedDiskArgs.builder()
            .diskUri(diskUri.applyValue({ args0 -> args0 }))
            .stagingStorageAccountId(stagingStorageAccountId.applyValue({ args0 -> args0 }))
            .targetStorageAccountId(targetStorageAccountId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReplicatedVMUnmanagedDiskArgs].
 */
@PulumiTagMarker
public class ReplicatedVMUnmanagedDiskArgsBuilder internal constructor() {
    private var diskUri: Output? = null

    private var stagingStorageAccountId: Output? = null

    private var targetStorageAccountId: Output? = null

    /**
     * @param value Id of disk that should be replicated. Changing this forces a new resource to be created.
     */
    @JvmName("rcwqquvakrhuxqpl")
    public suspend fun diskUri(`value`: Output) {
        this.diskUri = value
    }

    /**
     * @param value Storage account that should be used for caching. Changing this forces a new resource to be created.
     */
    @JvmName("tktblchinkttsoju")
    public suspend fun stagingStorageAccountId(`value`: Output) {
        this.stagingStorageAccountId = value
    }

    /**
     * @param value Storage account disk should belong to when a failover is done. Changing this forces a new resource to be created.
     */
    @JvmName("ajpsoqmkueasgrhl")
    public suspend fun targetStorageAccountId(`value`: Output) {
        this.targetStorageAccountId = value
    }

    /**
     * @param value Id of disk that should be replicated. Changing this forces a new resource to be created.
     */
    @JvmName("gkamhkodmfqqvgmg")
    public suspend fun diskUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diskUri = mapped
    }

    /**
     * @param value Storage account that should be used for caching. Changing this forces a new resource to be created.
     */
    @JvmName("bhocjusheouueitl")
    public suspend fun stagingStorageAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stagingStorageAccountId = mapped
    }

    /**
     * @param value Storage account disk should belong to when a failover is done. Changing this forces a new resource to be created.
     */
    @JvmName("ktvbadidsxuxkdqw")
    public suspend fun targetStorageAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetStorageAccountId = mapped
    }

    internal fun build(): ReplicatedVMUnmanagedDiskArgs = ReplicatedVMUnmanagedDiskArgs(
        diskUri = diskUri ?: throw PulumiNullFieldException("diskUri"),
        stagingStorageAccountId = stagingStorageAccountId ?: throw
            PulumiNullFieldException("stagingStorageAccountId"),
        targetStorageAccountId = targetStorageAccountId ?: throw
            PulumiNullFieldException("targetStorageAccountId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy