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

com.pulumi.azurenative.resources.kotlin.inputs.PlanArgs.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.resources.kotlin.inputs

import com.pulumi.azurenative.resources.inputs.PlanArgs.builder
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

/**
 * Plan for the resource.
 * @property name The plan ID.
 * @property product The offer ID.
 * @property promotionCode The promotion code.
 * @property publisher The publisher ID.
 * @property version The plan's version.
 */
public data class PlanArgs(
    public val name: Output? = null,
    public val product: Output? = null,
    public val promotionCode: Output? = null,
    public val publisher: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.resources.inputs.PlanArgs =
        com.pulumi.azurenative.resources.inputs.PlanArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .product(product?.applyValue({ args0 -> args0 }))
            .promotionCode(promotionCode?.applyValue({ args0 -> args0 }))
            .publisher(publisher?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PlanArgs].
 */
@PulumiTagMarker
public class PlanArgsBuilder internal constructor() {
    private var name: Output? = null

    private var product: Output? = null

    private var promotionCode: Output? = null

    private var publisher: Output? = null

    private var version: Output? = null

    /**
     * @param value The plan ID.
     */
    @JvmName("aslntfjulvrkljvi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The offer ID.
     */
    @JvmName("gikogwvudkxgfmlv")
    public suspend fun product(`value`: Output) {
        this.product = value
    }

    /**
     * @param value The promotion code.
     */
    @JvmName("rabuguwfrjxnofou")
    public suspend fun promotionCode(`value`: Output) {
        this.promotionCode = value
    }

    /**
     * @param value The publisher ID.
     */
    @JvmName("qxmjdfhktcmysvjg")
    public suspend fun publisher(`value`: Output) {
        this.publisher = value
    }

    /**
     * @param value The plan's version.
     */
    @JvmName("frjanwowrgdgphsk")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The plan ID.
     */
    @JvmName("odtuuiwajvenxdkj")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The offer ID.
     */
    @JvmName("gthsaxjiwufaxjld")
    public suspend fun product(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.product = mapped
    }

    /**
     * @param value The promotion code.
     */
    @JvmName("phcrkkdctbcgnuwa")
    public suspend fun promotionCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.promotionCode = mapped
    }

    /**
     * @param value The publisher ID.
     */
    @JvmName("glbmahelgrgygagr")
    public suspend fun publisher(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publisher = mapped
    }

    /**
     * @param value The plan's version.
     */
    @JvmName("sibaijvwpynxvmqk")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): PlanArgs = PlanArgs(
        name = name,
        product = product,
        promotionCode = promotionCode,
        publisher = publisher,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy