com.pulumi.azurenative.compute.kotlin.inputs.GalleryImageIdentifierArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.compute.kotlin.inputs
import com.pulumi.azurenative.compute.inputs.GalleryImageIdentifierArgs.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
/**
* This is the gallery image definition identifier.
* @property offer The name of the gallery image definition offer.
* @property publisher The name of the gallery image definition publisher.
* @property sku The name of the gallery image definition SKU.
*/
public data class GalleryImageIdentifierArgs(
public val offer: Output,
public val publisher: Output,
public val sku: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.compute.inputs.GalleryImageIdentifierArgs =
com.pulumi.azurenative.compute.inputs.GalleryImageIdentifierArgs.builder()
.offer(offer.applyValue({ args0 -> args0 }))
.publisher(publisher.applyValue({ args0 -> args0 }))
.sku(sku.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GalleryImageIdentifierArgs].
*/
@PulumiTagMarker
public class GalleryImageIdentifierArgsBuilder internal constructor() {
private var offer: Output? = null
private var publisher: Output? = null
private var sku: Output? = null
/**
* @param value The name of the gallery image definition offer.
*/
@JvmName("rxsimidjpupjanti")
public suspend fun offer(`value`: Output) {
this.offer = value
}
/**
* @param value The name of the gallery image definition publisher.
*/
@JvmName("khppgfexpvubsjtt")
public suspend fun publisher(`value`: Output) {
this.publisher = value
}
/**
* @param value The name of the gallery image definition SKU.
*/
@JvmName("txvuncmsmuyhidts")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value The name of the gallery image definition offer.
*/
@JvmName("lvkiipetyboshefj")
public suspend fun offer(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.offer = mapped
}
/**
* @param value The name of the gallery image definition publisher.
*/
@JvmName("gxiiejwqqmnfeqme")
public suspend fun publisher(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publisher = mapped
}
/**
* @param value The name of the gallery image definition SKU.
*/
@JvmName("soihmfckgctbprgn")
public suspend fun sku(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sku = mapped
}
internal fun build(): GalleryImageIdentifierArgs = GalleryImageIdentifierArgs(
offer = offer ?: throw PulumiNullFieldException("offer"),
publisher = publisher ?: throw PulumiNullFieldException("publisher"),
sku = sku ?: throw PulumiNullFieldException("sku"),
)
}