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

com.pulumi.azure.automanage.kotlin.outputs.ConfigurationBackup.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.automanage.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 ConfigurationBackup(
    public val instantRpRetentionRangeInDays: Int? = null,
    public val policyName: String? = null,
    public val retentionPolicy: ConfigurationBackupRetentionPolicy? = null,
    public val schedulePolicy: ConfigurationBackupSchedulePolicy? = null,
    public val timeZone: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.automanage.outputs.ConfigurationBackup):
            ConfigurationBackup = ConfigurationBackup(
            instantRpRetentionRangeInDays = javaType.instantRpRetentionRangeInDays().map({ args0 ->
                args0
            }).orElse(null),
            policyName = javaType.policyName().map({ args0 -> args0 }).orElse(null),
            retentionPolicy = javaType.retentionPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.automanage.kotlin.outputs.ConfigurationBackupRetentionPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            schedulePolicy = javaType.schedulePolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.automanage.kotlin.outputs.ConfigurationBackupSchedulePolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeZone = javaType.timeZone().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy