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

com.pulumi.azure.storage.kotlin.outputs.ManagementPolicyRuleActionsVersion.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.Int
import kotlin.Suppress

/**
 *
 * @property changeTierToArchiveAfterDaysSinceCreation The age in days after creation to tier blob version to archive storage. Must be between 0 and 99999. Defaults to `-1`.
 * @property changeTierToCoolAfterDaysSinceCreation The age in days creation create to tier blob version to cool storage. Must be between 0 and 99999. Defaults to `-1`.
 * @property deleteAfterDaysSinceCreation The age in days after creation to delete the blob version. 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 ManagementPolicyRuleActionsVersion(
    public val changeTierToArchiveAfterDaysSinceCreation: Int? = null,
    public val changeTierToCoolAfterDaysSinceCreation: Int? = null,
    public val deleteAfterDaysSinceCreation: Int? = null,
    public val tierToArchiveAfterDaysSinceLastTierChangeGreaterThan: Int? = null,
    public val tierToColdAfterDaysSinceCreationGreaterThan: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.storage.outputs.ManagementPolicyRuleActionsVersion): ManagementPolicyRuleActionsVersion = ManagementPolicyRuleActionsVersion(
            changeTierToArchiveAfterDaysSinceCreation = javaType.changeTierToArchiveAfterDaysSinceCreation().map({ args0 ->
                args0
            }).orElse(null),
            changeTierToCoolAfterDaysSinceCreation = javaType.changeTierToCoolAfterDaysSinceCreation().map({ args0 ->
                args0
            }).orElse(null),
            deleteAfterDaysSinceCreation = javaType.deleteAfterDaysSinceCreation().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