![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.elasticsan.kotlin.inputs.VolumeCreateSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.elasticsan.kotlin.inputs
import com.pulumi.azure.elasticsan.inputs.VolumeCreateSourceArgs.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 sourceId Specifies the ID of the source to create the Elastic SAN Volume from. Changing this forces a new resource to be created.
* @property sourceType Specifies the type of the source to create the Elastic SAN Volume from. Possible values are `Disk`, `DiskRestorePoint`, `DiskSnapshot` and `VolumeSnapshot`. Changing this forces a new resource to be created.
*/
public data class VolumeCreateSourceArgs(
public val sourceId: Output,
public val sourceType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.elasticsan.inputs.VolumeCreateSourceArgs =
com.pulumi.azure.elasticsan.inputs.VolumeCreateSourceArgs.builder()
.sourceId(sourceId.applyValue({ args0 -> args0 }))
.sourceType(sourceType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeCreateSourceArgs].
*/
@PulumiTagMarker
public class VolumeCreateSourceArgsBuilder internal constructor() {
private var sourceId: Output? = null
private var sourceType: Output? = null
/**
* @param value Specifies the ID of the source to create the Elastic SAN Volume from. Changing this forces a new resource to be created.
*/
@JvmName("ufheuokvcgbybsis")
public suspend fun sourceId(`value`: Output) {
this.sourceId = value
}
/**
* @param value Specifies the type of the source to create the Elastic SAN Volume from. Possible values are `Disk`, `DiskRestorePoint`, `DiskSnapshot` and `VolumeSnapshot`. Changing this forces a new resource to be created.
*/
@JvmName("gvdknsagunlalfkg")
public suspend fun sourceType(`value`: Output) {
this.sourceType = value
}
/**
* @param value Specifies the ID of the source to create the Elastic SAN Volume from. Changing this forces a new resource to be created.
*/
@JvmName("ggwwjglipdykauyy")
public suspend fun sourceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourceId = mapped
}
/**
* @param value Specifies the type of the source to create the Elastic SAN Volume from. Possible values are `Disk`, `DiskRestorePoint`, `DiskSnapshot` and `VolumeSnapshot`. Changing this forces a new resource to be created.
*/
@JvmName("ysscbobbresbgcmy")
public suspend fun sourceType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourceType = mapped
}
internal fun build(): VolumeCreateSourceArgs = VolumeCreateSourceArgs(
sourceId = sourceId ?: throw PulumiNullFieldException("sourceId"),
sourceType = sourceType ?: throw PulumiNullFieldException("sourceType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy