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

com.pulumi.azure.managedapplication.kotlin.inputs.ApplicationPlanArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.managedapplication.kotlin.inputs

import com.pulumi.azure.managedapplication.inputs.ApplicationPlanArgs.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

/**
 *
 * @property name Specifies the name of the plan from the marketplace. Changing this forces a new resource to be created.
 * @property product Specifies the product of the plan from the marketplace. Changing this forces a new resource to be created.
 * @property promotionCode Specifies the promotion code to use with the plan. Changing this forces a new resource to be created.
 * > **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `azure.marketplace.Agreement` resource or AZ CLI tool can be used to do this.
 * @property publisher Specifies the publisher of the plan. Changing this forces a new resource to be created.
 * @property version Specifies the version of the plan from the marketplace. Changing this forces a new resource to be created.
 */
public data class ApplicationPlanArgs(
    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.azure.managedapplication.inputs.ApplicationPlanArgs =
        com.pulumi.azure.managedapplication.inputs.ApplicationPlanArgs.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 [ApplicationPlanArgs].
 */
@PulumiTagMarker
public class ApplicationPlanArgsBuilder 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 Specifies the name of the plan from the marketplace. Changing this forces a new resource to be created.
     */
    @JvmName("oxhjkqscfnsebrak")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the product of the plan from the marketplace. Changing this forces a new resource to be created.
     */
    @JvmName("faysepqevtffuuqy")
    public suspend fun product(`value`: Output) {
        this.product = value
    }

    /**
     * @param value Specifies the promotion code to use with the plan. Changing this forces a new resource to be created.
     * > **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `azure.marketplace.Agreement` resource or AZ CLI tool can be used to do this.
     */
    @JvmName("wjdruicqvxywrvsq")
    public suspend fun promotionCode(`value`: Output) {
        this.promotionCode = value
    }

    /**
     * @param value Specifies the publisher of the plan. Changing this forces a new resource to be created.
     */
    @JvmName("ggxrbvghrmgematb")
    public suspend fun publisher(`value`: Output) {
        this.publisher = value
    }

    /**
     * @param value Specifies the version of the plan from the marketplace. Changing this forces a new resource to be created.
     */
    @JvmName("dkytdfqltngbirut")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Specifies the name of the plan from the marketplace. Changing this forces a new resource to be created.
     */
    @JvmName("xpjofkuljmstypll")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the product of the plan from the marketplace. Changing this forces a new resource to be created.
     */
    @JvmName("gqgcuubfclwwtirn")
    public suspend fun product(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.product = mapped
    }

    /**
     * @param value Specifies the promotion code to use with the plan. Changing this forces a new resource to be created.
     * > **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `azure.marketplace.Agreement` resource or AZ CLI tool can be used to do this.
     */
    @JvmName("ajdnxvctgnopluxd")
    public suspend fun promotionCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.promotionCode = mapped
    }

    /**
     * @param value Specifies the publisher of the plan. Changing this forces a new resource to be created.
     */
    @JvmName("hxlfreegfescauto")
    public suspend fun publisher(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publisher = mapped
    }

    /**
     * @param value Specifies the version of the plan from the marketplace. Changing this forces a new resource to be created.
     */
    @JvmName("oxrjcnjfkuyeqjpi")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): ApplicationPlanArgs = ApplicationPlanArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        product = product ?: throw PulumiNullFieldException("product"),
        promotionCode = promotionCode,
        publisher = publisher ?: throw PulumiNullFieldException("publisher"),
        version = version ?: throw PulumiNullFieldException("version"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy