com.pulumi.gcp.backupdisasterrecovery.kotlin.inputs.BackupPlanBackupRuleStandardScheduleBackupWindowArgs.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.backupdisasterrecovery.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.backupdisasterrecovery.inputs.BackupPlanBackupRuleStandardScheduleBackupWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property endHourOfDay The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00.
* The end hour of the day should be greater than the start
* - - -
* @property startHourOfDay The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
*/
public data class BackupPlanBackupRuleStandardScheduleBackupWindowArgs(
public val endHourOfDay: Output? = null,
public val startHourOfDay: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.backupdisasterrecovery.inputs.BackupPlanBackupRuleStandardScheduleBackupWindowArgs =
com.pulumi.gcp.backupdisasterrecovery.inputs.BackupPlanBackupRuleStandardScheduleBackupWindowArgs.builder()
.endHourOfDay(endHourOfDay?.applyValue({ args0 -> args0 }))
.startHourOfDay(startHourOfDay.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackupPlanBackupRuleStandardScheduleBackupWindowArgs].
*/
@PulumiTagMarker
public class BackupPlanBackupRuleStandardScheduleBackupWindowArgsBuilder internal constructor() {
private var endHourOfDay: Output? = null
private var startHourOfDay: Output? = null
/**
* @param value The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00.
* The end hour of the day should be greater than the start
* - - -
*/
@JvmName("qrrlnkyuyxcetvuq")
public suspend fun endHourOfDay(`value`: Output) {
this.endHourOfDay = value
}
/**
* @param value The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
*/
@JvmName("uytjyfpxncciqkwc")
public suspend fun startHourOfDay(`value`: Output) {
this.startHourOfDay = value
}
/**
* @param value The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00.
* The end hour of the day should be greater than the start
* - - -
*/
@JvmName("bixnlwhlrpqswjia")
public suspend fun endHourOfDay(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endHourOfDay = mapped
}
/**
* @param value The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
*/
@JvmName("tahfqoorsjvqpotb")
public suspend fun startHourOfDay(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startHourOfDay = mapped
}
internal fun build(): BackupPlanBackupRuleStandardScheduleBackupWindowArgs =
BackupPlanBackupRuleStandardScheduleBackupWindowArgs(
endHourOfDay = endHourOfDay,
startHourOfDay = startHourOfDay ?: throw PulumiNullFieldException("startHourOfDay"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy