com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupSchedule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.gkebackup.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property cronSchedule A standard cron string that defines a repeating schedule for
* creating Backups via this BackupPlan.
* This is mutually exclusive with the rpoConfig field since at most one
* schedule can be defined for a BackupPlan.
* If this is defined, then backupRetainDays must also be defined.
* @property paused This flag denotes whether automatic Backup creation is paused for this BackupPlan.
* @property rpoConfig Defines the RPO schedule configuration for this BackupPlan. This is mutually
* exclusive with the cronSchedule field since at most one schedule can be defined
* for a BackupPLan. If this is defined, then backupRetainDays must also be defined.
* Structure is documented below.
*/
public data class BackupPlanBackupSchedule(
public val cronSchedule: String? = null,
public val paused: Boolean? = null,
public val rpoConfig: BackupPlanBackupScheduleRpoConfig? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.gkebackup.outputs.BackupPlanBackupSchedule): BackupPlanBackupSchedule = BackupPlanBackupSchedule(
cronSchedule = javaType.cronSchedule().map({ args0 -> args0 }).orElse(null),
paused = javaType.paused().map({ args0 -> args0 }).orElse(null),
rpoConfig = javaType.rpoConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfig.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy