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

com.pulumi.azure.backup.kotlin.inputs.PolicyFileShareBackupArgs.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.backup.kotlin.inputs

import com.pulumi.azure.backup.inputs.PolicyFileShareBackupArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property frequency Sets the backup frequency. Possible values are `Daily` and `Hourly`.
 * > **NOTE:** This argument is made available for consistency with VM backup policies and to allow for potential future support of weekly backups
 * @property hourly A `hourly` block defined as below. This is required when `frequency` is set to `Hourly`.
 * @property time The time of day to perform the backup in 24-hour format. Times must be either on the hour or half hour (e.g. 12:00, 12:30, 13:00, etc.)
 * > **NOTE:** `time` is required when `frequency` is set to `Daily`.
 */
public data class PolicyFileShareBackupArgs(
    public val frequency: Output,
    public val hourly: Output? = null,
    public val time: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.backup.inputs.PolicyFileShareBackupArgs =
        com.pulumi.azure.backup.inputs.PolicyFileShareBackupArgs.builder()
            .frequency(frequency.applyValue({ args0 -> args0 }))
            .hourly(hourly?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .time(time?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyFileShareBackupArgs].
 */
@PulumiTagMarker
public class PolicyFileShareBackupArgsBuilder internal constructor() {
    private var frequency: Output? = null

    private var hourly: Output? = null

    private var time: Output? = null

    /**
     * @param value Sets the backup frequency. Possible values are `Daily` and `Hourly`.
     * > **NOTE:** This argument is made available for consistency with VM backup policies and to allow for potential future support of weekly backups
     */
    @JvmName("cxidhxnyucvxvosa")
    public suspend fun frequency(`value`: Output) {
        this.frequency = value
    }

    /**
     * @param value A `hourly` block defined as below. This is required when `frequency` is set to `Hourly`.
     */
    @JvmName("nbebjcbdxkqxbltr")
    public suspend fun hourly(`value`: Output) {
        this.hourly = value
    }

    /**
     * @param value The time of day to perform the backup in 24-hour format. Times must be either on the hour or half hour (e.g. 12:00, 12:30, 13:00, etc.)
     * > **NOTE:** `time` is required when `frequency` is set to `Daily`.
     */
    @JvmName("vojmhncpvfjeockn")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value Sets the backup frequency. Possible values are `Daily` and `Hourly`.
     * > **NOTE:** This argument is made available for consistency with VM backup policies and to allow for potential future support of weekly backups
     */
    @JvmName("jtwlcushwrvaverl")
    public suspend fun frequency(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frequency = mapped
    }

    /**
     * @param value A `hourly` block defined as below. This is required when `frequency` is set to `Hourly`.
     */
    @JvmName("adwtscmyfjjcnnnn")
    public suspend fun hourly(`value`: PolicyFileShareBackupHourlyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hourly = mapped
    }

    /**
     * @param argument A `hourly` block defined as below. This is required when `frequency` is set to `Hourly`.
     */
    @JvmName("etpvujkfbxscefgp")
    public suspend fun hourly(argument: suspend PolicyFileShareBackupHourlyArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyFileShareBackupHourlyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.hourly = mapped
    }

    /**
     * @param value The time of day to perform the backup in 24-hour format. Times must be either on the hour or half hour (e.g. 12:00, 12:30, 13:00, etc.)
     * > **NOTE:** `time` is required when `frequency` is set to `Daily`.
     */
    @JvmName("jalupjybistycyot")
    public suspend fun time(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.time = mapped
    }

    internal fun build(): PolicyFileShareBackupArgs = PolicyFileShareBackupArgs(
        frequency = frequency ?: throw PulumiNullFieldException("frequency"),
        hourly = hourly,
        time = time,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy