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

com.pulumi.aws.imagebuilder.kotlin.inputs.GetContainerRecipesPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.GetContainerRecipesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getContainerRecipes.
 * @property filters Configuration block(s) for filtering. Detailed below.
 * @property owner Owner of the container recipes. Valid values are `Self`, `Shared`, `Amazon` and `ThirdParty`. Defaults to `Self`.
 */
public data class GetContainerRecipesPlainArgs(
    public val filters: List? = null,
    public val owner: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.GetContainerRecipesPlainArgs =
        com.pulumi.aws.imagebuilder.inputs.GetContainerRecipesPlainArgs.builder()
            .filters(filters?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .owner(owner?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetContainerRecipesPlainArgs].
 */
@PulumiTagMarker
public class GetContainerRecipesPlainArgsBuilder internal constructor() {
    private var filters: List? = null

    private var owner: String? = null

    /**
     * @param value Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("wtdtyphjkcbgwvgs")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param argument Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("jqainpkgtmxkiomo")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetContainerRecipesFilterBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("lnyrkakgwyphmnkv")
    public suspend fun filters(vararg argument: suspend GetContainerRecipesFilterBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetContainerRecipesFilterBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("hxuvwdtgfvfxltbx")
    public suspend fun filters(argument: suspend GetContainerRecipesFilterBuilder.() -> Unit) {
        val toBeMapped = listOf(GetContainerRecipesFilterBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param values Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("mgwvqpotbvuuiqen")
    public suspend fun filters(vararg values: GetContainerRecipesFilter) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param value Owner of the container recipes. Valid values are `Self`, `Shared`, `Amazon` and `ThirdParty`. Defaults to `Self`.
     */
    @JvmName("gamtrysingbpgmtm")
    public suspend fun owner(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.owner = mapped
    }

    internal fun build(): GetContainerRecipesPlainArgs = GetContainerRecipesPlainArgs(
        filters = filters,
        owner = owner,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy