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

com.pulumi.azure.managedapplication.kotlin.outputs.ApplicationPlan.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.managedapplication.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 ApplicationPlan(
    public val name: String,
    public val product: String,
    public val promotionCode: String? = null,
    public val publisher: String,
    public val version: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.managedapplication.outputs.ApplicationPlan): ApplicationPlan = ApplicationPlan(
            name = javaType.name(),
            product = javaType.product(),
            promotionCode = javaType.promotionCode().map({ args0 -> args0 }).orElse(null),
            publisher = javaType.publisher(),
            version = javaType.version(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy