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

com.pulumi.azurenative.migrate.kotlin.inputs.SqlDbSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.SqlDbSettingsArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.AzureSqlDataBaseType
import com.pulumi.azurenative.migrate.kotlin.enums.AzureSqlPurchaseModel
import com.pulumi.azurenative.migrate.kotlin.enums.AzureSqlServiceTier
import com.pulumi.azurenative.migrate.kotlin.enums.ComputeTier
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * SQL database assessment settings.
 * @property azureSqlComputeTier Gets or sets the azure SQL compute tier.
 * @property azureSqlDataBaseType Gets or sets the azure PAAS SQL instance type.
 * @property azureSqlPurchaseModel Gets or sets the azure SQL purchase model.
 * @property azureSqlServiceTier Gets or sets the azure SQL service tier.
 */
public data class SqlDbSettingsArgs(
    public val azureSqlComputeTier: Output>? = null,
    public val azureSqlDataBaseType: Output>? = null,
    public val azureSqlPurchaseModel: Output>? = null,
    public val azureSqlServiceTier: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.SqlDbSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.SqlDbSettingsArgs.builder()
            .azureSqlComputeTier(
                azureSqlComputeTier?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .azureSqlDataBaseType(
                azureSqlDataBaseType?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .azureSqlPurchaseModel(
                azureSqlPurchaseModel?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .azureSqlServiceTier(
                azureSqlServiceTier?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

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

    private var azureSqlDataBaseType: Output>? = null

    private var azureSqlPurchaseModel: Output>? = null

    private var azureSqlServiceTier: Output>? = null

    /**
     * @param value Gets or sets the azure SQL compute tier.
     */
    @JvmName("ejxdshrekdbvrdnk")
    public suspend fun azureSqlComputeTier(`value`: Output>) {
        this.azureSqlComputeTier = value
    }

    /**
     * @param value Gets or sets the azure PAAS SQL instance type.
     */
    @JvmName("iriwaoobojadvnoj")
    public suspend fun azureSqlDataBaseType(`value`: Output>) {
        this.azureSqlDataBaseType = value
    }

    /**
     * @param value Gets or sets the azure SQL purchase model.
     */
    @JvmName("xclfmynjgdkevaok")
    public suspend fun azureSqlPurchaseModel(`value`: Output>) {
        this.azureSqlPurchaseModel = value
    }

    /**
     * @param value Gets or sets the azure SQL service tier.
     */
    @JvmName("mxvqxfllfrmcbnrp")
    public suspend fun azureSqlServiceTier(`value`: Output>) {
        this.azureSqlServiceTier = value
    }

    /**
     * @param value Gets or sets the azure SQL compute tier.
     */
    @JvmName("rxxjvkxlejyduavr")
    public suspend fun azureSqlComputeTier(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureSqlComputeTier = mapped
    }

    /**
     * @param value Gets or sets the azure SQL compute tier.
     */
    @JvmName("ajtmknblohfxvrrb")
    public fun azureSqlComputeTier(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlComputeTier = mapped
    }

    /**
     * @param value Gets or sets the azure SQL compute tier.
     */
    @JvmName("mhihpfioptjtejga")
    public fun azureSqlComputeTier(`value`: ComputeTier) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlComputeTier = mapped
    }

    /**
     * @param value Gets or sets the azure PAAS SQL instance type.
     */
    @JvmName("vkrbmefbhccrnjmi")
    public suspend fun azureSqlDataBaseType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureSqlDataBaseType = mapped
    }

    /**
     * @param value Gets or sets the azure PAAS SQL instance type.
     */
    @JvmName("frmuuxagdrofusoi")
    public fun azureSqlDataBaseType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlDataBaseType = mapped
    }

    /**
     * @param value Gets or sets the azure PAAS SQL instance type.
     */
    @JvmName("fxmwbpuklvpdooch")
    public fun azureSqlDataBaseType(`value`: AzureSqlDataBaseType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlDataBaseType = mapped
    }

    /**
     * @param value Gets or sets the azure SQL purchase model.
     */
    @JvmName("euiqavtykbcsuxfo")
    public suspend fun azureSqlPurchaseModel(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureSqlPurchaseModel = mapped
    }

    /**
     * @param value Gets or sets the azure SQL purchase model.
     */
    @JvmName("dgltdxetgkoehshr")
    public fun azureSqlPurchaseModel(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlPurchaseModel = mapped
    }

    /**
     * @param value Gets or sets the azure SQL purchase model.
     */
    @JvmName("wygmsdatebdmkcni")
    public fun azureSqlPurchaseModel(`value`: AzureSqlPurchaseModel) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlPurchaseModel = mapped
    }

    /**
     * @param value Gets or sets the azure SQL service tier.
     */
    @JvmName("qgsxccwovrouofsk")
    public suspend fun azureSqlServiceTier(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureSqlServiceTier = mapped
    }

    /**
     * @param value Gets or sets the azure SQL service tier.
     */
    @JvmName("hyfeyaijlhpkwhxs")
    public fun azureSqlServiceTier(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlServiceTier = mapped
    }

    /**
     * @param value Gets or sets the azure SQL service tier.
     */
    @JvmName("aihovjsihkbmkunu")
    public fun azureSqlServiceTier(`value`: AzureSqlServiceTier) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlServiceTier = mapped
    }

    internal fun build(): SqlDbSettingsArgs = SqlDbSettingsArgs(
        azureSqlComputeTier = azureSqlComputeTier,
        azureSqlDataBaseType = azureSqlDataBaseType,
        azureSqlPurchaseModel = azureSqlPurchaseModel,
        azureSqlServiceTier = azureSqlServiceTier,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy