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

com.pulumi.azure.backup.kotlin.inputs.PolicyFileShareRetentionWeeklyArgs.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.PolicyFileShareRetentionWeeklyArgs.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 daily backups to keep. Must be between `1` and `200` (inclusive)
 * @property weekdays The weekday backups to retain. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
 */
public data class PolicyFileShareRetentionWeeklyArgs(
    public val count: Output,
    public val weekdays: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.backup.inputs.PolicyFileShareRetentionWeeklyArgs =
        com.pulumi.azure.backup.inputs.PolicyFileShareRetentionWeeklyArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .weekdays(weekdays.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var weekdays: Output>? = null

    /**
     * @param value The number of daily backups to keep. Must be between `1` and `200` (inclusive)
     */
    @JvmName("wvagfyqjgykkutyx")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

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

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

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

    /**
     * @param value The number of daily backups to keep. Must be between `1` and `200` (inclusive)
     */
    @JvmName("qtwipqxjpgscursg")
    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. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("tqphfdqllfljiyry")
    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. Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("hpfbxjmtcdwdhiew")
    public suspend fun weekdays(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weekdays = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy