com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceRestoreBackupContextArgs.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.sql.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceRestoreBackupContextArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property backupRunId The ID of the backup run to restore from.
* @property instanceId The ID of the instance that the backup was taken from. If left empty,
* this instance's ID will be used.
* @property project The full project ID of the source instance.`
*/
public data class DatabaseInstanceRestoreBackupContextArgs(
public val backupRunId: Output,
public val instanceId: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceRestoreBackupContextArgs =
com.pulumi.gcp.sql.inputs.DatabaseInstanceRestoreBackupContextArgs.builder()
.backupRunId(backupRunId.applyValue({ args0 -> args0 }))
.instanceId(instanceId?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatabaseInstanceRestoreBackupContextArgs].
*/
@PulumiTagMarker
public class DatabaseInstanceRestoreBackupContextArgsBuilder internal constructor() {
private var backupRunId: Output? = null
private var instanceId: Output? = null
private var project: Output? = null
/**
* @param value The ID of the backup run to restore from.
*/
@JvmName("mavkomqyfsmkjdad")
public suspend fun backupRunId(`value`: Output) {
this.backupRunId = value
}
/**
* @param value The ID of the instance that the backup was taken from. If left empty,
* this instance's ID will be used.
*/
@JvmName("doydgkftiqmoiuah")
public suspend fun instanceId(`value`: Output) {
this.instanceId = value
}
/**
* @param value The full project ID of the source instance.`
*/
@JvmName("jiummbouoaomuqgp")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The ID of the backup run to restore from.
*/
@JvmName("fqtxmlurfrpcilai")
public suspend fun backupRunId(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backupRunId = mapped
}
/**
* @param value The ID of the instance that the backup was taken from. If left empty,
* this instance's ID will be used.
*/
@JvmName("pxskiotgkgxkovvo")
public suspend fun instanceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceId = mapped
}
/**
* @param value The full project ID of the source instance.`
*/
@JvmName("ulfawpofcjsjuoaj")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): DatabaseInstanceRestoreBackupContextArgs =
DatabaseInstanceRestoreBackupContextArgs(
backupRunId = backupRunId ?: throw PulumiNullFieldException("backupRunId"),
instanceId = instanceId,
project = project,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy