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

com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyKubernetesClusterRetentionRuleCriteria.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.dataprotection.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property absoluteCriteria Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
 * @property daysOfWeeks Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
 * @property monthsOfYears Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
 * @property scheduledBackupTimes Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
 * @property weeksOfMonths Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
 */
public data class BackupPolicyKubernetesClusterRetentionRuleCriteria(
    public val absoluteCriteria: String? = null,
    public val daysOfWeeks: List? = null,
    public val monthsOfYears: List? = null,
    public val scheduledBackupTimes: List? = null,
    public val weeksOfMonths: List? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.dataprotection.outputs.BackupPolicyKubernetesClusterRetentionRuleCriteria):
            BackupPolicyKubernetesClusterRetentionRuleCriteria =
            BackupPolicyKubernetesClusterRetentionRuleCriteria(
                absoluteCriteria = javaType.absoluteCriteria().map({ args0 -> args0 }).orElse(null),
                daysOfWeeks = javaType.daysOfWeeks().map({ args0 -> args0 }),
                monthsOfYears = javaType.monthsOfYears().map({ args0 -> args0 }),
                scheduledBackupTimes = javaType.scheduledBackupTimes().map({ args0 -> args0 }),
                weeksOfMonths = javaType.weeksOfMonths().map({ args0 -> args0 }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy