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

com.pulumi.azurenative.compute.kotlin.inputs.ApplicationProfileArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.ApplicationProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Contains the list of gallery applications that should be made available to the VM/VMSS
 * @property galleryApplications Specifies the gallery applications that should be made available to the VM/VMSS
 */
public data class ApplicationProfileArgs(
    public val galleryApplications: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.ApplicationProfileArgs =
        com.pulumi.azurenative.compute.inputs.ApplicationProfileArgs.builder()
            .galleryApplications(
                galleryApplications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationProfileArgs].
 */
@PulumiTagMarker
public class ApplicationProfileArgsBuilder internal constructor() {
    private var galleryApplications: Output>? = null

    /**
     * @param value Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("yfvonwjauogtufwn")
    public suspend fun galleryApplications(`value`: Output>) {
        this.galleryApplications = value
    }

    @JvmName("gxsnbafbmpcfells")
    public suspend fun galleryApplications(vararg values: Output) {
        this.galleryApplications = Output.all(values.asList())
    }

    /**
     * @param values Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("mwbdakuntbdkfxiv")
    public suspend fun galleryApplications(values: List>) {
        this.galleryApplications = Output.all(values)
    }

    /**
     * @param value Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("xrypsyjajpgebmup")
    public suspend fun galleryApplications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.galleryApplications = mapped
    }

    /**
     * @param argument Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("gtnmhcxjwjmslqyf")
    public suspend fun galleryApplications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMGalleryApplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.galleryApplications = mapped
    }

    /**
     * @param argument Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("nqwhqtqvkylwpqwv")
    public suspend fun galleryApplications(vararg argument: suspend VMGalleryApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMGalleryApplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.galleryApplications = mapped
    }

    /**
     * @param argument Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("pgkfctxsbohaxtnp")
    public suspend fun galleryApplications(argument: suspend VMGalleryApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(VMGalleryApplicationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.galleryApplications = mapped
    }

    /**
     * @param values Specifies the gallery applications that should be made available to the VM/VMSS
     */
    @JvmName("bkidaivfbwtrgmdn")
    public suspend fun galleryApplications(vararg values: VMGalleryApplicationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.galleryApplications = mapped
    }

    internal fun build(): ApplicationProfileArgs = ApplicationProfileArgs(
        galleryApplications = galleryApplications,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy