com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentRecurringScheduleMonthlyArgs.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.PatchDeploymentRecurringScheduleMonthlyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property monthDay One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month.
* Months without the target day will be skipped. For example, a schedule to run "every month on the 31st"
* will not run in February, April, June, etc.
* @property weekDayOfMonth Week day in a month.
* Structure is documented below.
*/
public data class PatchDeploymentRecurringScheduleMonthlyArgs(
public val monthDay: Output? = null,
public val weekDayOfMonth: Output? =
null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleMonthlyArgs = com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleMonthlyArgs.builder()
.monthDay(monthDay?.applyValue({ args0 -> args0 }))
.weekDayOfMonth(
weekDayOfMonth?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PatchDeploymentRecurringScheduleMonthlyArgs].
*/
@PulumiTagMarker
public class PatchDeploymentRecurringScheduleMonthlyArgsBuilder internal constructor() {
private var monthDay: Output? = null
private var weekDayOfMonth: Output? =
null
/**
* @param value One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month.
* Months without the target day will be skipped. For example, a schedule to run "every month on the 31st"
* will not run in February, April, June, etc.
*/
@JvmName("jeabuqmrfjgcxsay")
public suspend fun monthDay(`value`: Output) {
this.monthDay = value
}
/**
* @param value Week day in a month.
* Structure is documented below.
*/
@JvmName("llcdauqdxdjvsbsc")
public suspend fun weekDayOfMonth(`value`: Output) {
this.weekDayOfMonth = value
}
/**
* @param value One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month.
* Months without the target day will be skipped. For example, a schedule to run "every month on the 31st"
* will not run in February, April, June, etc.
*/
@JvmName("guqcogtofqycvpsx")
public suspend fun monthDay(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.monthDay = mapped
}
/**
* @param value Week day in a month.
* Structure is documented below.
*/
@JvmName("rfblrldqtrogkniy")
public suspend fun weekDayOfMonth(`value`: PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.weekDayOfMonth = mapped
}
/**
* @param argument Week day in a month.
* Structure is documented below.
*/
@JvmName("nqtjkjpgepsasakg")
public suspend fun weekDayOfMonth(argument: suspend PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgsBuilder.() -> Unit) {
val toBeMapped =
PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.weekDayOfMonth = mapped
}
internal fun build(): PatchDeploymentRecurringScheduleMonthlyArgs =
PatchDeploymentRecurringScheduleMonthlyArgs(
monthDay = monthDay,
weekDayOfMonth = weekDayOfMonth,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy