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

com.pulumi.gcp.compute.kotlin.inputs.ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs.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.ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs.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 hoursInCycle The number of hours between snapshots.
 * @property startTime Time within the window to start the operations.
 * It must be in an hourly format "HH:MM",
 * where HH : [00-23] and MM : [00] GMT.
 * eg: 21:00
 */
public data class ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs(
    public val hoursInCycle: Output,
    public val startTime: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs =
        com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs.builder()
            .hoursInCycle(hoursInCycle.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs].
 */
@PulumiTagMarker
public class ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgsBuilder internal constructor() {
    private var hoursInCycle: Output? = null

    private var startTime: Output? = null

    /**
     * @param value The number of hours between snapshots.
     */
    @JvmName("qhlrdgtkskajtmim")
    public suspend fun hoursInCycle(`value`: Output) {
        this.hoursInCycle = value
    }

    /**
     * @param value Time within the window to start the operations.
     * It must be in an hourly format "HH:MM",
     * where HH : [00-23] and MM : [00] GMT.
     * eg: 21:00
     */
    @JvmName("hjjjyylerdkfnuwp")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value The number of hours between snapshots.
     */
    @JvmName("ngqdnsyibuwewnxw")
    public suspend fun hoursInCycle(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hoursInCycle = mapped
    }

    /**
     * @param value Time within the window to start the operations.
     * It must be in an hourly format "HH:MM",
     * where HH : [00-23] and MM : [00] GMT.
     * eg: 21:00
     */
    @JvmName("cpioianvoiahimxp")
    public suspend fun startTime(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    internal fun build(): ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs =
        ResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleArgs(
            hoursInCycle = hoursInCycle ?: throw PulumiNullFieldException("hoursInCycle"),
            startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy