com.pulumi.gcp.alloydb.kotlin.inputs.ClusterRestoreBackupSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.alloydb.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.ClusterRestoreBackupSourceArgs.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 backupName The name of the backup that this cluster is restored from.
*/
public data class ClusterRestoreBackupSourceArgs(
public val backupName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.alloydb.inputs.ClusterRestoreBackupSourceArgs =
com.pulumi.gcp.alloydb.inputs.ClusterRestoreBackupSourceArgs.builder()
.backupName(backupName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterRestoreBackupSourceArgs].
*/
@PulumiTagMarker
public class ClusterRestoreBackupSourceArgsBuilder internal constructor() {
private var backupName: Output? = null
/**
* @param value The name of the backup that this cluster is restored from.
*/
@JvmName("sobxmokkebulgtpd")
public suspend fun backupName(`value`: Output) {
this.backupName = value
}
/**
* @param value The name of the backup that this cluster is restored from.
*/
@JvmName("guhapluulosxvipu")
public suspend fun backupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backupName = mapped
}
internal fun build(): ClusterRestoreBackupSourceArgs = ClusterRestoreBackupSourceArgs(
backupName = backupName ?: throw PulumiNullFieldException("backupName"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy