com.pulumi.digitalocean.kotlin.inputs.DatabaseClusterBackupRestoreArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.DatabaseClusterBackupRestoreArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property backupCreatedAt The timestamp of an existing database cluster backup in ISO8601 combined date and time format. The most recent backup will be used if excluded.
* This resource supports customized create timeouts. The default timeout is 30 minutes.
* @property databaseName The name of an existing database cluster from which the backup will be restored.
*/
public data class DatabaseClusterBackupRestoreArgs(
public val backupCreatedAt: Output? = null,
public val databaseName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.DatabaseClusterBackupRestoreArgs =
com.pulumi.digitalocean.inputs.DatabaseClusterBackupRestoreArgs.builder()
.backupCreatedAt(backupCreatedAt?.applyValue({ args0 -> args0 }))
.databaseName(databaseName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatabaseClusterBackupRestoreArgs].
*/
@PulumiTagMarker
public class DatabaseClusterBackupRestoreArgsBuilder internal constructor() {
private var backupCreatedAt: Output? = null
private var databaseName: Output? = null
/**
* @param value The timestamp of an existing database cluster backup in ISO8601 combined date and time format. The most recent backup will be used if excluded.
* This resource supports customized create timeouts. The default timeout is 30 minutes.
*/
@JvmName("vwpoikeejxnucpuc")
public suspend fun backupCreatedAt(`value`: Output) {
this.backupCreatedAt = value
}
/**
* @param value The name of an existing database cluster from which the backup will be restored.
*/
@JvmName("vjukdninbelajatj")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value The timestamp of an existing database cluster backup in ISO8601 combined date and time format. The most recent backup will be used if excluded.
* This resource supports customized create timeouts. The default timeout is 30 minutes.
*/
@JvmName("yldxcljgwsvxwryw")
public suspend fun backupCreatedAt(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupCreatedAt = mapped
}
/**
* @param value The name of an existing database cluster from which the backup will be restored.
*/
@JvmName("shjdiwcsqffnihqi")
public suspend fun databaseName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.databaseName = mapped
}
internal fun build(): DatabaseClusterBackupRestoreArgs = DatabaseClusterBackupRestoreArgs(
backupCreatedAt = backupCreatedAt,
databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
)
}