![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.recoveryservices.kotlin.inputs.VMwareCbtDiskInputArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.recoveryservices.kotlin.inputs
import com.pulumi.azurenative.recoveryservices.inputs.VMwareCbtDiskInputArgs.builder
import com.pulumi.azurenative.recoveryservices.kotlin.enums.DiskAccountType
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* VMwareCbt disk input.
* @property diskEncryptionSetId The DiskEncryptionSet ARM Id.
* @property diskId The disk Id.
* @property diskType The disk type.
* @property isOSDisk A value indicating whether the disk is the OS disk.
* @property logStorageAccountId The log storage account ARM Id.
* @property logStorageAccountSasSecretName The key vault secret name of the log storage account.
*/
public data class VMwareCbtDiskInputArgs(
public val diskEncryptionSetId: Output? = null,
public val diskId: Output,
public val diskType: Output>? = null,
public val isOSDisk: Output,
public val logStorageAccountId: Output,
public val logStorageAccountSasSecretName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.recoveryservices.inputs.VMwareCbtDiskInputArgs =
com.pulumi.azurenative.recoveryservices.inputs.VMwareCbtDiskInputArgs.builder()
.diskEncryptionSetId(diskEncryptionSetId?.applyValue({ args0 -> args0 }))
.diskId(diskId.applyValue({ args0 -> args0 }))
.diskType(
diskType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.isOSDisk(isOSDisk.applyValue({ args0 -> args0 }))
.logStorageAccountId(logStorageAccountId.applyValue({ args0 -> args0 }))
.logStorageAccountSasSecretName(
logStorageAccountSasSecretName.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [VMwareCbtDiskInputArgs].
*/
@PulumiTagMarker
public class VMwareCbtDiskInputArgsBuilder internal constructor() {
private var diskEncryptionSetId: Output? = null
private var diskId: Output? = null
private var diskType: Output>? = null
private var isOSDisk: Output? = null
private var logStorageAccountId: Output? = null
private var logStorageAccountSasSecretName: Output? = null
/**
* @param value The DiskEncryptionSet ARM Id.
*/
@JvmName("dahejomivqoxawew")
public suspend fun diskEncryptionSetId(`value`: Output) {
this.diskEncryptionSetId = value
}
/**
* @param value The disk Id.
*/
@JvmName("vtvvjlamkjvvhqgw")
public suspend fun diskId(`value`: Output) {
this.diskId = value
}
/**
* @param value The disk type.
*/
@JvmName("wlpudeghgfqaeagu")
public suspend fun diskType(`value`: Output>) {
this.diskType = value
}
/**
* @param value A value indicating whether the disk is the OS disk.
*/
@JvmName("cgahpihoylmcfkgh")
public suspend fun isOSDisk(`value`: Output) {
this.isOSDisk = value
}
/**
* @param value The log storage account ARM Id.
*/
@JvmName("odskcenffqqolnjb")
public suspend fun logStorageAccountId(`value`: Output) {
this.logStorageAccountId = value
}
/**
* @param value The key vault secret name of the log storage account.
*/
@JvmName("asbycfunrypetfte")
public suspend fun logStorageAccountSasSecretName(`value`: Output) {
this.logStorageAccountSasSecretName = value
}
/**
* @param value The DiskEncryptionSet ARM Id.
*/
@JvmName("dmlhbxgqjngykppq")
public suspend fun diskEncryptionSetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskEncryptionSetId = mapped
}
/**
* @param value The disk Id.
*/
@JvmName("ycwepqjkktjgdulh")
public suspend fun diskId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.diskId = mapped
}
/**
* @param value The disk type.
*/
@JvmName("ltmxbxpitvdkvcqg")
public suspend fun diskType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskType = mapped
}
/**
* @param value The disk type.
*/
@JvmName("ymwnmcbkxsqfkriy")
public fun diskType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.diskType = mapped
}
/**
* @param value The disk type.
*/
@JvmName("dqenohferfsbiogy")
public fun diskType(`value`: DiskAccountType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.diskType = mapped
}
/**
* @param value A value indicating whether the disk is the OS disk.
*/
@JvmName("kwlwlnwvbrgvjkxr")
public suspend fun isOSDisk(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.isOSDisk = mapped
}
/**
* @param value The log storage account ARM Id.
*/
@JvmName("svjdcjtprlqxdmsg")
public suspend fun logStorageAccountId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logStorageAccountId = mapped
}
/**
* @param value The key vault secret name of the log storage account.
*/
@JvmName("phjakjvonhnbstjt")
public suspend fun logStorageAccountSasSecretName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logStorageAccountSasSecretName = mapped
}
internal fun build(): VMwareCbtDiskInputArgs = VMwareCbtDiskInputArgs(
diskEncryptionSetId = diskEncryptionSetId,
diskId = diskId ?: throw PulumiNullFieldException("diskId"),
diskType = diskType,
isOSDisk = isOSDisk ?: throw PulumiNullFieldException("isOSDisk"),
logStorageAccountId = logStorageAccountId ?: throw PulumiNullFieldException("logStorageAccountId"),
logStorageAccountSasSecretName = logStorageAccountSasSecretName ?: throw
PulumiNullFieldException("logStorageAccountSasSecretName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy