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

com.pulumi.gcp.redis.kotlin.outputs.InstanceMaintenancePolicyWeeklyMaintenanceWindow.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.redis.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property day Required. The day of week that maintenance updates occur.
 * - DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
 * - MONDAY: Monday
 * - TUESDAY: Tuesday
 * - WEDNESDAY: Wednesday
 * - THURSDAY: Thursday
 * - FRIDAY: Friday
 * - SATURDAY: Saturday
 * - SUNDAY: Sunday
 * Possible values are: `DAY_OF_WEEK_UNSPECIFIED`, `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
 * @property duration (Output)
 * Output only. Duration of the maintenance window.
 * The current window is fixed at 1 hour.
 * A duration in seconds with up to nine fractional digits,
 * terminated by 's'. Example: "3.5s".
 * @property startTime Required. Start time of the window in UTC time.
 * Structure is documented below.
 */
public data class InstanceMaintenancePolicyWeeklyMaintenanceWindow(
    public val day: String,
    public val duration: String? = null,
    public val startTime: InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTime,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.redis.outputs.InstanceMaintenancePolicyWeeklyMaintenanceWindow): InstanceMaintenancePolicyWeeklyMaintenanceWindow =
            InstanceMaintenancePolicyWeeklyMaintenanceWindow(
                day = javaType.day(),
                duration = javaType.duration().map({ args0 -> args0 }).orElse(null),
                startTime = javaType.startTime().let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTime.Companion.toKotlin(args0)
                }),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy