![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.mssql.kotlin.inputs.VirtualMachineAutoBackupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mssql.kotlin.inputs
import com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property encryptionEnabled Enable or disable encryption for backups. Defaults to `false`.
* @property encryptionPassword Encryption password to use. Must be specified when encryption is enabled.
* @property manualSchedule A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
* @property retentionPeriodInDays Retention period of backups, in days. Valid values are from `1` to `30`.
* @property storageAccountAccessKey Access key for the storage account where backups will be kept.
* @property storageBlobEndpoint Blob endpoint for the storage account where backups will be kept.
* @property systemDatabasesBackupEnabled Include or exclude system databases from auto backup.
*/
public data class VirtualMachineAutoBackupArgs(
public val encryptionEnabled: Output? = null,
public val encryptionPassword: Output? = null,
public val manualSchedule: Output? = null,
public val retentionPeriodInDays: Output,
public val storageAccountAccessKey: Output,
public val storageBlobEndpoint: Output,
public val systemDatabasesBackupEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupArgs =
com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupArgs.builder()
.encryptionEnabled(encryptionEnabled?.applyValue({ args0 -> args0 }))
.encryptionPassword(encryptionPassword?.applyValue({ args0 -> args0 }))
.manualSchedule(manualSchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.retentionPeriodInDays(retentionPeriodInDays.applyValue({ args0 -> args0 }))
.storageAccountAccessKey(storageAccountAccessKey.applyValue({ args0 -> args0 }))
.storageBlobEndpoint(storageBlobEndpoint.applyValue({ args0 -> args0 }))
.systemDatabasesBackupEnabled(systemDatabasesBackupEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VirtualMachineAutoBackupArgs].
*/
@PulumiTagMarker
public class VirtualMachineAutoBackupArgsBuilder internal constructor() {
private var encryptionEnabled: Output? = null
private var encryptionPassword: Output? = null
private var manualSchedule: Output? = null
private var retentionPeriodInDays: Output? = null
private var storageAccountAccessKey: Output? = null
private var storageBlobEndpoint: Output? = null
private var systemDatabasesBackupEnabled: Output? = null
/**
* @param value Enable or disable encryption for backups. Defaults to `false`.
*/
@JvmName("ukdutlpexaempsek")
public suspend fun encryptionEnabled(`value`: Output) {
this.encryptionEnabled = value
}
/**
* @param value Encryption password to use. Must be specified when encryption is enabled.
*/
@JvmName("sxiwmtwjksujeeqq")
public suspend fun encryptionPassword(`value`: Output) {
this.encryptionPassword = value
}
/**
* @param value A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
*/
@JvmName("tgmrupeunxjnrrpt")
public suspend fun manualSchedule(`value`: Output) {
this.manualSchedule = value
}
/**
* @param value Retention period of backups, in days. Valid values are from `1` to `30`.
*/
@JvmName("oaqcjvxmfsqwvjoj")
public suspend fun retentionPeriodInDays(`value`: Output) {
this.retentionPeriodInDays = value
}
/**
* @param value Access key for the storage account where backups will be kept.
*/
@JvmName("ejhgtptgvecleyls")
public suspend fun storageAccountAccessKey(`value`: Output) {
this.storageAccountAccessKey = value
}
/**
* @param value Blob endpoint for the storage account where backups will be kept.
*/
@JvmName("fnvjtebqoreexjjj")
public suspend fun storageBlobEndpoint(`value`: Output) {
this.storageBlobEndpoint = value
}
/**
* @param value Include or exclude system databases from auto backup.
*/
@JvmName("piiwembteynpdfye")
public suspend fun systemDatabasesBackupEnabled(`value`: Output) {
this.systemDatabasesBackupEnabled = value
}
/**
* @param value Enable or disable encryption for backups. Defaults to `false`.
*/
@JvmName("cccfwscyoykixebk")
public suspend fun encryptionEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryptionEnabled = mapped
}
/**
* @param value Encryption password to use. Must be specified when encryption is enabled.
*/
@JvmName("qnrtjwfsvmawlkwv")
public suspend fun encryptionPassword(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryptionPassword = mapped
}
/**
* @param value A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
*/
@JvmName("ehtmshitcksnhemb")
public suspend fun manualSchedule(`value`: VirtualMachineAutoBackupManualScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.manualSchedule = mapped
}
/**
* @param argument A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
*/
@JvmName("svpogdwqwenjuurs")
public suspend fun manualSchedule(argument: suspend VirtualMachineAutoBackupManualScheduleArgsBuilder.() -> Unit) {
val toBeMapped = VirtualMachineAutoBackupManualScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.manualSchedule = mapped
}
/**
* @param value Retention period of backups, in days. Valid values are from `1` to `30`.
*/
@JvmName("dxgfodahapkvomsm")
public suspend fun retentionPeriodInDays(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.retentionPeriodInDays = mapped
}
/**
* @param value Access key for the storage account where backups will be kept.
*/
@JvmName("eixkiswvoqbgnmdk")
public suspend fun storageAccountAccessKey(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageAccountAccessKey = mapped
}
/**
* @param value Blob endpoint for the storage account where backups will be kept.
*/
@JvmName("ndhewbntsdwkvtik")
public suspend fun storageBlobEndpoint(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageBlobEndpoint = mapped
}
/**
* @param value Include or exclude system databases from auto backup.
*/
@JvmName("smpvlofgcptdgxup")
public suspend fun systemDatabasesBackupEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.systemDatabasesBackupEnabled = mapped
}
internal fun build(): VirtualMachineAutoBackupArgs = VirtualMachineAutoBackupArgs(
encryptionEnabled = encryptionEnabled,
encryptionPassword = encryptionPassword,
manualSchedule = manualSchedule,
retentionPeriodInDays = retentionPeriodInDays ?: throw
PulumiNullFieldException("retentionPeriodInDays"),
storageAccountAccessKey = storageAccountAccessKey ?: throw
PulumiNullFieldException("storageAccountAccessKey"),
storageBlobEndpoint = storageBlobEndpoint ?: throw PulumiNullFieldException("storageBlobEndpoint"),
systemDatabasesBackupEnabled = systemDatabasesBackupEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy