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

com.pulumi.azurenative.solutions.kotlin.inputs.PlanArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.solutions.kotlin.inputs

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

/**
 * Plan for the managed application.
 * @property name The plan name.
 * @property product The product code.
 * @property promotionCode The promotion code.
 * @property publisher The publisher ID.
 * @property version The plan's version.
 */
public data class PlanArgs(
    public val name: Output,
    public val product: Output,
    public val promotionCode: Output? = null,
    public val publisher: Output,
    public val version: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.solutions.inputs.PlanArgs =
        com.pulumi.azurenative.solutions.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 name.
     */
    @JvmName("kvdjxcmilpuhkhso")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

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

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

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

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

    /**
     * @param value The product code.
     */
    @JvmName("hojxoehthvtpbyrx")
    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("esxlamisynqkmxxg")
    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("uvnqqchadwkrrloq")
    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("imwpqnfrgimbenon")
    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 ?: throw PulumiNullFieldException("name"),
        product = product ?: throw PulumiNullFieldException("product"),
        promotionCode = promotionCode,
        publisher = publisher ?: throw PulumiNullFieldException("publisher"),
        version = version ?: throw PulumiNullFieldException("version"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy