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

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

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

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

import com.pulumi.azurenative.migrate.inputs.SqlServerLicensingSettingsArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.SqlServerLicenseType
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * SQL Server licensing settings.
 * @property licenseCost Licence cost.
 * @property softwareAssuranceCost Software assurance (SA) cost.
 * @property version SQL Server version.
 */
public data class SqlServerLicensingSettingsArgs(
    public val licenseCost: Output,
    public val softwareAssuranceCost: Output,
    public val version: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.SqlServerLicensingSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.SqlServerLicensingSettingsArgs.builder()
            .licenseCost(licenseCost.applyValue({ args0 -> args0 }))
            .softwareAssuranceCost(softwareAssuranceCost.applyValue({ args0 -> args0 }))
            .version(
                version.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [SqlServerLicensingSettingsArgs].
 */
@PulumiTagMarker
public class SqlServerLicensingSettingsArgsBuilder internal constructor() {
    private var licenseCost: Output? = null

    private var softwareAssuranceCost: Output? = null

    private var version: Output>? = null

    /**
     * @param value Licence cost.
     */
    @JvmName("unnwwpacrroqaokj")
    public suspend fun licenseCost(`value`: Output) {
        this.licenseCost = value
    }

    /**
     * @param value Software assurance (SA) cost.
     */
    @JvmName("tquqmhbcajreulfw")
    public suspend fun softwareAssuranceCost(`value`: Output) {
        this.softwareAssuranceCost = value
    }

    /**
     * @param value SQL Server version.
     */
    @JvmName("ycexoupiachvkdke")
    public suspend fun version(`value`: Output>) {
        this.version = value
    }

    /**
     * @param value Licence cost.
     */
    @JvmName("hjkurwtudcbxiivm")
    public suspend fun licenseCost(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.licenseCost = mapped
    }

    /**
     * @param value Software assurance (SA) cost.
     */
    @JvmName("kextatsvfmfrjtiq")
    public suspend fun softwareAssuranceCost(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.softwareAssuranceCost = mapped
    }

    /**
     * @param value SQL Server version.
     */
    @JvmName("pfdvsstuanxipcru")
    public suspend fun version(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    /**
     * @param value SQL Server version.
     */
    @JvmName("jyirmljptsqcxdug")
    public fun version(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    /**
     * @param value SQL Server version.
     */
    @JvmName("gncqkjidbrjfieeb")
    public fun version(`value`: SqlServerLicenseType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): SqlServerLicensingSettingsArgs = SqlServerLicensingSettingsArgs(
        licenseCost = licenseCost ?: throw PulumiNullFieldException("licenseCost"),
        softwareAssuranceCost = softwareAssuranceCost ?: throw
            PulumiNullFieldException("softwareAssuranceCost"),
        version = version ?: throw PulumiNullFieldException("version"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy