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

com.pulumi.azurenative.sql.kotlin.inputs.ElasticPoolPerDatabaseSettingsArgs.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.sql.kotlin.inputs

import com.pulumi.azurenative.sql.inputs.ElasticPoolPerDatabaseSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Per database settings of an elastic pool.
 * @property maxCapacity The maximum capacity any one database can consume.
 * @property minCapacity The minimum capacity all databases are guaranteed.
 */
public data class ElasticPoolPerDatabaseSettingsArgs(
    public val maxCapacity: Output? = null,
    public val minCapacity: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.sql.inputs.ElasticPoolPerDatabaseSettingsArgs =
        com.pulumi.azurenative.sql.inputs.ElasticPoolPerDatabaseSettingsArgs.builder()
            .maxCapacity(maxCapacity?.applyValue({ args0 -> args0 }))
            .minCapacity(minCapacity?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ElasticPoolPerDatabaseSettingsArgs].
 */
@PulumiTagMarker
public class ElasticPoolPerDatabaseSettingsArgsBuilder internal constructor() {
    private var maxCapacity: Output? = null

    private var minCapacity: Output? = null

    /**
     * @param value The maximum capacity any one database can consume.
     */
    @JvmName("gswfaqinxtyrgfpe")
    public suspend fun maxCapacity(`value`: Output) {
        this.maxCapacity = value
    }

    /**
     * @param value The minimum capacity all databases are guaranteed.
     */
    @JvmName("ghnwhtwlatkjiapn")
    public suspend fun minCapacity(`value`: Output) {
        this.minCapacity = value
    }

    /**
     * @param value The maximum capacity any one database can consume.
     */
    @JvmName("dbjriyihmmllmlkh")
    public suspend fun maxCapacity(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCapacity = mapped
    }

    /**
     * @param value The minimum capacity all databases are guaranteed.
     */
    @JvmName("acmeihyykkrpclum")
    public suspend fun minCapacity(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minCapacity = mapped
    }

    internal fun build(): ElasticPoolPerDatabaseSettingsArgs = ElasticPoolPerDatabaseSettingsArgs(
        maxCapacity = maxCapacity,
        minCapacity = minCapacity,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy