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

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

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

import com.pulumi.azure.netapp.inputs.SnapshotPolicyWeeklyScheduleArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property daysOfWeeks List of the week days using English names when the snapshots will be created.
 * @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 SnapshotPolicyWeeklyScheduleArgs(
    public val daysOfWeeks: Output>,
    public val hour: Output,
    public val minute: Output,
    public val snapshotsToKeep: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.inputs.SnapshotPolicyWeeklyScheduleArgs =
        com.pulumi.azure.netapp.inputs.SnapshotPolicyWeeklyScheduleArgs.builder()
            .daysOfWeeks(daysOfWeeks.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .hour(hour.applyValue({ args0 -> args0 }))
            .minute(minute.applyValue({ args0 -> args0 }))
            .snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SnapshotPolicyWeeklyScheduleArgs].
 */
@PulumiTagMarker
public class SnapshotPolicyWeeklyScheduleArgsBuilder internal constructor() {
    private var daysOfWeeks: Output>? = null

    private var hour: Output? = null

    private var minute: Output? = null

    private var snapshotsToKeep: Output? = null

    /**
     * @param value List of the week days using English names when the snapshots will be created.
     */
    @JvmName("vihjesfcxbxwpqle")
    public suspend fun daysOfWeeks(`value`: Output>) {
        this.daysOfWeeks = value
    }

    @JvmName("gsbtweuuyqiuboek")
    public suspend fun daysOfWeeks(vararg values: Output) {
        this.daysOfWeeks = Output.all(values.asList())
    }

    /**
     * @param values List of the week days using English names when the snapshots will be created.
     */
    @JvmName("rabjletsdkwaldix")
    public suspend fun daysOfWeeks(values: List>) {
        this.daysOfWeeks = Output.all(values)
    }

    /**
     * @param value Hour of the day that the snapshots will be created, valid range is from 0 to 23.
     */
    @JvmName("pretygxfbjpqewqt")
    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("ujbpdgfywvdpvidd")
    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("nbilulgseymbkmps")
    public suspend fun snapshotsToKeep(`value`: Output) {
        this.snapshotsToKeep = value
    }

    /**
     * @param value List of the week days using English names when the snapshots will be created.
     */
    @JvmName("qtdnmnxoyjqpxeqp")
    public suspend fun daysOfWeeks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfWeeks = mapped
    }

    /**
     * @param values List of the week days using English names when the snapshots will be created.
     */
    @JvmName("tvupdgnfcbjghbfd")
    public suspend fun daysOfWeeks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfWeeks = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy