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

com.pulumi.gcp.compute.kotlin.inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property daysInCycle Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
 * @property startTime 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 ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs(
    public val daysInCycle: Output,
    public val startTime: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs =
        com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs.builder()
            .daysInCycle(daysInCycle.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs].
 */
@PulumiTagMarker
public class ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgsBuilder 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. Days in cycle for snapshot schedule policy must be 1.
     */
    @JvmName("bnqsgbxvgmoqndlw")
    public suspend fun daysInCycle(`value`: Output) {
        this.daysInCycle = value
    }

    /**
     * @param value 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("edousgprlkowujrg")
    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. Days in cycle for snapshot schedule policy must be 1.
     */
    @JvmName("dexyeqoqbfdifqho")
    public suspend fun daysInCycle(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysInCycle = mapped
    }

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

    internal fun build(): ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs =
        ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs(
            daysInCycle = daysInCycle ?: throw PulumiNullFieldException("daysInCycle"),
            startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy