com.pulumi.azurenative.storagepool.kotlin.inputs.IscsiLunArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.storagepool.kotlin.inputs
import com.pulumi.azurenative.storagepool.inputs.IscsiLunArgs.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
/**
* LUN to expose the Azure Managed Disk.
* @property managedDiskAzureResourceId Azure Resource ID of the Managed Disk.
* @property name User defined name for iSCSI LUN; example: "lun0"
*/
public data class IscsiLunArgs(
public val managedDiskAzureResourceId: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.storagepool.inputs.IscsiLunArgs =
com.pulumi.azurenative.storagepool.inputs.IscsiLunArgs.builder()
.managedDiskAzureResourceId(managedDiskAzureResourceId.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IscsiLunArgs].
*/
@PulumiTagMarker
public class IscsiLunArgsBuilder internal constructor() {
private var managedDiskAzureResourceId: Output? = null
private var name: Output? = null
/**
* @param value Azure Resource ID of the Managed Disk.
*/
@JvmName("wbayxtswubmgqrey")
public suspend fun managedDiskAzureResourceId(`value`: Output) {
this.managedDiskAzureResourceId = value
}
/**
* @param value User defined name for iSCSI LUN; example: "lun0"
*/
@JvmName("gvalsjueiyjooain")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Azure Resource ID of the Managed Disk.
*/
@JvmName("vfoheddxybbsoyqm")
public suspend fun managedDiskAzureResourceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.managedDiskAzureResourceId = mapped
}
/**
* @param value User defined name for iSCSI LUN; example: "lun0"
*/
@JvmName("fpcbrlrfullriqjo")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): IscsiLunArgs = IscsiLunArgs(
managedDiskAzureResourceId = managedDiskAzureResourceId ?: throw
PulumiNullFieldException("managedDiskAzureResourceId"),
name = name ?: throw PulumiNullFieldException("name"),
)
}