com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicy.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.backup.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property backup A `backup` block as defined below.
* @property policyType The type of the VM Workload Backup Policy. Possible values are `Differential`, `Full`, `Incremental` and `Log`.
* @property retentionDaily A `retention_daily` block as defined below.
* @property retentionMonthly A `retention_monthly` block as defined below.
* @property retentionWeekly A `retention_weekly` block as defined below.
* @property retentionYearly A `retention_yearly` block as defined below.
* @property simpleRetention A `simple_retention` block as defined below.
*/
public data class PolicyVMWorkloadProtectionPolicy(
public val backup: PolicyVMWorkloadProtectionPolicyBackup,
public val policyType: String,
public val retentionDaily: PolicyVMWorkloadProtectionPolicyRetentionDaily? = null,
public val retentionMonthly: PolicyVMWorkloadProtectionPolicyRetentionMonthly? = null,
public val retentionWeekly: PolicyVMWorkloadProtectionPolicyRetentionWeekly? = null,
public val retentionYearly: PolicyVMWorkloadProtectionPolicyRetentionYearly? = null,
public val simpleRetention: PolicyVMWorkloadProtectionPolicySimpleRetention? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.backup.outputs.PolicyVMWorkloadProtectionPolicy):
PolicyVMWorkloadProtectionPolicy = PolicyVMWorkloadProtectionPolicy(
backup = javaType.backup().let({ args0 ->
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyBackup.Companion.toKotlin(args0)
}),
policyType = javaType.policyType(),
retentionDaily = javaType.retentionDaily().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyRetentionDaily.Companion.toKotlin(args0)
})
}).orElse(null),
retentionMonthly = javaType.retentionMonthly().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyRetentionMonthly.Companion.toKotlin(args0)
})
}).orElse(null),
retentionWeekly = javaType.retentionWeekly().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyRetentionWeekly.Companion.toKotlin(args0)
})
}).orElse(null),
retentionYearly = javaType.retentionYearly().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyRetentionYearly.Companion.toKotlin(args0)
})
}).orElse(null),
simpleRetention = javaType.simpleRetention().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicySimpleRetention.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy