
com.pulumi.azurenative.recoveryservices.kotlin.inputs.AzureResourceProtectionIntentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.recoveryservices.kotlin.inputs
import com.pulumi.azurenative.recoveryservices.inputs.AzureResourceProtectionIntentArgs.builder
import com.pulumi.azurenative.recoveryservices.kotlin.enums.BackupManagementType
import com.pulumi.azurenative.recoveryservices.kotlin.enums.ProtectionStatus
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
/**
* IaaS VM specific backup protection intent item.
* @property backupManagementType Type of backup management for the backed up item.
* @property friendlyName Friendly name of the VM represented by this backup item.
* @property itemId ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
* @property policyId ID of the backup policy with which this item is backed up.
* @property protectionIntentItemType backup protectionIntent type.
* Expected value is 'AzureResourceItem'.
* @property protectionState Backup state of this backup item.
* @property sourceResourceId ARM ID of the resource to be backed up.
*/
public data class AzureResourceProtectionIntentArgs(
public val backupManagementType: Output>? = null,
public val friendlyName: Output? = null,
public val itemId: Output? = null,
public val policyId: Output? = null,
public val protectionIntentItemType: Output,
public val protectionState: Output>? = null,
public val sourceResourceId: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.recoveryservices.inputs.AzureResourceProtectionIntentArgs =
com.pulumi.azurenative.recoveryservices.inputs.AzureResourceProtectionIntentArgs.builder()
.backupManagementType(
backupManagementType?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.friendlyName(friendlyName?.applyValue({ args0 -> args0 }))
.itemId(itemId?.applyValue({ args0 -> args0 }))
.policyId(policyId?.applyValue({ args0 -> args0 }))
.protectionIntentItemType(protectionIntentItemType.applyValue({ args0 -> args0 }))
.protectionState(
protectionState?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.sourceResourceId(sourceResourceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AzureResourceProtectionIntentArgs].
*/
@PulumiTagMarker
public class AzureResourceProtectionIntentArgsBuilder internal constructor() {
private var backupManagementType: Output>? = null
private var friendlyName: Output? = null
private var itemId: Output? = null
private var policyId: Output? = null
private var protectionIntentItemType: Output? = null
private var protectionState: Output>? = null
private var sourceResourceId: Output? = null
/**
* @param value Type of backup management for the backed up item.
*/
@JvmName("wusnbjdpxbbexwql")
public suspend fun backupManagementType(`value`: Output>) {
this.backupManagementType = value
}
/**
* @param value Friendly name of the VM represented by this backup item.
*/
@JvmName("fadgpsjtovvqpyoo")
public suspend fun friendlyName(`value`: Output) {
this.friendlyName = value
}
/**
* @param value ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
*/
@JvmName("yxqjqyxdvejjhxwk")
public suspend fun itemId(`value`: Output) {
this.itemId = value
}
/**
* @param value ID of the backup policy with which this item is backed up.
*/
@JvmName("gocoltilchnrvnsh")
public suspend fun policyId(`value`: Output) {
this.policyId = value
}
/**
* @param value backup protectionIntent type.
* Expected value is 'AzureResourceItem'.
*/
@JvmName("xotutrfvvbmuobdk")
public suspend fun protectionIntentItemType(`value`: Output) {
this.protectionIntentItemType = value
}
/**
* @param value Backup state of this backup item.
*/
@JvmName("nivfdmeuypgeqixa")
public suspend fun protectionState(`value`: Output>) {
this.protectionState = value
}
/**
* @param value ARM ID of the resource to be backed up.
*/
@JvmName("vywaapjpqcnqpqil")
public suspend fun sourceResourceId(`value`: Output) {
this.sourceResourceId = value
}
/**
* @param value Type of backup management for the backed up item.
*/
@JvmName("eufbjkftwqtrcofn")
public suspend fun backupManagementType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupManagementType = mapped
}
/**
* @param value Type of backup management for the backed up item.
*/
@JvmName("cpwsrxsfbvhcgmsm")
public fun backupManagementType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backupManagementType = mapped
}
/**
* @param value Type of backup management for the backed up item.
*/
@JvmName("nofqocqgikhfdbwv")
public fun backupManagementType(`value`: BackupManagementType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backupManagementType = mapped
}
/**
* @param value Friendly name of the VM represented by this backup item.
*/
@JvmName("udynrygsywkjlptt")
public suspend fun friendlyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.friendlyName = mapped
}
/**
* @param value ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
*/
@JvmName("cicknbcefujbdeku")
public suspend fun itemId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.itemId = mapped
}
/**
* @param value ID of the backup policy with which this item is backed up.
*/
@JvmName("xeegjnyljwqsxrcv")
public suspend fun policyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyId = mapped
}
/**
* @param value backup protectionIntent type.
* Expected value is 'AzureResourceItem'.
*/
@JvmName("jxorggtcooycgxgh")
public suspend fun protectionIntentItemType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protectionIntentItemType = mapped
}
/**
* @param value Backup state of this backup item.
*/
@JvmName("mqvpsukccmvaveuh")
public suspend fun protectionState(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protectionState = mapped
}
/**
* @param value Backup state of this backup item.
*/
@JvmName("pydmatjlbhiokafw")
public fun protectionState(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protectionState = mapped
}
/**
* @param value Backup state of this backup item.
*/
@JvmName("riwfimasodjfskps")
public fun protectionState(`value`: ProtectionStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protectionState = mapped
}
/**
* @param value ARM ID of the resource to be backed up.
*/
@JvmName("tqikttofcyxmrlai")
public suspend fun sourceResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceResourceId = mapped
}
internal fun build(): AzureResourceProtectionIntentArgs = AzureResourceProtectionIntentArgs(
backupManagementType = backupManagementType,
friendlyName = friendlyName,
itemId = itemId,
policyId = policyId,
protectionIntentItemType = protectionIntentItemType ?: throw
PulumiNullFieldException("protectionIntentItemType"),
protectionState = protectionState,
sourceResourceId = sourceResourceId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy