
com.pulumi.gcp.backupdisasterrecovery.kotlin.inputs.BackupPlanBackupRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.backupdisasterrecovery.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.backupdisasterrecovery.inputs.BackupPlanBackupRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property backupRetentionDays Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
* @property ruleId The unique ID of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.
* @property standardSchedule StandardSchedule defines a schedule that runs within the confines of a defined window of days.
* Structure is documented below.
*/
public data class BackupPlanBackupRuleArgs(
public val backupRetentionDays: Output,
public val ruleId: Output,
public val standardSchedule: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.backupdisasterrecovery.inputs.BackupPlanBackupRuleArgs =
com.pulumi.gcp.backupdisasterrecovery.inputs.BackupPlanBackupRuleArgs.builder()
.backupRetentionDays(backupRetentionDays.applyValue({ args0 -> args0 }))
.ruleId(ruleId.applyValue({ args0 -> args0 }))
.standardSchedule(
standardSchedule.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BackupPlanBackupRuleArgs].
*/
@PulumiTagMarker
public class BackupPlanBackupRuleArgsBuilder internal constructor() {
private var backupRetentionDays: Output? = null
private var ruleId: Output? = null
private var standardSchedule: Output? = null
/**
* @param value Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
*/
@JvmName("yjhausmqjbwkiucq")
public suspend fun backupRetentionDays(`value`: Output) {
this.backupRetentionDays = value
}
/**
* @param value The unique ID of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.
*/
@JvmName("fpsbkymmknhyrgjq")
public suspend fun ruleId(`value`: Output) {
this.ruleId = value
}
/**
* @param value StandardSchedule defines a schedule that runs within the confines of a defined window of days.
* Structure is documented below.
*/
@JvmName("vnjmuekgohuvmrot")
public suspend fun standardSchedule(`value`: Output) {
this.standardSchedule = value
}
/**
* @param value Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
*/
@JvmName("jatnqfxnsjbfulxb")
public suspend fun backupRetentionDays(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backupRetentionDays = mapped
}
/**
* @param value The unique ID of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.
*/
@JvmName("ehlywlfkgwsbjnre")
public suspend fun ruleId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ruleId = mapped
}
/**
* @param value StandardSchedule defines a schedule that runs within the confines of a defined window of days.
* Structure is documented below.
*/
@JvmName("bvqbvavudsfhsath")
public suspend fun standardSchedule(`value`: BackupPlanBackupRuleStandardScheduleArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.standardSchedule = mapped
}
/**
* @param argument StandardSchedule defines a schedule that runs within the confines of a defined window of days.
* Structure is documented below.
*/
@JvmName("iokenhlnkgfonler")
public suspend fun standardSchedule(argument: suspend BackupPlanBackupRuleStandardScheduleArgsBuilder.() -> Unit) {
val toBeMapped = BackupPlanBackupRuleStandardScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.standardSchedule = mapped
}
internal fun build(): BackupPlanBackupRuleArgs = BackupPlanBackupRuleArgs(
backupRetentionDays = backupRetentionDays ?: throw PulumiNullFieldException("backupRetentionDays"),
ruleId = ruleId ?: throw PulumiNullFieldException("ruleId"),
standardSchedule = standardSchedule ?: throw PulumiNullFieldException("standardSchedule"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy