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

com.pulumi.azure.automanage.kotlin.inputs.ConfigurationBackupArgs.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.automanage.kotlin.inputs

import com.pulumi.azure.automanage.inputs.ConfigurationBackupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property instantRpRetentionRangeInDays The retention range in days of the backup policy. Defaults to `5`.
 * @property policyName The name of the backup policy.
 * @property retentionPolicy A `retention_policy` block as defined below.
 * @property schedulePolicy A `schedule_policy` block as defined below.
 * @property timeZone The timezone of the backup policy. Defaults to `UTC`.
 */
public data class ConfigurationBackupArgs(
    public val instantRpRetentionRangeInDays: Output? = null,
    public val policyName: Output? = null,
    public val retentionPolicy: Output? = null,
    public val schedulePolicy: Output? = null,
    public val timeZone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.automanage.inputs.ConfigurationBackupArgs =
        com.pulumi.azure.automanage.inputs.ConfigurationBackupArgs.builder()
            .instantRpRetentionRangeInDays(instantRpRetentionRangeInDays?.applyValue({ args0 -> args0 }))
            .policyName(policyName?.applyValue({ args0 -> args0 }))
            .retentionPolicy(retentionPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .schedulePolicy(schedulePolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConfigurationBackupArgs].
 */
@PulumiTagMarker
public class ConfigurationBackupArgsBuilder internal constructor() {
    private var instantRpRetentionRangeInDays: Output? = null

    private var policyName: Output? = null

    private var retentionPolicy: Output? = null

    private var schedulePolicy: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value The retention range in days of the backup policy. Defaults to `5`.
     */
    @JvmName("lkyywoglcjdrdmcr")
    public suspend fun instantRpRetentionRangeInDays(`value`: Output) {
        this.instantRpRetentionRangeInDays = value
    }

    /**
     * @param value The name of the backup policy.
     */
    @JvmName("hdrwndwivsjvexce")
    public suspend fun policyName(`value`: Output) {
        this.policyName = value
    }

    /**
     * @param value A `retention_policy` block as defined below.
     */
    @JvmName("cyrrnsejsncgtsiq")
    public suspend fun retentionPolicy(`value`: Output) {
        this.retentionPolicy = value
    }

    /**
     * @param value A `schedule_policy` block as defined below.
     */
    @JvmName("trihvvyhohvmebfc")
    public suspend fun schedulePolicy(`value`: Output) {
        this.schedulePolicy = value
    }

    /**
     * @param value The timezone of the backup policy. Defaults to `UTC`.
     */
    @JvmName("brdefkbcqnvcrfat")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value The retention range in days of the backup policy. Defaults to `5`.
     */
    @JvmName("vxjasmbvmlhwhxxq")
    public suspend fun instantRpRetentionRangeInDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instantRpRetentionRangeInDays = mapped
    }

    /**
     * @param value The name of the backup policy.
     */
    @JvmName("vnfrmuxgbmpdayjm")
    public suspend fun policyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyName = mapped
    }

    /**
     * @param value A `retention_policy` block as defined below.
     */
    @JvmName("xxqmwqftpibmatix")
    public suspend fun retentionPolicy(`value`: ConfigurationBackupRetentionPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPolicy = mapped
    }

    /**
     * @param argument A `retention_policy` block as defined below.
     */
    @JvmName("kuaxmrmhnjrkaedf")
    public suspend fun retentionPolicy(argument: suspend ConfigurationBackupRetentionPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ConfigurationBackupRetentionPolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.retentionPolicy = mapped
    }

    /**
     * @param value A `schedule_policy` block as defined below.
     */
    @JvmName("gptonqsijwncthmo")
    public suspend fun schedulePolicy(`value`: ConfigurationBackupSchedulePolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedulePolicy = mapped
    }

    /**
     * @param argument A `schedule_policy` block as defined below.
     */
    @JvmName("dbykjwletxtcggbq")
    public suspend fun schedulePolicy(argument: suspend ConfigurationBackupSchedulePolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ConfigurationBackupSchedulePolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.schedulePolicy = mapped
    }

    /**
     * @param value The timezone of the backup policy. Defaults to `UTC`.
     */
    @JvmName("sahnxnsnrtaluopj")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): ConfigurationBackupArgs = ConfigurationBackupArgs(
        instantRpRetentionRangeInDays = instantRpRetentionRangeInDays,
        policyName = policyName,
        retentionPolicy = retentionPolicy,
        schedulePolicy = schedulePolicy,
        timeZone = timeZone,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy