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

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

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

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

import com.pulumi.azurenative.migrate.inputs.SqlMiSettingsArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.AzureSqlInstanceType
import com.pulumi.azurenative.migrate.kotlin.enums.AzureSqlServiceTier
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 managed instance assessment settings.
 * @property azureSqlInstanceType Gets or sets the azure PAAS SQL instance type.
 * @property azureSqlServiceTier Gets or sets the azure SQL service tier.
 */
public data class SqlMiSettingsArgs(
    public val azureSqlInstanceType: Output>? = null,
    public val azureSqlServiceTier: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.SqlMiSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.SqlMiSettingsArgs.builder()
            .azureSqlInstanceType(
                azureSqlInstanceType?.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 [SqlMiSettingsArgs].
 */
@PulumiTagMarker
public class SqlMiSettingsArgsBuilder internal constructor() {
    private var azureSqlInstanceType: Output>? = null

    private var azureSqlServiceTier: Output>? = null

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

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

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

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

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

    /**
     * @param value Gets or sets the azure SQL service tier.
     */
    @JvmName("vqxcqcqggghcnppd")
    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("tbfvgxpydwkofaor")
    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("vhjjcthmkxqaigbp")
    public fun azureSqlServiceTier(`value`: AzureSqlServiceTier) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureSqlServiceTier = mapped
    }

    internal fun build(): SqlMiSettingsArgs = SqlMiSettingsArgs(
        azureSqlInstanceType = azureSqlInstanceType,
        azureSqlServiceTier = azureSqlServiceTier,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy