
com.pulumi.azure.storage.kotlin.inputs.AccountBlobPropertiesDeleteRetentionPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.storage.kotlin.inputs
import com.pulumi.azure.storage.inputs.AccountBlobPropertiesDeleteRetentionPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property days Specifies the number of days that the blob should be retained, between `1` and `365` days. Defaults to `7`.
* @property permanentDeleteEnabled Indicates whether permanent deletion of the soft deleted blob versions and snapshots is allowed. Defaults to `false`.
* > **Note:** `permanent_delete_enabled` cannot be set to true if a `restore_policy` block is defined.
*/
public data class AccountBlobPropertiesDeleteRetentionPolicyArgs(
public val days: Output? = null,
public val permanentDeleteEnabled: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.storage.inputs.AccountBlobPropertiesDeleteRetentionPolicyArgs =
com.pulumi.azure.storage.inputs.AccountBlobPropertiesDeleteRetentionPolicyArgs.builder()
.days(days?.applyValue({ args0 -> args0 }))
.permanentDeleteEnabled(permanentDeleteEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccountBlobPropertiesDeleteRetentionPolicyArgs].
*/
@PulumiTagMarker
public class AccountBlobPropertiesDeleteRetentionPolicyArgsBuilder internal constructor() {
private var days: Output? = null
private var permanentDeleteEnabled: Output? = null
/**
* @param value Specifies the number of days that the blob should be retained, between `1` and `365` days. Defaults to `7`.
*/
@JvmName("ovndgmglxseaoftm")
public suspend fun days(`value`: Output) {
this.days = value
}
/**
* @param value Indicates whether permanent deletion of the soft deleted blob versions and snapshots is allowed. Defaults to `false`.
* > **Note:** `permanent_delete_enabled` cannot be set to true if a `restore_policy` block is defined.
*/
@JvmName("bfxgwskwbrqfubtw")
public suspend fun permanentDeleteEnabled(`value`: Output) {
this.permanentDeleteEnabled = value
}
/**
* @param value Specifies the number of days that the blob should be retained, between `1` and `365` days. Defaults to `7`.
*/
@JvmName("xyxacnclagclynls")
public suspend fun days(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.days = mapped
}
/**
* @param value Indicates whether permanent deletion of the soft deleted blob versions and snapshots is allowed. Defaults to `false`.
* > **Note:** `permanent_delete_enabled` cannot be set to true if a `restore_policy` block is defined.
*/
@JvmName("mkfqtuyybhumqemu")
public suspend fun permanentDeleteEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.permanentDeleteEnabled = mapped
}
internal fun build(): AccountBlobPropertiesDeleteRetentionPolicyArgs =
AccountBlobPropertiesDeleteRetentionPolicyArgs(
days = days,
permanentDeleteEnabled = permanentDeleteEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy