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

com.pulumi.azure.backup.kotlin.inputs.PolicyVMTieringPolicyArchivedRestorePointArgs.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.PolicyVMTieringPolicyArchivedRestorePointArgs.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.jvm.JvmName

/**
 *
 * @property duration The number of days/weeks/months/years to retain backups in current tier before tiering.
 * @property durationType The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
 * @property mode The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
 */
public data class PolicyVMTieringPolicyArchivedRestorePointArgs(
    public val duration: Output? = null,
    public val durationType: Output? = null,
    public val mode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.backup.inputs.PolicyVMTieringPolicyArchivedRestorePointArgs =
        com.pulumi.azure.backup.inputs.PolicyVMTieringPolicyArchivedRestorePointArgs.builder()
            .duration(duration?.applyValue({ args0 -> args0 }))
            .durationType(durationType?.applyValue({ args0 -> args0 }))
            .mode(mode.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyVMTieringPolicyArchivedRestorePointArgs].
 */
@PulumiTagMarker
public class PolicyVMTieringPolicyArchivedRestorePointArgsBuilder internal constructor() {
    private var duration: Output? = null

    private var durationType: Output? = null

    private var mode: Output? = null

    /**
     * @param value The number of days/weeks/months/years to retain backups in current tier before tiering.
     */
    @JvmName("qyasfuxscbglpwnt")
    public suspend fun duration(`value`: Output) {
        this.duration = value
    }

    /**
     * @param value The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
     */
    @JvmName("gyqsonpfeojfqeun")
    public suspend fun durationType(`value`: Output) {
        this.durationType = value
    }

    /**
     * @param value The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
     */
    @JvmName("hthqasocgsljnjda")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value The number of days/weeks/months/years to retain backups in current tier before tiering.
     */
    @JvmName("htsnhrutuifdqlpe")
    public suspend fun duration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.duration = mapped
    }

    /**
     * @param value The retention duration type. Possible values are `Days`, `Weeks`, `Months` and `Years`.
     */
    @JvmName("kxicsronpmqkdkol")
    public suspend fun durationType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.durationType = mapped
    }

    /**
     * @param value The tiering mode to control automatic tiering of recovery points. Possible values are `TierAfter` and `TierRecommended`.
     */
    @JvmName("ppdvxepmoqgjubju")
    public suspend fun mode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): PolicyVMTieringPolicyArchivedRestorePointArgs =
        PolicyVMTieringPolicyArchivedRestorePointArgs(
            duration = duration,
            durationType = durationType,
            mode = mode ?: throw PulumiNullFieldException("mode"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy