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

com.pulumi.azurenative.dataprotection.kotlin.inputs.BackupScheduleArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.dataprotection.kotlin.inputs

import com.pulumi.azurenative.dataprotection.inputs.BackupScheduleArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Schedule for backup
 * @property repeatingTimeIntervals ISO 8601 repeating time interval format
 * @property timeZone Time zone for a schedule. Example: Pacific Standard Time
 */
public data class BackupScheduleArgs(
    public val repeatingTimeIntervals: Output>,
    public val timeZone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.dataprotection.inputs.BackupScheduleArgs =
        com.pulumi.azurenative.dataprotection.inputs.BackupScheduleArgs.builder()
            .repeatingTimeIntervals(repeatingTimeIntervals.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

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

    private var timeZone: Output? = null

    /**
     * @param value ISO 8601 repeating time interval format
     */
    @JvmName("qsfehrftakcaqkut")
    public suspend fun repeatingTimeIntervals(`value`: Output>) {
        this.repeatingTimeIntervals = value
    }

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

    /**
     * @param values ISO 8601 repeating time interval format
     */
    @JvmName("tbmxnlpmohligxqr")
    public suspend fun repeatingTimeIntervals(values: List>) {
        this.repeatingTimeIntervals = Output.all(values)
    }

    /**
     * @param value Time zone for a schedule. Example: Pacific Standard Time
     */
    @JvmName("pdvguxlucheebccm")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value ISO 8601 repeating time interval format
     */
    @JvmName("qwjysijmqiyjbgvb")
    public suspend fun repeatingTimeIntervals(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.repeatingTimeIntervals = mapped
    }

    /**
     * @param values ISO 8601 repeating time interval format
     */
    @JvmName("jbddtwprbhlavxpa")
    public suspend fun repeatingTimeIntervals(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.repeatingTimeIntervals = mapped
    }

    /**
     * @param value Time zone for a schedule. Example: Pacific Standard Time
     */
    @JvmName("ihbyqynnejujgqus")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): BackupScheduleArgs = BackupScheduleArgs(
        repeatingTimeIntervals = repeatingTimeIntervals ?: throw
            PulumiNullFieldException("repeatingTimeIntervals"),
        timeZone = timeZone,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy