
com.pulumi.azurenative.recoveryservices.kotlin.inputs.InMagePolicyInputArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.recoveryservices.kotlin.inputs
import com.pulumi.azurenative.recoveryservices.inputs.InMagePolicyInputArgs.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 protection profile Input.
* @property appConsistentFrequencyInMinutes The app consistent snapshot frequency (in minutes).
* @property instanceType The class type.
* Expected value is 'InMage'.
* @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 InMagePolicyInputArgs(
public val appConsistentFrequencyInMinutes: 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.InMagePolicyInputArgs =
com.pulumi.azurenative.recoveryservices.inputs.InMagePolicyInputArgs.builder()
.appConsistentFrequencyInMinutes(appConsistentFrequencyInMinutes?.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 [InMagePolicyInputArgs].
*/
@PulumiTagMarker
public class InMagePolicyInputArgsBuilder internal constructor() {
private var appConsistentFrequencyInMinutes: 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("mslhhxewucokyqqd")
public suspend fun appConsistentFrequencyInMinutes(`value`: Output) {
this.appConsistentFrequencyInMinutes = value
}
/**
* @param value The class type.
* Expected value is 'InMage'.
*/
@JvmName("cnmslqcbwofrkurf")
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("yoblopdudkbegqia")
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("xulhlfxljdetetaf")
public suspend fun recoveryPointHistory(`value`: Output) {
this.recoveryPointHistory = value
}
/**
* @param value The recovery point threshold in minutes.
*/
@JvmName("pvobnooebmunmhuq")
public suspend fun recoveryPointThresholdInMinutes(`value`: Output) {
this.recoveryPointThresholdInMinutes = value
}
/**
* @param value The app consistent snapshot frequency (in minutes).
*/
@JvmName("rrhotvkuqkskovsu")
public suspend fun appConsistentFrequencyInMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appConsistentFrequencyInMinutes = mapped
}
/**
* @param value The class type.
* Expected value is 'InMage'.
*/
@JvmName("vjpvhltktlxjtxgm")
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("wctlaokbpljvpvrw")
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("etqnkvvjypfevtef")
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("kphpyyvjwwltenjg")
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("cwlabmoobinjavqg")
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("trrsxmqlrffepogl")
public suspend fun recoveryPointThresholdInMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recoveryPointThresholdInMinutes = mapped
}
internal fun build(): InMagePolicyInputArgs = InMagePolicyInputArgs(
appConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes,
instanceType = instanceType ?: throw PulumiNullFieldException("instanceType"),
multiVmSyncStatus = multiVmSyncStatus ?: throw PulumiNullFieldException("multiVmSyncStatus"),
recoveryPointHistory = recoveryPointHistory,
recoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy