All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.compute.kotlin.inputs.GetImagesPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.GetImagesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getImages.
 * @property resourceGroupName The name of the Resource Group in which the Image exists.
 * @property tagsFilter A mapping of tags to filter the list of images against.
 */
public data class GetImagesPlainArgs(
    public val resourceGroupName: String,
    public val tagsFilter: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.GetImagesPlainArgs =
        com.pulumi.azure.compute.inputs.GetImagesPlainArgs.builder()
            .resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
            .tagsFilter(
                tagsFilter?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [GetImagesPlainArgs].
 */
@PulumiTagMarker
public class GetImagesPlainArgsBuilder internal constructor() {
    private var resourceGroupName: String? = null

    private var tagsFilter: Map? = null

    /**
     * @param value The name of the Resource Group in which the Image exists.
     */
    @JvmName("aelbwyvvjedpcprr")
    public suspend fun resourceGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to filter the list of images against.
     */
    @JvmName("geawanhnmtwyjqoc")
    public suspend fun tagsFilter(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tagsFilter = mapped
    }

    /**
     * @param values A mapping of tags to filter the list of images against.
     */
    @JvmName("iwheycsbypvjtety")
    public fun tagsFilter(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tagsFilter = mapped
    }

    internal fun build(): GetImagesPlainArgs = GetImagesPlainArgs(
        resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
        tagsFilter = tagsFilter,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy