![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerservice.kotlin.inputs.PurchasePlanArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerservice.kotlin.inputs
import com.pulumi.azurenative.containerservice.inputs.PurchasePlanArgs.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
/**
* Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
* @property name The plan ID.
* @property product Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
* @property promotionCode The promotion code.
* @property publisher The plan ID.
*/
public data class PurchasePlanArgs(
public val name: Output? = null,
public val product: Output? = null,
public val promotionCode: Output? = null,
public val publisher: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerservice.inputs.PurchasePlanArgs =
com.pulumi.azurenative.containerservice.inputs.PurchasePlanArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.product(product?.applyValue({ args0 -> args0 }))
.promotionCode(promotionCode?.applyValue({ args0 -> args0 }))
.publisher(publisher?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PurchasePlanArgs].
*/
@PulumiTagMarker
public class PurchasePlanArgsBuilder internal constructor() {
private var name: Output? = null
private var product: Output? = null
private var promotionCode: Output? = null
private var publisher: Output? = null
/**
* @param value The plan ID.
*/
@JvmName("ahbdvymxnysbwbiu")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
*/
@JvmName("wiuwxyusikdcbbcy")
public suspend fun product(`value`: Output) {
this.product = value
}
/**
* @param value The promotion code.
*/
@JvmName("wdacbvatcfwofvjd")
public suspend fun promotionCode(`value`: Output) {
this.promotionCode = value
}
/**
* @param value The plan ID.
*/
@JvmName("baapdbadqspofooc")
public suspend fun publisher(`value`: Output) {
this.publisher = value
}
/**
* @param value The plan ID.
*/
@JvmName("aqgfgkylxqlpvxqb")
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 image from the marketplace. This is the same value as Offer under the imageReference element.
*/
@JvmName("tbkprpuiknnoagvx")
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("fprmfqlijtbftump")
public suspend fun promotionCode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.promotionCode = mapped
}
/**
* @param value The plan ID.
*/
@JvmName("vvtclgrobfvvnmkg")
public suspend fun publisher(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publisher = mapped
}
internal fun build(): PurchasePlanArgs = PurchasePlanArgs(
name = name,
product = product,
promotionCode = promotionCode,
publisher = publisher,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy