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

com.pulumi.azure.appservice.kotlin.outputs.LinuxWebAppBackupSchedule.kt Maven / Gradle / Ivy

@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 How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`).
 * > **NOTE:** Not all intervals are supported on all Linux Web App SKUs. Please refer to the official documentation for appropriate values.
 * @property frequencyUnit The unit of time for how often the backup should take place. Possible values include: `Day`, `Hour`
 * @property keepAtLeastOneBackup Should the service keep at least one backup, regardless of the age of backup? Defaults to `false`.
 * @property lastExecutionTime The time the backup was last attempted.
 * @property retentionPeriodDays After how many days backups should be deleted. Defaults to `30`.
 * @property startTime When the schedule should start working in RFC-3339 format.
 */
public data class LinuxWebAppBackupSchedule(
    public val frequencyInterval: Int,
    public val frequencyUnit: String,
    public val keepAtLeastOneBackup: Boolean? = null,
    public val lastExecutionTime: String? = null,
    public val retentionPeriodDays: Int? = null,
    public val startTime: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.LinuxWebAppBackupSchedule): LinuxWebAppBackupSchedule = LinuxWebAppBackupSchedule(
            frequencyInterval = javaType.frequencyInterval(),
            frequencyUnit = javaType.frequencyUnit(),
            keepAtLeastOneBackup = javaType.keepAtLeastOneBackup().map({ args0 -> args0 }).orElse(null),
            lastExecutionTime = javaType.lastExecutionTime().map({ args0 -> args0 }).orElse(null),
            retentionPeriodDays = javaType.retentionPeriodDays().map({ args0 -> args0 }).orElse(null),
            startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy