com.pulumi.gcp.sql.kotlin.inputs.GetBackupRunPlainArgs.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.gcp.sql.inputs.GetBackupRunPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getBackupRun.
* @property backupId The identifier for this backup run. Unique only for a specific Cloud SQL instance.
* If left empty and multiple backups exist for the instance, `most_recent` must be set to `true`.
* @property instance The name of the instance the backup is taken from.
* @property mostRecent Toggles use of the most recent backup run if multiple backups exist for a
* Cloud SQL instance.
* @property project The project to list instances for. If it
* is not provided, the provider project is used.
*/
public data class GetBackupRunPlainArgs(
public val backupId: Int? = null,
public val instance: String,
public val mostRecent: Boolean? = null,
public val project: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.sql.inputs.GetBackupRunPlainArgs =
com.pulumi.gcp.sql.inputs.GetBackupRunPlainArgs.builder()
.backupId(backupId?.let({ args0 -> args0 }))
.instance(instance.let({ args0 -> args0 }))
.mostRecent(mostRecent?.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetBackupRunPlainArgs].
*/
@PulumiTagMarker
public class GetBackupRunPlainArgsBuilder internal constructor() {
private var backupId: Int? = null
private var instance: String? = null
private var mostRecent: Boolean? = null
private var project: String? = null
/**
* @param value The identifier for this backup run. Unique only for a specific Cloud SQL instance.
* If left empty and multiple backups exist for the instance, `most_recent` must be set to `true`.
*/
@JvmName("drvnfspsvpdfgewm")
public suspend fun backupId(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.backupId = mapped
}
/**
* @param value The name of the instance the backup is taken from.
*/
@JvmName("lgvruygekcshprab")
public suspend fun instance(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.instance = mapped
}
/**
* @param value Toggles use of the most recent backup run if multiple backups exist for a
* Cloud SQL instance.
*/
@JvmName("yssbgshejrbrrlke")
public suspend fun mostRecent(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.mostRecent = mapped
}
/**
* @param value The project to list instances for. If it
* is not provided, the provider project is used.
*/
@JvmName("fqjdwlfyembdtpow")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
internal fun build(): GetBackupRunPlainArgs = GetBackupRunPlainArgs(
backupId = backupId,
instance = instance ?: throw PulumiNullFieldException("instance"),
mostRecent = mostRecent,
project = project,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy