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

com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceRestoreBackupContextArgs.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.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