com.pulumi.azure.compute.kotlin.inputs.GetPlatformImagePlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.GetPlatformImagePlainArgs.builder
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
/**
* A collection of arguments for invoking getPlatformImage.
* @property location Specifies the Location to pull information about this Platform Image from.
* @property offer Specifies the Offer associated with the Platform Image.
* @property publisher Specifies the Publisher associated with the Platform Image.
* @property sku Specifies the SKU of the Platform Image.
* @property version The version of the Platform Image.
*/
public data class GetPlatformImagePlainArgs(
public val location: String,
public val offer: String,
public val publisher: String,
public val sku: String,
public val version: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.GetPlatformImagePlainArgs =
com.pulumi.azure.compute.inputs.GetPlatformImagePlainArgs.builder()
.location(location.let({ args0 -> args0 }))
.offer(offer.let({ args0 -> args0 }))
.publisher(publisher.let({ args0 -> args0 }))
.sku(sku.let({ args0 -> args0 }))
.version(version?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetPlatformImagePlainArgs].
*/
@PulumiTagMarker
public class GetPlatformImagePlainArgsBuilder internal constructor() {
private var location: String? = null
private var offer: String? = null
private var publisher: String? = null
private var sku: String? = null
private var version: String? = null
/**
* @param value Specifies the Location to pull information about this Platform Image from.
*/
@JvmName("ebgnjwdyjummulqo")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.location = mapped
}
/**
* @param value Specifies the Offer associated with the Platform Image.
*/
@JvmName("labudxddannkberj")
public suspend fun offer(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.offer = mapped
}
/**
* @param value Specifies the Publisher associated with the Platform Image.
*/
@JvmName("pjtaqskrrteldsfj")
public suspend fun publisher(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.publisher = mapped
}
/**
* @param value Specifies the SKU of the Platform Image.
*/
@JvmName("hpdflaarbcbxhggo")
public suspend fun sku(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.sku = mapped
}
/**
* @param value The version of the Platform Image.
*/
@JvmName("fyxhcpqlmkvdnjmf")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.version = mapped
}
internal fun build(): GetPlatformImagePlainArgs = GetPlatformImagePlainArgs(
location = location ?: throw PulumiNullFieldException("location"),
offer = offer ?: throw PulumiNullFieldException("offer"),
publisher = publisher ?: throw PulumiNullFieldException("publisher"),
sku = sku ?: throw PulumiNullFieldException("sku"),
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy