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

com.pulumi.azurenative.azurearcdata.kotlin.inputs.SqlServerDatabaseResourcePropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.azurearcdata.kotlin.inputs

import com.pulumi.azurenative.azurearcdata.inputs.SqlServerDatabaseResourcePropertiesArgs.builder
import com.pulumi.azurenative.azurearcdata.kotlin.enums.DatabaseState
import com.pulumi.azurenative.azurearcdata.kotlin.enums.RecoveryMode
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.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The properties of Arc Sql Server database resource
 * @property backupInformation
 * @property collationName Collation of the database.
 * @property compatibilityLevel Compatibility level of the database
 * @property databaseCreationDate Creation date of the database.
 * @property databaseOptions List of features that are enabled for the database
 * @property isReadOnly Whether the database is read only or not.
 * @property recoveryMode Status of the database.
 * @property sizeMB Size of the database.
 * @property spaceAvailableMB Space left of the database.
 * @property state State of the database.
 */
public data class SqlServerDatabaseResourcePropertiesArgs(
    public val backupInformation: Output? =
        null,
    public val collationName: Output? = null,
    public val compatibilityLevel: Output? = null,
    public val databaseCreationDate: Output? = null,
    public val databaseOptions: Output? =
        null,
    public val isReadOnly: Output? = null,
    public val recoveryMode: Output>? = null,
    public val sizeMB: Output? = null,
    public val spaceAvailableMB: Output? = null,
    public val state: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurearcdata.inputs.SqlServerDatabaseResourcePropertiesArgs =
        com.pulumi.azurenative.azurearcdata.inputs.SqlServerDatabaseResourcePropertiesArgs.builder()
            .backupInformation(backupInformation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .collationName(collationName?.applyValue({ args0 -> args0 }))
            .compatibilityLevel(compatibilityLevel?.applyValue({ args0 -> args0 }))
            .databaseCreationDate(databaseCreationDate?.applyValue({ args0 -> args0 }))
            .databaseOptions(databaseOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .isReadOnly(isReadOnly?.applyValue({ args0 -> args0 }))
            .recoveryMode(
                recoveryMode?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .sizeMB(sizeMB?.applyValue({ args0 -> args0 }))
            .spaceAvailableMB(spaceAvailableMB?.applyValue({ args0 -> args0 }))
            .state(
                state?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SqlServerDatabaseResourcePropertiesArgs].
 */
@PulumiTagMarker
public class SqlServerDatabaseResourcePropertiesArgsBuilder internal constructor() {
    private var backupInformation: Output? =
        null

    private var collationName: Output? = null

    private var compatibilityLevel: Output? = null

    private var databaseCreationDate: Output? = null

    private var databaseOptions: Output? =
        null

    private var isReadOnly: Output? = null

    private var recoveryMode: Output>? = null

    private var sizeMB: Output? = null

    private var spaceAvailableMB: Output? = null

    private var state: Output>? = null

    /**
     * @param value
     */
    @JvmName("ltlustymuhjviwey")
    public suspend fun backupInformation(`value`: Output) {
        this.backupInformation = value
    }

    /**
     * @param value Collation of the database.
     */
    @JvmName("hobtnyhmwcbroejt")
    public suspend fun collationName(`value`: Output) {
        this.collationName = value
    }

    /**
     * @param value Compatibility level of the database
     */
    @JvmName("pihduttdikaouwjq")
    public suspend fun compatibilityLevel(`value`: Output) {
        this.compatibilityLevel = value
    }

    /**
     * @param value Creation date of the database.
     */
    @JvmName("pbnwreccsaxarftt")
    public suspend fun databaseCreationDate(`value`: Output) {
        this.databaseCreationDate = value
    }

    /**
     * @param value List of features that are enabled for the database
     */
    @JvmName("fhhetbvxekxxhbyy")
    public suspend fun databaseOptions(`value`: Output) {
        this.databaseOptions = value
    }

    /**
     * @param value Whether the database is read only or not.
     */
    @JvmName("iiwniuvibiwhevxp")
    public suspend fun isReadOnly(`value`: Output) {
        this.isReadOnly = value
    }

    /**
     * @param value Status of the database.
     */
    @JvmName("utnexdgvopblbxgp")
    public suspend fun recoveryMode(`value`: Output>) {
        this.recoveryMode = value
    }

    /**
     * @param value Size of the database.
     */
    @JvmName("rpqifpyvsfokuoos")
    public suspend fun sizeMB(`value`: Output) {
        this.sizeMB = value
    }

    /**
     * @param value Space left of the database.
     */
    @JvmName("cqdlirljcohcjoda")
    public suspend fun spaceAvailableMB(`value`: Output) {
        this.spaceAvailableMB = value
    }

    /**
     * @param value State of the database.
     */
    @JvmName("xtxsqncwpcyrvqce")
    public suspend fun state(`value`: Output>) {
        this.state = value
    }

    /**
     * @param value
     */
    @JvmName("lyxydalmwbupkftd")
    public suspend fun backupInformation(`value`: SqlServerDatabaseResourcePropertiesBackupInformationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupInformation = mapped
    }

    /**
     * @param argument
     */
    @JvmName("othdwkalgeyowigx")
    public suspend fun backupInformation(argument: suspend SqlServerDatabaseResourcePropertiesBackupInformationArgsBuilder.() -> Unit) {
        val toBeMapped = SqlServerDatabaseResourcePropertiesBackupInformationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.backupInformation = mapped
    }

    /**
     * @param value Collation of the database.
     */
    @JvmName("coxlnlujqwhdqmbv")
    public suspend fun collationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.collationName = mapped
    }

    /**
     * @param value Compatibility level of the database
     */
    @JvmName("jbxupvgrxsjwctdk")
    public suspend fun compatibilityLevel(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compatibilityLevel = mapped
    }

    /**
     * @param value Creation date of the database.
     */
    @JvmName("tlfmhiysmcgunthl")
    public suspend fun databaseCreationDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseCreationDate = mapped
    }

    /**
     * @param value List of features that are enabled for the database
     */
    @JvmName("mqnxyyypogocoqyx")
    public suspend fun databaseOptions(`value`: SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseOptions = mapped
    }

    /**
     * @param argument List of features that are enabled for the database
     */
    @JvmName("ptwihnnjsovjqedx")
    public suspend fun databaseOptions(argument: suspend SqlServerDatabaseResourcePropertiesDatabaseOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = SqlServerDatabaseResourcePropertiesDatabaseOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.databaseOptions = mapped
    }

    /**
     * @param value Whether the database is read only or not.
     */
    @JvmName("eaweflebrqivepwj")
    public suspend fun isReadOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isReadOnly = mapped
    }

    /**
     * @param value Status of the database.
     */
    @JvmName("vqbdrqxyttvhgumg")
    public suspend fun recoveryMode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryMode = mapped
    }

    /**
     * @param value Status of the database.
     */
    @JvmName("piifhdglcvydnjuu")
    public fun recoveryMode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recoveryMode = mapped
    }

    /**
     * @param value Status of the database.
     */
    @JvmName("adrjqttncdjxcpqf")
    public fun recoveryMode(`value`: RecoveryMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recoveryMode = mapped
    }

    /**
     * @param value Size of the database.
     */
    @JvmName("lqanyndxnynlnlvi")
    public suspend fun sizeMB(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sizeMB = mapped
    }

    /**
     * @param value Space left of the database.
     */
    @JvmName("natrffhdrdrvqcln")
    public suspend fun spaceAvailableMB(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spaceAvailableMB = mapped
    }

    /**
     * @param value State of the database.
     */
    @JvmName("bphtebdapqgfjkts")
    public suspend fun state(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    /**
     * @param value State of the database.
     */
    @JvmName("pxuiegdfcueasoip")
    public fun state(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.state = mapped
    }

    /**
     * @param value State of the database.
     */
    @JvmName("tkpeaaajnxkacges")
    public fun state(`value`: DatabaseState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.state = mapped
    }

    internal fun build(): SqlServerDatabaseResourcePropertiesArgs =
        SqlServerDatabaseResourcePropertiesArgs(
            backupInformation = backupInformation,
            collationName = collationName,
            compatibilityLevel = compatibilityLevel,
            databaseCreationDate = databaseCreationDate,
            databaseOptions = databaseOptions,
            isReadOnly = isReadOnly,
            recoveryMode = recoveryMode,
            sizeMB = sizeMB,
            spaceAvailableMB = spaceAvailableMB,
            state = state,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy