
com.pulumi.googlenative.gkebackup.v1.kotlin.inputs.ScheduleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.gkebackup.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.gkebackup.v1.inputs.ScheduleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Schedule defines scheduling parameters for automatically creating Backups via this BackupPlan.
* @property cronSchedule A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.
* @property paused This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False
*/
public data class ScheduleArgs(
public val cronSchedule: Output? = null,
public val paused: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.gkebackup.v1.inputs.ScheduleArgs =
com.pulumi.googlenative.gkebackup.v1.inputs.ScheduleArgs.builder()
.cronSchedule(cronSchedule?.applyValue({ args0 -> args0 }))
.paused(paused?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduleArgs].
*/
@PulumiTagMarker
public class ScheduleArgsBuilder internal constructor() {
private var cronSchedule: Output? = null
private var paused: Output? = null
/**
* @param value A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.
*/
@JvmName("lrljenxmcjjkttij")
public suspend fun cronSchedule(`value`: Output) {
this.cronSchedule = value
}
/**
* @param value This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False
*/
@JvmName("qqbsmcpaflcivxep")
public suspend fun paused(`value`: Output) {
this.paused = value
}
/**
* @param value A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.
*/
@JvmName("jvmiukcnbbabnbuh")
public suspend fun cronSchedule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cronSchedule = mapped
}
/**
* @param value This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False
*/
@JvmName("jynffhfqyrkhmcxy")
public suspend fun paused(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.paused = mapped
}
internal fun build(): ScheduleArgs = ScheduleArgs(
cronSchedule = cronSchedule,
paused = paused,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy