com.pulumi.azure.dataprotection.kotlin.inputs.BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.dataprotection.kotlin.inputs
import com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs.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
/**
*
* @property dataStoreType The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
* @property duration The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*/
public data class BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs(
public val dataStoreType: Output,
public val duration: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs =
com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs.builder()
.dataStoreType(dataStoreType.applyValue({ args0 -> args0 }))
.duration(duration.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs].
*/
@PulumiTagMarker
public class BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgsBuilder internal constructor() {
private var dataStoreType: Output? = null
private var duration: Output? = null
/**
* @param value The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
*/
@JvmName("bvpasbyvqxgqvvmq")
public suspend fun dataStoreType(`value`: Output) {
this.dataStoreType = value
}
/**
* @param value The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*/
@JvmName("xqipacchxbgfngrq")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value The type of data store. The only possible value is `OperationalStore`. Changing this forces a new resource to be created.
*/
@JvmName("igxkvcpyxuusijcm")
public suspend fun dataStoreType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataStoreType = mapped
}
/**
* @param value The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
*/
@JvmName("sfsrkdoirvbyhquk")
public suspend fun duration(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.duration = mapped
}
internal fun build(): BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs =
BackupPolicyKubernetesClusterRetentionRuleLifeCycleArgs(
dataStoreType = dataStoreType ?: throw PulumiNullFieldException("dataStoreType"),
duration = duration ?: throw PulumiNullFieldException("duration"),
)
}