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

com.pulumi.azure.backup.kotlin.outputs.PolicyVMBackup.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.backup.kotlin.outputs

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

/**
 *
 * @property frequency Sets the backup frequency. Possible values are `Hourly`, `Daily` and `Weekly`.
 * @property hourDuration Duration of the backup window in hours. Possible values are between `4` and `24` This is used when `frequency` is `Hourly`.
 * > **NOTE:** `hour_duration` must be multiplier of `hour_interval`
 * @property hourInterval Interval in hour at which backup is triggered. Possible values are `4`, `6`, `8` and `12`. This is used when `frequency` is `Hourly`.
 * @property time The time of day to perform the backup in 24hour format.
 * @property weekdays The days of the week to perform backups on. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. This is used when `frequency` is `Weekly`.
 */
public data class PolicyVMBackup(
    public val frequency: String,
    public val hourDuration: Int? = null,
    public val hourInterval: Int? = null,
    public val time: String,
    public val weekdays: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.backup.outputs.PolicyVMBackup): PolicyVMBackup =
            PolicyVMBackup(
                frequency = javaType.frequency(),
                hourDuration = javaType.hourDuration().map({ args0 -> args0 }).orElse(null),
                hourInterval = javaType.hourInterval().map({ args0 -> args0 }).orElse(null),
                time = javaType.time(),
                weekdays = javaType.weekdays().map({ args0 -> args0 }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy