com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachinePlanArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.WindowsVirtualMachinePlanArgs.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 Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
* @property product Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
* @property publisher Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*/
public data class WindowsVirtualMachinePlanArgs(
public val name: Output,
public val product: Output,
public val publisher: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.WindowsVirtualMachinePlanArgs =
com.pulumi.azure.compute.inputs.WindowsVirtualMachinePlanArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.product(product.applyValue({ args0 -> args0 }))
.publisher(publisher.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsVirtualMachinePlanArgs].
*/
@PulumiTagMarker
public class WindowsVirtualMachinePlanArgsBuilder internal constructor() {
private var name: Output? = null
private var product: Output? = null
private var publisher: Output? = null
/**
* @param value Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*/
@JvmName("kflcpvdehqmrwdrx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the Product of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*/
@JvmName("dphuausqpoicqtys")
public suspend fun product(`value`: Output) {
this.product = value
}
/**
* @param value Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*/
@JvmName("dtbvdikxwutmguis")
public suspend fun publisher(`value`: Output) {
this.publisher = value
}
/**
* @param value Specifies the Name of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*/
@JvmName("qtrcgqvuuxtfatnu")
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 Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
*/
@JvmName("wfaesnwwgufnfypv")
public suspend fun product(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.product = mapped
}
/**
* @param value Specifies the Publisher of the Marketplace Image this Virtual Machine should be created from. Changing this forces a new resource to be created.
* > **NOTE:** If you use the `plan` block with one of Microsoft's marketplace images (e.g. `publisher = "MicrosoftWindowsServer"`). This may prevent the purchase of the offer. An example Azure API error: `The Offer: 'WindowsServer' cannot be purchased by subscription: '12345678-12234-5678-9012-123456789012' as it is not to be sold in market: 'US'. Please choose a subscription which is associated with a different market.`
*/
@JvmName("cxhjaialevghkete")
public suspend fun publisher(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publisher = mapped
}
internal fun build(): WindowsVirtualMachinePlanArgs = WindowsVirtualMachinePlanArgs(
name = name ?: throw PulumiNullFieldException("name"),
product = product ?: throw PulumiNullFieldException("product"),
publisher = publisher ?: throw PulumiNullFieldException("publisher"),
)
}