com.pulumi.azure.backup.kotlin.inputs.PolicyVMWorkloadSettingsArgs.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.backup.kotlin.inputs
import com.pulumi.azure.backup.inputs.PolicyVMWorkloadSettingsArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property compressionEnabled The compression setting for the VM Workload Backup Policy. Defaults to `false`.
* @property timeZone The timezone for the VM Workload Backup Policy. [The possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/).
*/
public data class PolicyVMWorkloadSettingsArgs(
public val compressionEnabled: Output? = null,
public val timeZone: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.backup.inputs.PolicyVMWorkloadSettingsArgs =
com.pulumi.azure.backup.inputs.PolicyVMWorkloadSettingsArgs.builder()
.compressionEnabled(compressionEnabled?.applyValue({ args0 -> args0 }))
.timeZone(timeZone.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyVMWorkloadSettingsArgs].
*/
@PulumiTagMarker
public class PolicyVMWorkloadSettingsArgsBuilder internal constructor() {
private var compressionEnabled: Output? = null
private var timeZone: Output? = null
/**
* @param value The compression setting for the VM Workload Backup Policy. Defaults to `false`.
*/
@JvmName("fccccyxsogwsafan")
public suspend fun compressionEnabled(`value`: Output) {
this.compressionEnabled = value
}
/**
* @param value The timezone for the VM Workload Backup Policy. [The possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/).
*/
@JvmName("nlluoqmfkatiqxcd")
public suspend fun timeZone(`value`: Output) {
this.timeZone = value
}
/**
* @param value The compression setting for the VM Workload Backup Policy. Defaults to `false`.
*/
@JvmName("mqmmmvvobdshitvm")
public suspend fun compressionEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.compressionEnabled = mapped
}
/**
* @param value The timezone for the VM Workload Backup Policy. [The possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/).
*/
@JvmName("bxshostxigsybfwb")
public suspend fun timeZone(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.timeZone = mapped
}
internal fun build(): PolicyVMWorkloadSettingsArgs = PolicyVMWorkloadSettingsArgs(
compressionEnabled = compressionEnabled,
timeZone = timeZone ?: throw PulumiNullFieldException("timeZone"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy