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

com.pulumi.googlenative.compute.beta.kotlin.inputs.ResourcePolicyDailyCycleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.compute.beta.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.inputs.ResourcePolicyDailyCycleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Time window specified for daily operations.
 * @property daysInCycle Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
 * @property startTime Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
 */
public data class ResourcePolicyDailyCycleArgs(
    public val daysInCycle: Output? = null,
    public val startTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.beta.inputs.ResourcePolicyDailyCycleArgs =
        com.pulumi.googlenative.compute.beta.inputs.ResourcePolicyDailyCycleArgs.builder()
            .daysInCycle(daysInCycle?.applyValue({ args0 -> args0 }))
            .startTime(startTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePolicyDailyCycleArgs].
 */
@PulumiTagMarker
public class ResourcePolicyDailyCycleArgsBuilder internal constructor() {
    private var daysInCycle: Output? = null

    private var startTime: Output? = null

    /**
     * @param value Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
     */
    @JvmName("hywjapqrepuorhxc")
    public suspend fun daysInCycle(`value`: Output) {
        this.daysInCycle = value
    }

    /**
     * @param value Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
     */
    @JvmName("ssoldhdltilaynli")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
     */
    @JvmName("hmmsbmxjvewdabvd")
    public suspend fun daysInCycle(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.daysInCycle = mapped
    }

    /**
     * @param value Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
     */
    @JvmName("pnbfymbjanmrommr")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    internal fun build(): ResourcePolicyDailyCycleArgs = ResourcePolicyDailyCycleArgs(
        daysInCycle = daysInCycle,
        startTime = startTime,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy