
com.pulumi.azurenative.recoveryservices.kotlin.inputs.InMageAzureV2PolicyInputArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.recoveryservices.kotlin.inputs
import com.pulumi.azurenative.recoveryservices.inputs.InMageAzureV2PolicyInputArgs.builder
import com.pulumi.azurenative.recoveryservices.kotlin.enums.SetMultiVmSyncStatus
import com.pulumi.core.Either
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* VMWare Azure specific policy Input.
* @property appConsistentFrequencyInMinutes The app consistent snapshot frequency (in minutes).
* @property crashConsistentFrequencyInMinutes The crash consistent snapshot frequency (in minutes).
* @property instanceType The class type.
* Expected value is 'InMageAzureV2'.
* @property multiVmSyncStatus A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
* @property recoveryPointHistory The duration in minutes until which the recovery points need to be stored.
* @property recoveryPointThresholdInMinutes The recovery point threshold in minutes.
*/
public data class InMageAzureV2PolicyInputArgs(
public val appConsistentFrequencyInMinutes: Output? = null,
public val crashConsistentFrequencyInMinutes: Output? = null,
public val instanceType: Output,
public val multiVmSyncStatus: Output>,
public val recoveryPointHistory: Output? = null,
public val recoveryPointThresholdInMinutes: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.recoveryservices.inputs.InMageAzureV2PolicyInputArgs = com.pulumi.azurenative.recoveryservices.inputs.InMageAzureV2PolicyInputArgs.builder()
.appConsistentFrequencyInMinutes(appConsistentFrequencyInMinutes?.applyValue({ args0 -> args0 }))
.crashConsistentFrequencyInMinutes(
crashConsistentFrequencyInMinutes?.applyValue({ args0 ->
args0
}),
)
.instanceType(instanceType.applyValue({ args0 -> args0 }))
.multiVmSyncStatus(
multiVmSyncStatus.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.recoveryPointHistory(recoveryPointHistory?.applyValue({ args0 -> args0 }))
.recoveryPointThresholdInMinutes(
recoveryPointThresholdInMinutes?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [InMageAzureV2PolicyInputArgs].
*/
@PulumiTagMarker
public class InMageAzureV2PolicyInputArgsBuilder internal constructor() {
private var appConsistentFrequencyInMinutes: Output? = null
private var crashConsistentFrequencyInMinutes: Output? = null
private var instanceType: Output? = null
private var multiVmSyncStatus: Output>? = null
private var recoveryPointHistory: Output? = null
private var recoveryPointThresholdInMinutes: Output? = null
/**
* @param value The app consistent snapshot frequency (in minutes).
*/
@JvmName("yslhrespisjscfje")
public suspend fun appConsistentFrequencyInMinutes(`value`: Output) {
this.appConsistentFrequencyInMinutes = value
}
/**
* @param value The crash consistent snapshot frequency (in minutes).
*/
@JvmName("yspypejjvdnhtsgm")
public suspend fun crashConsistentFrequencyInMinutes(`value`: Output) {
this.crashConsistentFrequencyInMinutes = value
}
/**
* @param value The class type.
* Expected value is 'InMageAzureV2'.
*/
@JvmName("igmbamevpihcjymk")
public suspend fun instanceType(`value`: Output) {
this.instanceType = value
}
/**
* @param value A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
*/
@JvmName("pkagcdhcsjglgujk")
public suspend fun multiVmSyncStatus(`value`: Output>) {
this.multiVmSyncStatus = value
}
/**
* @param value The duration in minutes until which the recovery points need to be stored.
*/
@JvmName("qdwbdnwdvikgmxnm")
public suspend fun recoveryPointHistory(`value`: Output) {
this.recoveryPointHistory = value
}
/**
* @param value The recovery point threshold in minutes.
*/
@JvmName("rbjeudxaisdcshya")
public suspend fun recoveryPointThresholdInMinutes(`value`: Output) {
this.recoveryPointThresholdInMinutes = value
}
/**
* @param value The app consistent snapshot frequency (in minutes).
*/
@JvmName("laiakolqrdbrshjj")
public suspend fun appConsistentFrequencyInMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appConsistentFrequencyInMinutes = mapped
}
/**
* @param value The crash consistent snapshot frequency (in minutes).
*/
@JvmName("qqfpsnoblcahbxdr")
public suspend fun crashConsistentFrequencyInMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.crashConsistentFrequencyInMinutes = mapped
}
/**
* @param value The class type.
* Expected value is 'InMageAzureV2'.
*/
@JvmName("lqpjrsvycisummvl")
public suspend fun instanceType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.instanceType = mapped
}
/**
* @param value A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
*/
@JvmName("wdwjgcfvivwnoxfl")
public suspend fun multiVmSyncStatus(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.multiVmSyncStatus = mapped
}
/**
* @param value A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
*/
@JvmName("kuwvoffmctmlxmir")
public fun multiVmSyncStatus(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.multiVmSyncStatus = mapped
}
/**
* @param value A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
*/
@JvmName("yntthacaokowawhe")
public fun multiVmSyncStatus(`value`: SetMultiVmSyncStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.multiVmSyncStatus = mapped
}
/**
* @param value The duration in minutes until which the recovery points need to be stored.
*/
@JvmName("nilxadojqhykqetw")
public suspend fun recoveryPointHistory(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recoveryPointHistory = mapped
}
/**
* @param value The recovery point threshold in minutes.
*/
@JvmName("guctoxjnieaheyce")
public suspend fun recoveryPointThresholdInMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recoveryPointThresholdInMinutes = mapped
}
internal fun build(): InMageAzureV2PolicyInputArgs = InMageAzureV2PolicyInputArgs(
appConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes,
crashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes,
instanceType = instanceType ?: throw PulumiNullFieldException("instanceType"),
multiVmSyncStatus = multiVmSyncStatus ?: throw PulumiNullFieldException("multiVmSyncStatus"),
recoveryPointHistory = recoveryPointHistory,
recoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy