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

com.pulumi.azurenative.devhub.kotlin.inputs.IacTemplatePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.devhub.kotlin.inputs

import com.pulumi.azurenative.devhub.inputs.IacTemplatePropertiesArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Properties of a IacTemplate.
 * @property instanceName the sample instance name of the template
 * @property instanceStage the source stage of the template
 * @property sourceResourceId the source store of the template
 * @property templateDetails
 * @property templateName Template Name
 */
public data class IacTemplatePropertiesArgs(
    public val instanceName: Output? = null,
    public val instanceStage: Output? = null,
    public val sourceResourceId: Output? = null,
    public val templateDetails: Output>? = null,
    public val templateName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devhub.inputs.IacTemplatePropertiesArgs =
        com.pulumi.azurenative.devhub.inputs.IacTemplatePropertiesArgs.builder()
            .instanceName(instanceName?.applyValue({ args0 -> args0 }))
            .instanceStage(instanceStage?.applyValue({ args0 -> args0 }))
            .sourceResourceId(sourceResourceId?.applyValue({ args0 -> args0 }))
            .templateDetails(
                templateDetails?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .templateName(templateName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IacTemplatePropertiesArgs].
 */
@PulumiTagMarker
public class IacTemplatePropertiesArgsBuilder internal constructor() {
    private var instanceName: Output? = null

    private var instanceStage: Output? = null

    private var sourceResourceId: Output? = null

    private var templateDetails: Output>? = null

    private var templateName: Output? = null

    /**
     * @param value the sample instance name of the template
     */
    @JvmName("fpwfgkmjknfppnob")
    public suspend fun instanceName(`value`: Output) {
        this.instanceName = value
    }

    /**
     * @param value the source stage of the template
     */
    @JvmName("oicubojaqgypvjcv")
    public suspend fun instanceStage(`value`: Output) {
        this.instanceStage = value
    }

    /**
     * @param value the source store of the template
     */
    @JvmName("dkcpvkvcbnxbluss")
    public suspend fun sourceResourceId(`value`: Output) {
        this.sourceResourceId = value
    }

    /**
     * @param value
     */
    @JvmName("nwrnppddlhhchylu")
    public suspend fun templateDetails(`value`: Output>) {
        this.templateDetails = value
    }

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

    /**
     * @param values
     */
    @JvmName("honomwfygpxxtqrd")
    public suspend fun templateDetails(values: List>) {
        this.templateDetails = Output.all(values)
    }

    /**
     * @param value Template Name
     */
    @JvmName("igfpfkkjbsfceyna")
    public suspend fun templateName(`value`: Output) {
        this.templateName = value
    }

    /**
     * @param value the sample instance name of the template
     */
    @JvmName("ojqtnyfiuvgfdjdl")
    public suspend fun instanceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceName = mapped
    }

    /**
     * @param value the source stage of the template
     */
    @JvmName("mxgbohwvlktuesdq")
    public suspend fun instanceStage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceStage = mapped
    }

    /**
     * @param value the source store of the template
     */
    @JvmName("gyabkjiswhliyaqy")
    public suspend fun sourceResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceResourceId = mapped
    }

    /**
     * @param value
     */
    @JvmName("ecshuaomcuknorfc")
    public suspend fun templateDetails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateDetails = mapped
    }

    /**
     * @param argument
     */
    @JvmName("gnwxfajlnnvufjos")
    public suspend fun templateDetails(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IacTemplateDetailsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.templateDetails = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ufkcbxjtjlrpsadv")
    public suspend fun templateDetails(vararg argument: suspend IacTemplateDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IacTemplateDetailsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.templateDetails = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wrftyevrxibnodng")
    public suspend fun templateDetails(argument: suspend IacTemplateDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IacTemplateDetailsArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.templateDetails = mapped
    }

    /**
     * @param values
     */
    @JvmName("kouyuupkjrrerfat")
    public suspend fun templateDetails(vararg values: IacTemplateDetailsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.templateDetails = mapped
    }

    /**
     * @param value Template Name
     */
    @JvmName("xjbjushfrflendng")
    public suspend fun templateName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateName = mapped
    }

    internal fun build(): IacTemplatePropertiesArgs = IacTemplatePropertiesArgs(
        instanceName = instanceName,
        instanceStage = instanceStage,
        sourceResourceId = sourceResourceId,
        templateDetails = templateDetails,
        templateName = templateName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy