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

com.pulumi.azurenative.testbase.kotlin.inputs.TestBaseAccountSKUArgs.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.testbase.kotlin.inputs

import com.pulumi.azurenative.testbase.inputs.TestBaseAccountSKUArgs.builder
import com.pulumi.azurenative.testbase.kotlin.enums.Tier
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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes a Test Base Account SKU.
 * @property locations The locations that the SKU is available.
 * @property name The name of the SKU. This is typically a letter + number code, such as B0 or S0.
 * @property resourceType The type of resource the SKU applies to.
 * @property tier The tier of this particular SKU.
 */
public data class TestBaseAccountSKUArgs(
    public val locations: Output>? = null,
    public val name: Output,
    public val resourceType: Output? = null,
    public val tier: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.testbase.inputs.TestBaseAccountSKUArgs =
        com.pulumi.azurenative.testbase.inputs.TestBaseAccountSKUArgs.builder()
            .locations(locations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .resourceType(resourceType?.applyValue({ args0 -> args0 }))
            .tier(
                tier.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var resourceType: Output? = null

    private var tier: Output>? = null

    /**
     * @param value The locations that the SKU is available.
     */
    @JvmName("wtydijxoanirhaqj")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

    @JvmName("dptkaavrjqmmteax")
    public suspend fun locations(vararg values: Output) {
        this.locations = Output.all(values.asList())
    }

    /**
     * @param values The locations that the SKU is available.
     */
    @JvmName("qehtfautfrvyxhxh")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value The name of the SKU. This is typically a letter + number code, such as B0 or S0.
     */
    @JvmName("bocdcudqnmudthoe")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The type of resource the SKU applies to.
     */
    @JvmName("qeuvjiasydldgigt")
    public suspend fun resourceType(`value`: Output) {
        this.resourceType = value
    }

    /**
     * @param value The tier of this particular SKU.
     */
    @JvmName("hsbeevesqvacbsjx")
    public suspend fun tier(`value`: Output>) {
        this.tier = value
    }

    /**
     * @param value The locations that the SKU is available.
     */
    @JvmName("qffikrdxasffjejt")
    public suspend fun locations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param values The locations that the SKU is available.
     */
    @JvmName("wdvcllfghegyqjjj")
    public suspend fun locations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param value The name of the SKU. This is typically a letter + number code, such as B0 or S0.
     */
    @JvmName("ilyphvhuctsiiivy")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The type of resource the SKU applies to.
     */
    @JvmName("pbnvbwotlkqurqgy")
    public suspend fun resourceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceType = mapped
    }

    /**
     * @param value The tier of this particular SKU.
     */
    @JvmName("yhakjdwfwjmanewf")
    public suspend fun tier(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value The tier of this particular SKU.
     */
    @JvmName("iotntobmqxdkqxip")
    public fun tier(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value The tier of this particular SKU.
     */
    @JvmName("qwtqvwjeicndixsj")
    public fun tier(`value`: Tier) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    internal fun build(): TestBaseAccountSKUArgs = TestBaseAccountSKUArgs(
        locations = locations,
        name = name ?: throw PulumiNullFieldException("name"),
        resourceType = resourceType,
        tier = tier ?: throw PulumiNullFieldException("tier"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy