com.pulumi.azure.mssql.kotlin.outputs.VirtualMachineAutoBackupManualSchedule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mssql.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property daysOfWeeks A list of days on which backup can take place. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`
* > **NOTE:** `days_of_week` can only be specified when `manual_schedule` is set to `Weekly`
* @property fullBackupFrequency Frequency of full backups. Valid values include `Daily` or `Weekly`.
* @property fullBackupStartHour Start hour of a given day during which full backups can take place. Valid values are from `0` to `23`.
* @property fullBackupWindowInHours Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between `1` and `23`.
* @property logBackupFrequencyInMinutes Frequency of log backups, in minutes. Valid values are from `5` to `60`.
*/
public data class VirtualMachineAutoBackupManualSchedule(
public val daysOfWeeks: List? = null,
public val fullBackupFrequency: String,
public val fullBackupStartHour: Int,
public val fullBackupWindowInHours: Int,
public val logBackupFrequencyInMinutes: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.mssql.outputs.VirtualMachineAutoBackupManualSchedule): VirtualMachineAutoBackupManualSchedule = VirtualMachineAutoBackupManualSchedule(
daysOfWeeks = javaType.daysOfWeeks().map({ args0 -> args0 }),
fullBackupFrequency = javaType.fullBackupFrequency(),
fullBackupStartHour = javaType.fullBackupStartHour(),
fullBackupWindowInHours = javaType.fullBackupWindowInHours(),
logBackupFrequencyInMinutes = javaType.logBackupFrequencyInMinutes(),
)
}
}