com.pulumi.gcp.compute.kotlin.inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs.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.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property dailySchedule The policy will execute every nth day at the specified time.
* Structure is documented below.
* @property hourlySchedule The policy will execute every nth hour starting at the specified time.
* Structure is documented below.
* @property weeklySchedule Allows specifying a snapshot time for each day of the week.
* Structure is documented below.
*/
public data class ResourcePolicySnapshotSchedulePolicyScheduleArgs(
public val dailySchedule: Output? =
null,
public val hourlySchedule: Output? =
null,
public val weeklySchedule: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs =
com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs.builder()
.dailySchedule(dailySchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.hourlySchedule(hourlySchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.weeklySchedule(
weeklySchedule?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ResourcePolicySnapshotSchedulePolicyScheduleArgs].
*/
@PulumiTagMarker
public class ResourcePolicySnapshotSchedulePolicyScheduleArgsBuilder internal constructor() {
private var dailySchedule: Output? =
null
private var hourlySchedule:
Output? = null
private var weeklySchedule:
Output? = null
/**
* @param value The policy will execute every nth day at the specified time.
* Structure is documented below.
*/
@JvmName("ecbwmqjavxcuapmi")
public suspend fun dailySchedule(`value`: Output) {
this.dailySchedule = value
}
/**
* @param value The policy will execute every nth hour starting at the specified time.
* Structure is documented below.
*/
@JvmName("xbjojtfadshqcsvu")
public suspend fun hourlySchedule(`value`: Output) {
this.hourlySchedule = value
}
/**
* @param value Allows specifying a snapshot time for each day of the week.
* Structure is documented below.
*/
@JvmName("rnvnwsnhymwxxolb")
public suspend fun weeklySchedule(`value`: Output) {
this.weeklySchedule = value
}
/**
* @param value The policy will execute every nth day at the specified time.
* Structure is documented below.
*/
@JvmName("vnpgriucjtanpgsv")
public suspend fun dailySchedule(`value`: ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dailySchedule = mapped
}
/**
* @param argument The policy will execute every nth day at the specified time.
* Structure is documented below.
*/
@JvmName("kfpvfsvwwsksbdja")
public suspend fun dailySchedule(argument: suspend ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgsBuilder.() -> Unit) {
val toBeMapped =
ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.dailySchedule = mapped
}
/**
* @param value The policy will execute every nth hour starting at the specified time.
* Structure is documented below.
*/
@JvmName("qyerifseadoxpcue")
public suspend fun hourlySchedule(`value`: ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hourlySchedule = mapped
}
/**
* @param argument The policy will execute every nth hour starting at the specified time.
* Structure is documented below.
*/
@JvmName("fgarytrudjcewmiw")
public suspend fun hourlySchedule(argument: suspend ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgsBuilder.() -> Unit) {
val toBeMapped =
ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.hourlySchedule = mapped
}
/**
* @param value Allows specifying a snapshot time for each day of the week.
* Structure is documented below.
*/
@JvmName("huwqvakkxhsslrnh")
public suspend fun weeklySchedule(`value`: ResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.weeklySchedule = mapped
}
/**
* @param argument Allows specifying a snapshot time for each day of the week.
* Structure is documented below.
*/
@JvmName("vodebdkdnbrgqgng")
public suspend fun weeklySchedule(argument: suspend ResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleArgsBuilder.() -> Unit) {
val toBeMapped =
ResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.weeklySchedule = mapped
}
internal fun build(): ResourcePolicySnapshotSchedulePolicyScheduleArgs =
ResourcePolicySnapshotSchedulePolicyScheduleArgs(
dailySchedule = dailySchedule,
hourlySchedule = hourlySchedule,
weeklySchedule = weeklySchedule,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy