All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.storage.kotlin.outputs.AccountBlobPropertiesDeleteRetentionPolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.storage.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 AccountBlobPropertiesDeleteRetentionPolicy(
    public val days: Int? = null,
    public val permanentDeleteEnabled: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.storage.outputs.AccountBlobPropertiesDeleteRetentionPolicy): AccountBlobPropertiesDeleteRetentionPolicy = AccountBlobPropertiesDeleteRetentionPolicy(
            days = javaType.days().map({ args0 -> args0 }).orElse(null),
            permanentDeleteEnabled = javaType.permanentDeleteEnabled().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy