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

com.pulumi.azure.storage.kotlin.outputs.ManagementPolicyRuleActionsSnapshot.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property changeTierToArchiveAfterDaysSinceCreation The age in days after creation to tier blob snapshot to archive storage. Must be between 0 and 99999. Defaults to `-1`.
 * @property changeTierToCoolAfterDaysSinceCreation The age in days after creation to tier blob snapshot to cool storage. Must be between 0 and 99999. Defaults to `-1`.
 * @property deleteAfterDaysSinceCreationGreaterThan The age in days after creation to delete the blob snapshot. Must be between 0 and 99999. Defaults to `-1`.
 * @property tierToArchiveAfterDaysSinceLastTierChangeGreaterThan The age in days after last tier change to the blobs to skip to be archved. Must be between 0 and 99999. Defaults to `-1`.
 * @property tierToColdAfterDaysSinceCreationGreaterThan The age in days after creation to cold storage. Supports blob currently at Hot tier. Must be between `0` and `99999`. Defaults to `-1`.
 */
public data class ManagementPolicyRuleActionsSnapshot(
    public val changeTierToArchiveAfterDaysSinceCreation: Int? = null,
    public val changeTierToCoolAfterDaysSinceCreation: Int? = null,
    public val deleteAfterDaysSinceCreationGreaterThan: Int? = null,
    public val tierToArchiveAfterDaysSinceLastTierChangeGreaterThan: Int? = null,
    public val tierToColdAfterDaysSinceCreationGreaterThan: Int? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.storage.outputs.ManagementPolicyRuleActionsSnapshot):
            ManagementPolicyRuleActionsSnapshot = ManagementPolicyRuleActionsSnapshot(
            changeTierToArchiveAfterDaysSinceCreation = javaType.changeTierToArchiveAfterDaysSinceCreation().map({ args0 ->
                args0
            }).orElse(null),
            changeTierToCoolAfterDaysSinceCreation = javaType.changeTierToCoolAfterDaysSinceCreation().map({ args0 ->
                args0
            }).orElse(null),
            deleteAfterDaysSinceCreationGreaterThan = javaType.deleteAfterDaysSinceCreationGreaterThan().map({ args0 ->
                args0
            }).orElse(null),
            tierToArchiveAfterDaysSinceLastTierChangeGreaterThan = javaType.tierToArchiveAfterDaysSinceLastTierChangeGreaterThan().map({ args0 ->
                args0
            }).orElse(null),
            tierToColdAfterDaysSinceCreationGreaterThan = javaType.tierToColdAfterDaysSinceCreationGreaterThan().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy