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

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

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

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

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

/**
 *
 * @property daysOfMonths List of the days of the month when the snapshots will be created, valid range is from 1 to 30.
 * @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 SnapshotPolicyMonthlyScheduleArgs(
    public val daysOfMonths: Output>,
    public val hour: Output,
    public val minute: Output,
    public val snapshotsToKeep: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.inputs.SnapshotPolicyMonthlyScheduleArgs =
        com.pulumi.azure.netapp.inputs.SnapshotPolicyMonthlyScheduleArgs.builder()
            .daysOfMonths(daysOfMonths.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .hour(hour.applyValue({ args0 -> args0 }))
            .minute(minute.applyValue({ args0 -> args0 }))
            .snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}

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

    private var hour: Output? = null

    private var minute: Output? = null

    private var snapshotsToKeep: Output? = null

    /**
     * @param value List of the days of the month when the snapshots will be created, valid range is from 1 to 30.
     */
    @JvmName("eemdnbjmowkyturh")
    public suspend fun daysOfMonths(`value`: Output>) {
        this.daysOfMonths = value
    }

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

    /**
     * @param values List of the days of the month when the snapshots will be created, valid range is from 1 to 30.
     */
    @JvmName("yuabhbtkbtvesgoq")
    public suspend fun daysOfMonths(values: List>) {
        this.daysOfMonths = Output.all(values)
    }

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

    /**
     * @param value List of the days of the month when the snapshots will be created, valid range is from 1 to 30.
     */
    @JvmName("hsmtfdkpnqowoajq")
    public suspend fun daysOfMonths(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfMonths = mapped
    }

    /**
     * @param values List of the days of the month when the snapshots will be created, valid range is from 1 to 30.
     */
    @JvmName("xscsmvwphphgwsve")
    public suspend fun daysOfMonths(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfMonths = mapped
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy