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

com.pulumi.azure.appservice.kotlin.outputs.AppServiceBackupSchedule.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.appservice.kotlin.outputs

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

/**
 *
 * @property frequencyInterval Sets how often the backup should be executed.
 * @property frequencyUnit Sets the unit of time for how often the backup should be executed. Possible values are `Day` or `Hour`.
 * @property keepAtLeastOneBackup Should at least one backup always be kept in the Storage Account by the Retention Policy, regardless of how old it is?
 * @property retentionPeriodInDays Specifies the number of days after which Backups should be deleted. Defaults to `30`.
 * @property startTime Sets when the schedule should start working.
 */
public data class AppServiceBackupSchedule(
    public val frequencyInterval: Int,
    public val frequencyUnit: String,
    public val keepAtLeastOneBackup: Boolean? = null,
    public val retentionPeriodInDays: Int? = null,
    public val startTime: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.AppServiceBackupSchedule):
            AppServiceBackupSchedule = AppServiceBackupSchedule(
            frequencyInterval = javaType.frequencyInterval(),
            frequencyUnit = javaType.frequencyUnit(),
            keepAtLeastOneBackup = javaType.keepAtLeastOneBackup().map({ args0 -> args0 }).orElse(null),
            retentionPeriodInDays = javaType.retentionPeriodInDays().map({ args0 -> args0 }).orElse(null),
            startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy