![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.kotlin.inputs.GetImagePlainArgs.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.GetImagePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getImage.
* @property name The name of the Image.
* @property nameRegex Regex pattern of the image to match.
* @property resourceGroupName The Name of the Resource Group where this Image exists.
* @property sortDescending By default when matching by regex, images are sorted by name in ascending order and the first match is chosen, to sort descending, set this flag.
*/
public data class GetImagePlainArgs(
public val name: String? = null,
public val nameRegex: String? = null,
public val resourceGroupName: String,
public val sortDescending: Boolean? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.GetImagePlainArgs =
com.pulumi.azure.compute.inputs.GetImagePlainArgs.builder()
.name(name?.let({ args0 -> args0 }))
.nameRegex(nameRegex?.let({ args0 -> args0 }))
.resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
.sortDescending(sortDescending?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetImagePlainArgs].
*/
@PulumiTagMarker
public class GetImagePlainArgsBuilder internal constructor() {
private var name: String? = null
private var nameRegex: String? = null
private var resourceGroupName: String? = null
private var sortDescending: Boolean? = null
/**
* @param value The name of the Image.
*/
@JvmName("dwkydvvyxuqlfjln")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value Regex pattern of the image to match.
*/
@JvmName("mksuggnfpwmbywno")
public suspend fun nameRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.nameRegex = mapped
}
/**
* @param value The Name of the Resource Group where this Image exists.
*/
@JvmName("cnmoandweojkpeop")
public suspend fun resourceGroupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
/**
* @param value By default when matching by regex, images are sorted by name in ascending order and the first match is chosen, to sort descending, set this flag.
*/
@JvmName("gkthkkmfxpkkhjfi")
public suspend fun sortDescending(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.sortDescending = mapped
}
internal fun build(): GetImagePlainArgs = GetImagePlainArgs(
name = name,
nameRegex = nameRegex,
resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
sortDescending = sortDescending,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy