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

com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyHourlyScheduleArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.azure.netapp.inputs.SnapshotPolicyHourlyScheduleArgs.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 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 SnapshotPolicyHourlyScheduleArgs(
    public val minute: Output,
    public val snapshotsToKeep: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.inputs.SnapshotPolicyHourlyScheduleArgs =
        com.pulumi.azure.netapp.inputs.SnapshotPolicyHourlyScheduleArgs.builder()
            .minute(minute.applyValue({ args0 -> args0 }))
            .snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SnapshotPolicyHourlyScheduleArgs].
 */
@PulumiTagMarker
public class SnapshotPolicyHourlyScheduleArgsBuilder internal constructor() {
    private var minute: Output? = null

    private var snapshotsToKeep: Output? = null

    /**
     * @param value Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
     */
    @JvmName("pgfnyyaxeyrtggsn")
    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("kljbmqtphgaoyskd")
    public suspend fun snapshotsToKeep(`value`: Output) {
        this.snapshotsToKeep = value
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy