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

com.pulumi.gcp.memcache.kotlin.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.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.memcache.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.memcache.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @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 Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
 * 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 InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs(
    public val day: Output,
    public val duration: Output,
    public val startTime: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.memcache.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs =
        com.pulumi.gcp.memcache.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
            .day(day.applyValue({ args0 -> args0 }))
            .duration(duration.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs].
 */
@PulumiTagMarker
public class InstanceMaintenancePolicyWeeklyMaintenanceWindowArgsBuilder internal constructor() {
    private var day: Output? = null

    private var duration: Output? = null

    private var startTime: Output? =
        null

    /**
     * @param value 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`.
     */
    @JvmName("mpnsacumkjbsmfpy")
    public suspend fun day(`value`: Output) {
        this.day = value
    }

    /**
     * @param value Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
     * A duration in seconds with up to nine fractional digits,
     * terminated by 's'. Example: "3.5s".
     */
    @JvmName("wottbeiwejnjdnuu")
    public suspend fun duration(`value`: Output) {
        this.duration = value
    }

    /**
     * @param value Required. Start time of the window in UTC time.
     * Structure is documented below.
     */
    @JvmName("dsgcsnidhvabnplo")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("ssemmjikuvjnyjsl")
    public suspend fun day(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.day = mapped
    }

    /**
     * @param value Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
     * A duration in seconds with up to nine fractional digits,
     * terminated by 's'. Example: "3.5s".
     */
    @JvmName("qjhonjnjhclguiph")
    public suspend fun duration(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.duration = mapped
    }

    /**
     * @param value Required. Start time of the window in UTC time.
     * Structure is documented below.
     */
    @JvmName("sudtdicatxjnhsss")
    public suspend fun startTime(`value`: InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param argument Required. Start time of the window in UTC time.
     * Structure is documented below.
     */
    @JvmName("ngdxdtoulcynynxb")
    public suspend fun startTime(argument: suspend InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgsBuilder.() -> Unit) {
        val toBeMapped =
            InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.startTime = mapped
    }

    internal fun build(): InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs =
        InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs(
            day = day ?: throw PulumiNullFieldException("day"),
            duration = duration ?: throw PulumiNullFieldException("duration"),
            startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy