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

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

import com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs.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 count The number of weekly backups to keep. Possible values are between `1` and `5163`.
 * @property weekdays The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
 */
public data class PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs(
    public val count: Output,
    public val weekdays: Output>,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs =
        com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .weekdays(weekdays.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs].
 */
@PulumiTagMarker
public class PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgsBuilder internal constructor() {
    private var count: Output? = null

    private var weekdays: Output>? = null

    /**
     * @param value The number of weekly backups to keep. Possible values are between `1` and `5163`.
     */
    @JvmName("jbkierytibeisfhs")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("fvuskocuxiflmxun")
    public suspend fun weekdays(`value`: Output>) {
        this.weekdays = value
    }

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

    /**
     * @param values The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("ponnlvoylmrljrrk")
    public suspend fun weekdays(values: List>) {
        this.weekdays = Output.all(values)
    }

    /**
     * @param value The number of weekly backups to keep. Possible values are between `1` and `5163`.
     */
    @JvmName("pragfueekfqvimua")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("qihsyhoibpvhckju")
    public suspend fun weekdays(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weekdays = mapped
    }

    /**
     * @param values The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("inupfyhdfmrgyhol")
    public suspend fun weekdays(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weekdays = mapped
    }

    internal fun build(): PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs =
        PolicyVMWorkloadProtectionPolicyRetentionWeeklyArgs(
            count = count ?: throw PulumiNullFieldException("count"),
            weekdays = weekdays ?: throw PulumiNullFieldException("weekdays"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy