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

com.pulumi.googlenative.osconfig.v1.kotlin.outputs.WeekDayOfMonthResponse.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.osconfig.v1.kotlin.outputs

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

/**
 * Represents one week day in a month. An example is "the 4th Sunday".
 * @property dayOfWeek A day of the week.
 * @property dayOffset Optional. Represents the number of days before or after the given week day of month that the patch deployment is scheduled for. For example if `week_ordinal` and `day_of_week` values point to the second day of the month and this `day_offset` value is set to `3`, the patch deployment takes place three days after the second Tuesday of the month. If this value is negative, for example -5, the patches are deployed five days before before the second Tuesday of the month. Allowed values are in range [-30, 30].
 * @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 WeekDayOfMonthResponse(
    public val dayOfWeek: String,
    public val dayOffset: Int,
    public val weekOrdinal: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.osconfig.v1.outputs.WeekDayOfMonthResponse): WeekDayOfMonthResponse = WeekDayOfMonthResponse(
            dayOfWeek = javaType.dayOfWeek(),
            dayOffset = javaType.dayOffset(),
            weekOrdinal = javaType.weekOrdinal(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy