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

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

package com.pulumi.gcp.netapp.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyWeeklyScheduleArgs.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 day Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to 'Sunday'.
 * @property hour Set the hour to create the snapshot (0-23), defaults to midnight (0).
 * @property minute Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
 * @property snapshotsToKeep The maximum number of snapshots to keep for the weekly schedule.
 */
public data class VolumeSnapshotPolicyWeeklyScheduleArgs(
    public val day: Output? = null,
    public val hour: Output? = null,
    public val minute: Output? = null,
    public val snapshotsToKeep: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyWeeklyScheduleArgs =
        com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyWeeklyScheduleArgs.builder()
            .day(day?.applyValue({ args0 -> args0 }))
            .hour(hour?.applyValue({ args0 -> args0 }))
            .minute(minute?.applyValue({ args0 -> args0 }))
            .snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VolumeSnapshotPolicyWeeklyScheduleArgs].
 */
@PulumiTagMarker
public class VolumeSnapshotPolicyWeeklyScheduleArgsBuilder internal constructor() {
    private var day: Output? = null

    private var hour: Output? = null

    private var minute: Output? = null

    private var snapshotsToKeep: Output? = null

    /**
     * @param value Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to 'Sunday'.
     */
    @JvmName("odwidxcacpxehtnk")
    public suspend fun day(`value`: Output) {
        this.day = value
    }

    /**
     * @param value Set the hour to create the snapshot (0-23), defaults to midnight (0).
     */
    @JvmName("wcrgjarnyfijskud")
    public suspend fun hour(`value`: Output) {
        this.hour = value
    }

    /**
     * @param value Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
     */
    @JvmName("lcupvmfeuslrjcre")
    public suspend fun minute(`value`: Output) {
        this.minute = value
    }

    /**
     * @param value The maximum number of snapshots to keep for the weekly schedule.
     */
    @JvmName("mmmrwjeudpspubog")
    public suspend fun snapshotsToKeep(`value`: Output) {
        this.snapshotsToKeep = value
    }

    /**
     * @param value Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to 'Sunday'.
     */
    @JvmName("xxbydacghwaisesi")
    public suspend fun day(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.day = mapped
    }

    /**
     * @param value Set the hour to create the snapshot (0-23), defaults to midnight (0).
     */
    @JvmName("sjkjkejdouvwdpkv")
    public suspend fun hour(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hour = mapped
    }

    /**
     * @param value Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
     */
    @JvmName("pwcsnnhnvocxmcah")
    public suspend fun minute(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minute = mapped
    }

    /**
     * @param value The maximum number of snapshots to keep for the weekly schedule.
     */
    @JvmName("qasekirysqrkyvth")
    public suspend fun snapshotsToKeep(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.snapshotsToKeep = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy