All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceRestoreBackupContext.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 DatabaseInstanceRestoreBackupContext(
    public val backupRunId: Int,
    public val instanceId: String? = null,
    public val project: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceRestoreBackupContext): DatabaseInstanceRestoreBackupContext = DatabaseInstanceRestoreBackupContext(
            backupRunId = javaType.backupRunId(),
            instanceId = javaType.instanceId().map({ args0 -> args0 }).orElse(null),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy