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

com.pulumi.alicloud.adb.kotlin.BackupPolicyArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.adb.kotlin

import com.pulumi.alicloud.adb.BackupPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * ## Import
 * ADB backup policy can be imported using the id or cluster id, e.g.
 * ```sh
 * $ pulumi import alicloud:adb/backupPolicy:BackupPolicy example "am-12345678"
 * ```
 * @property dbClusterId The Id of cluster that can run database.
 * @property preferredBackupPeriods ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
 * @property preferredBackupTime ADB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. China time is 8 hours behind it.
 */
public data class BackupPolicyArgs(
    public val dbClusterId: Output? = null,
    public val preferredBackupPeriods: Output>? = null,
    public val preferredBackupTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.adb.BackupPolicyArgs =
        com.pulumi.alicloud.adb.BackupPolicyArgs.builder()
            .dbClusterId(dbClusterId?.applyValue({ args0 -> args0 }))
            .preferredBackupPeriods(
                preferredBackupPeriods?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .preferredBackupTime(preferredBackupTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackupPolicyArgs].
 */
@PulumiTagMarker
public class BackupPolicyArgsBuilder internal constructor() {
    private var dbClusterId: Output? = null

    private var preferredBackupPeriods: Output>? = null

    private var preferredBackupTime: Output? = null

    /**
     * @param value The Id of cluster that can run database.
     */
    @JvmName("sekxdaaucmlsnsvs")
    public suspend fun dbClusterId(`value`: Output) {
        this.dbClusterId = value
    }

    /**
     * @param value ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
     */
    @JvmName("motdwxujoygnheif")
    public suspend fun preferredBackupPeriods(`value`: Output>) {
        this.preferredBackupPeriods = value
    }

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

    /**
     * @param values ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
     */
    @JvmName("sreblocfxiuyvuqt")
    public suspend fun preferredBackupPeriods(values: List>) {
        this.preferredBackupPeriods = Output.all(values)
    }

    /**
     * @param value ADB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. China time is 8 hours behind it.
     */
    @JvmName("hgoomctgfbygrpat")
    public suspend fun preferredBackupTime(`value`: Output) {
        this.preferredBackupTime = value
    }

    /**
     * @param value The Id of cluster that can run database.
     */
    @JvmName("bbwfuanqqkjhonqs")
    public suspend fun dbClusterId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbClusterId = mapped
    }

    /**
     * @param value ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
     */
    @JvmName("gluxmwlhjgvprbem")
    public suspend fun preferredBackupPeriods(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredBackupPeriods = mapped
    }

    /**
     * @param values ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
     */
    @JvmName("ilqvfetaibkuvtkn")
    public suspend fun preferredBackupPeriods(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preferredBackupPeriods = mapped
    }

    /**
     * @param value ADB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. China time is 8 hours behind it.
     */
    @JvmName("kfdrdetwgskehtda")
    public suspend fun preferredBackupTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredBackupTime = mapped
    }

    internal fun build(): BackupPolicyArgs = BackupPolicyArgs(
        dbClusterId = dbClusterId,
        preferredBackupPeriods = preferredBackupPeriods,
        preferredBackupTime = preferredBackupTime,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy