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

com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyDailyScheduleArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.netapp.kotlin.inputs

import com.pulumi.azure.netapp.inputs.SnapshotPolicyDailyScheduleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property hour Hour of the day that the snapshots will be created, valid range is from 0 to 23.
 * @property minute Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
 * @property snapshotsToKeep How many hourly snapshots to keep, valid range is from 0 to 255.
 */
public data class SnapshotPolicyDailyScheduleArgs(
    public val hour: Output,
    public val minute: Output,
    public val snapshotsToKeep: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.inputs.SnapshotPolicyDailyScheduleArgs =
        com.pulumi.azure.netapp.inputs.SnapshotPolicyDailyScheduleArgs.builder()
            .hour(hour.applyValue({ args0 -> args0 }))
            .minute(minute.applyValue({ args0 -> args0 }))
            .snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SnapshotPolicyDailyScheduleArgs].
 */
@PulumiTagMarker
public class SnapshotPolicyDailyScheduleArgsBuilder internal constructor() {
    private var hour: Output? = null

    private var minute: Output? = null

    private var snapshotsToKeep: Output? = null

    /**
     * @param value Hour of the day that the snapshots will be created, valid range is from 0 to 23.
     */
    @JvmName("ueawkgtjqglaseci")
    public suspend fun hour(`value`: Output) {
        this.hour = value
    }

    /**
     * @param value Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
     */
    @JvmName("wxioxtvbofpipbxp")
    public suspend fun minute(`value`: Output) {
        this.minute = value
    }

    /**
     * @param value How many hourly snapshots to keep, valid range is from 0 to 255.
     */
    @JvmName("jslydttcfbvprguv")
    public suspend fun snapshotsToKeep(`value`: Output) {
        this.snapshotsToKeep = value
    }

    /**
     * @param value Hour of the day that the snapshots will be created, valid range is from 0 to 23.
     */
    @JvmName("mabuawmbigcoawfp")
    public suspend fun hour(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hour = mapped
    }

    /**
     * @param value Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
     */
    @JvmName("ueowkssclujjnjer")
    public suspend fun minute(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minute = mapped
    }

    /**
     * @param value How many hourly snapshots to keep, valid range is from 0 to 255.
     */
    @JvmName("ngftbyoglxeafuqt")
    public suspend fun snapshotsToKeep(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.snapshotsToKeep = mapped
    }

    internal fun build(): SnapshotPolicyDailyScheduleArgs = SnapshotPolicyDailyScheduleArgs(
        hour = hour ?: throw PulumiNullFieldException("hour"),
        minute = minute ?: throw PulumiNullFieldException("minute"),
        snapshotsToKeep = snapshotsToKeep ?: throw PulumiNullFieldException("snapshotsToKeep"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy