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

com.pulumi.azure.mssql.kotlin.inputs.ManagedDatabasePointInTimeRestoreArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mssql.kotlin.inputs

import com.pulumi.azure.mssql.inputs.ManagedDatabasePointInTimeRestoreArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 restorePointInTime The point in time for the restore from `source_database_id`. Changing this forces a new resource to be created.
 * @property sourceDatabaseId The source database id that will be used to restore from. Changing this forces a new resource to be created.
 */
public data class ManagedDatabasePointInTimeRestoreArgs(
    public val restorePointInTime: Output,
    public val sourceDatabaseId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mssql.inputs.ManagedDatabasePointInTimeRestoreArgs =
        com.pulumi.azure.mssql.inputs.ManagedDatabasePointInTimeRestoreArgs.builder()
            .restorePointInTime(restorePointInTime.applyValue({ args0 -> args0 }))
            .sourceDatabaseId(sourceDatabaseId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedDatabasePointInTimeRestoreArgs].
 */
@PulumiTagMarker
public class ManagedDatabasePointInTimeRestoreArgsBuilder internal constructor() {
    private var restorePointInTime: Output? = null

    private var sourceDatabaseId: Output? = null

    /**
     * @param value The point in time for the restore from `source_database_id`. Changing this forces a new resource to be created.
     */
    @JvmName("frqfgsxantweqfdp")
    public suspend fun restorePointInTime(`value`: Output) {
        this.restorePointInTime = value
    }

    /**
     * @param value The source database id that will be used to restore from. Changing this forces a new resource to be created.
     */
    @JvmName("crkyvbiuwfeihrob")
    public suspend fun sourceDatabaseId(`value`: Output) {
        this.sourceDatabaseId = value
    }

    /**
     * @param value The point in time for the restore from `source_database_id`. Changing this forces a new resource to be created.
     */
    @JvmName("ayytaalitjlmykpa")
    public suspend fun restorePointInTime(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.restorePointInTime = mapped
    }

    /**
     * @param value The source database id that will be used to restore from. Changing this forces a new resource to be created.
     */
    @JvmName("wkmhqhjuolxxroky")
    public suspend fun sourceDatabaseId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceDatabaseId = mapped
    }

    internal fun build(): ManagedDatabasePointInTimeRestoreArgs =
        ManagedDatabasePointInTimeRestoreArgs(
            restorePointInTime = restorePointInTime ?: throw PulumiNullFieldException("restorePointInTime"),
            sourceDatabaseId = sourceDatabaseId ?: throw PulumiNullFieldException("sourceDatabaseId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy