All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.backupdisasterrecovery.kotlin.outputs.GetBackupPlanBackupRule.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.backupdisasterrecovery.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 standardSchedules StandardSchedule defines a schedule that runs within the confines of a defined window of days.
 */
public data class GetBackupPlanBackupRule(
    public val backupRetentionDays: Int,
    public val ruleId: String,
    public val standardSchedules: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.backupdisasterrecovery.outputs.GetBackupPlanBackupRule): GetBackupPlanBackupRule = GetBackupPlanBackupRule(
            backupRetentionDays = javaType.backupRetentionDays(),
            ruleId = javaType.ruleId(),
            standardSchedules = javaType.standardSchedules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.backupdisasterrecovery.kotlin.outputs.GetBackupPlanBackupRuleStandardSchedule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy