com.pulumi.alicloud.adb.kotlin.BackupPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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