All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.osconfig.kotlin.outputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonth.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.osconfig.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonth(
    public val dayOfWeek: String,
    public val dayOffset: Int? = null,
    public val weekOrdinal: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonth): PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonth =
            PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonth(
                dayOfWeek = javaType.dayOfWeek(),
                dayOffset = javaType.dayOffset().map({ args0 -> args0 }).orElse(null),
                weekOrdinal = javaType.weekOrdinal(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy