![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.dataprotection.kotlin.inputs.BackupPolicyArgs.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.dataprotection.kotlin.inputs
import com.pulumi.azurenative.dataprotection.inputs.BackupPolicyArgs.builder
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.collections.List
import kotlin.jvm.JvmName
/**
* Rule based backup policy
* @property datasourceTypes Type of datasource for the backup management
* @property objectType
* Expected value is 'BackupPolicy'.
* @property policyRules Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
*/
public data class BackupPolicyArgs(
public val datasourceTypes: Output>,
public val objectType: Output,
public val policyRules: Output>>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.dataprotection.inputs.BackupPolicyArgs =
com.pulumi.azurenative.dataprotection.inputs.BackupPolicyArgs.builder()
.datasourceTypes(datasourceTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.objectType(objectType.applyValue({ args0 -> args0 }))
.policyRules(
policyRules.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 -> args0.toJava() })
}, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
})
}),
).build()
}
/**
* Builder for [BackupPolicyArgs].
*/
@PulumiTagMarker
public class BackupPolicyArgsBuilder internal constructor() {
private var datasourceTypes: Output>? = null
private var objectType: Output? = null
private var policyRules: Output>>? = null
/**
* @param value Type of datasource for the backup management
*/
@JvmName("vukvuvapgaxnwrrk")
public suspend fun datasourceTypes(`value`: Output>) {
this.datasourceTypes = value
}
@JvmName("kvaxejugdkoyeshn")
public suspend fun datasourceTypes(vararg values: Output) {
this.datasourceTypes = Output.all(values.asList())
}
/**
* @param values Type of datasource for the backup management
*/
@JvmName("lbltbffxwuubymrf")
public suspend fun datasourceTypes(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy