com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs.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.osconfig.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property dayOfWeek A day of the week.
* Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
* @property dayOffset Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
* @property weekOrdinal Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
*/
public data class PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs(
public val dayOfWeek: Output,
public val dayOffset: Output? = null,
public val weekOrdinal: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs =
com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs.builder()
.dayOfWeek(dayOfWeek.applyValue({ args0 -> args0 }))
.dayOffset(dayOffset?.applyValue({ args0 -> args0 }))
.weekOrdinal(weekOrdinal.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs].
*/
@PulumiTagMarker
public class PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgsBuilder internal constructor() {
private var dayOfWeek: Output? = null
private var dayOffset: Output? = null
private var weekOrdinal: Output? = null
/**
* @param value A day of the week.
* Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
*/
@JvmName("hneviaeqldpxplpj")
public suspend fun dayOfWeek(`value`: Output) {
this.dayOfWeek = value
}
/**
* @param value Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
*/
@JvmName("lmhccyrbvymdoxck")
public suspend fun dayOffset(`value`: Output) {
this.dayOffset = value
}
/**
* @param value Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
*/
@JvmName("kxbybdsftbqdktox")
public suspend fun weekOrdinal(`value`: Output) {
this.weekOrdinal = value
}
/**
* @param value A day of the week.
* Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
*/
@JvmName("cbxfmwxcrmjmwfsa")
public suspend fun dayOfWeek(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dayOfWeek = mapped
}
/**
* @param value Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
*/
@JvmName("pjbcjlsgfgudqdia")
public suspend fun dayOffset(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dayOffset = mapped
}
/**
* @param value Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
*/
@JvmName("ohmfynabvfvfxqtt")
public suspend fun weekOrdinal(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.weekOrdinal = mapped
}
internal fun build(): PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs =
PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs(
dayOfWeek = dayOfWeek ?: throw PulumiNullFieldException("dayOfWeek"),
dayOffset = dayOffset,
weekOrdinal = weekOrdinal ?: throw PulumiNullFieldException("weekOrdinal"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy