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

com.pulumi.azurenative.documentdb.kotlin.inputs.DatabaseRestoreResourceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.documentdb.kotlin.inputs

import com.pulumi.azurenative.documentdb.inputs.DatabaseRestoreResourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Specific Databases to restore.
 * @property collectionNames The names of the collections available for restore.
 * @property databaseName The name of the database available for restore.
 */
public data class DatabaseRestoreResourceArgs(
    public val collectionNames: Output>? = null,
    public val databaseName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.documentdb.inputs.DatabaseRestoreResourceArgs =
        com.pulumi.azurenative.documentdb.inputs.DatabaseRestoreResourceArgs.builder()
            .collectionNames(collectionNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .databaseName(databaseName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseRestoreResourceArgs].
 */
@PulumiTagMarker
public class DatabaseRestoreResourceArgsBuilder internal constructor() {
    private var collectionNames: Output>? = null

    private var databaseName: Output? = null

    /**
     * @param value The names of the collections available for restore.
     */
    @JvmName("ixmswrpagbjxmnub")
    public suspend fun collectionNames(`value`: Output>) {
        this.collectionNames = value
    }

    @JvmName("avybewoymhgimheu")
    public suspend fun collectionNames(vararg values: Output) {
        this.collectionNames = Output.all(values.asList())
    }

    /**
     * @param values The names of the collections available for restore.
     */
    @JvmName("xatsiynifwekunqp")
    public suspend fun collectionNames(values: List>) {
        this.collectionNames = Output.all(values)
    }

    /**
     * @param value The name of the database available for restore.
     */
    @JvmName("oyemyinbmywdoopr")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

    /**
     * @param value The names of the collections available for restore.
     */
    @JvmName("bwusbwvnohtjenkq")
    public suspend fun collectionNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.collectionNames = mapped
    }

    /**
     * @param values The names of the collections available for restore.
     */
    @JvmName("cwhthxyduselwjno")
    public suspend fun collectionNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.collectionNames = mapped
    }

    /**
     * @param value The name of the database available for restore.
     */
    @JvmName("kipkimpqytrvrdhw")
    public suspend fun databaseName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

    internal fun build(): DatabaseRestoreResourceArgs = DatabaseRestoreResourceArgs(
        collectionNames = collectionNames,
        databaseName = databaseName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy