com.pulumi.azurenative.compute.kotlin.inputs.PurchasePlanArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.compute.kotlin.inputs
import com.pulumi.azurenative.compute.inputs.PurchasePlanArgs.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
/**
* 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 Offer Promotion Code.
* @property publisher The publisher ID.
*/
public data class PurchasePlanArgs(
public val name: Output,
public val product: Output,
public val promotionCode: Output? = null,
public val publisher: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.compute.inputs.PurchasePlanArgs =
com.pulumi.azurenative.compute.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("mohyjytugeuvfxgo")
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("qhullqpbufiukqtf")
public suspend fun product(`value`: Output) {
this.product = value
}
/**
* @param value The Offer Promotion Code.
*/
@JvmName("gnmipageuqipjoev")
public suspend fun promotionCode(`value`: Output) {
this.promotionCode = value
}
/**
* @param value The publisher ID.
*/
@JvmName("fpsxgcftqgdtghca")
public suspend fun publisher(`value`: Output) {
this.publisher = value
}
/**
* @param value The plan ID.
*/
@JvmName("yaxbavgvldoldvth")
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("ofugrejfdwjrplqc")
public suspend fun product(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.product = mapped
}
/**
* @param value The Offer Promotion Code.
*/
@JvmName("bbuowknxfgessssa")
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("birjowlabmqpncbb")
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 ?: throw PulumiNullFieldException("name"),
product = product ?: throw PulumiNullFieldException("product"),
promotionCode = promotionCode,
publisher = publisher ?: throw PulumiNullFieldException("publisher"),
)
}