![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.documentdb.kotlin.inputs.RestoreParametersArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.RestoreParametersArgs.builder
import com.pulumi.azurenative.documentdb.kotlin.enums.RestoreMode
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Parameters to indicate the information about the restore.
* @property databasesToRestore List of specific databases available for restore.
* @property gremlinDatabasesToRestore List of specific gremlin databases available for restore.
* @property restoreMode Describes the mode of the restore.
* @property restoreSource The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}
* @property restoreTimestampInUtc Time to which the account has to be restored (ISO-8601 format).
* @property tablesToRestore List of specific tables available for restore.
*/
public data class RestoreParametersArgs(
public val databasesToRestore: Output>? = null,
public val gremlinDatabasesToRestore: Output>? = null,
public val restoreMode: Output>? = null,
public val restoreSource: Output? = null,
public val restoreTimestampInUtc: Output? = null,
public val tablesToRestore: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.RestoreParametersArgs =
com.pulumi.azurenative.documentdb.inputs.RestoreParametersArgs.builder()
.databasesToRestore(
databasesToRestore?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.gremlinDatabasesToRestore(
gremlinDatabasesToRestore?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.restoreMode(
restoreMode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.restoreSource(restoreSource?.applyValue({ args0 -> args0 }))
.restoreTimestampInUtc(restoreTimestampInUtc?.applyValue({ args0 -> args0 }))
.tablesToRestore(tablesToRestore?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [RestoreParametersArgs].
*/
@PulumiTagMarker
public class RestoreParametersArgsBuilder internal constructor() {
private var databasesToRestore: Output>? = null
private var gremlinDatabasesToRestore: Output>? = null
private var restoreMode: Output>? = null
private var restoreSource: Output? = null
private var restoreTimestampInUtc: Output? = null
private var tablesToRestore: Output>? = null
/**
* @param value List of specific databases available for restore.
*/
@JvmName("lworhxvcrvehetul")
public suspend fun databasesToRestore(`value`: Output>) {
this.databasesToRestore = value
}
@JvmName("hfmxfbbhahubvpxd")
public suspend fun databasesToRestore(vararg values: Output) {
this.databasesToRestore = Output.all(values.asList())
}
/**
* @param values List of specific databases available for restore.
*/
@JvmName("rdblhdrimkqqxssw")
public suspend fun databasesToRestore(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy