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

com.pulumi.azurenative.app.kotlin.inputs.CustomContainerTemplateArgs.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.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.CustomContainerTemplateArgs.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

/**
 * Custom container configuration.
 * @property containers List of container definitions for the sessions of the session pool.
 * @property ingress Session pool ingress configuration.
 * @property registryCredentials Private container registry credentials for containers used by the sessions of the session pool.
 */
public data class CustomContainerTemplateArgs(
    public val containers: Output>? = null,
    public val ingress: Output? = null,
    public val registryCredentials: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.CustomContainerTemplateArgs =
        com.pulumi.azurenative.app.inputs.CustomContainerTemplateArgs.builder()
            .containers(
                containers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ingress(ingress?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .registryCredentials(
                registryCredentials?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var ingress: Output? = null

    private var registryCredentials: Output? = null

    /**
     * @param value List of container definitions for the sessions of the session pool.
     */
    @JvmName("dldhndxypocpccys")
    public suspend fun containers(`value`: Output>) {
        this.containers = value
    }

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

    /**
     * @param values List of container definitions for the sessions of the session pool.
     */
    @JvmName("rficrmquewnlools")
    public suspend fun containers(values: List>) {
        this.containers = Output.all(values)
    }

    /**
     * @param value Session pool ingress configuration.
     */
    @JvmName("coakbkncqoijqnwn")
    public suspend fun ingress(`value`: Output) {
        this.ingress = value
    }

    /**
     * @param value Private container registry credentials for containers used by the sessions of the session pool.
     */
    @JvmName("kwwxwvywwubteuvl")
    public suspend fun registryCredentials(`value`: Output) {
        this.registryCredentials = value
    }

    /**
     * @param value List of container definitions for the sessions of the session pool.
     */
    @JvmName("rfuopmvqosvxrxvu")
    public suspend fun containers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param argument List of container definitions for the sessions of the session pool.
     */
    @JvmName("vajqwbrhtawtktwj")
    public suspend fun containers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SessionContainerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param argument List of container definitions for the sessions of the session pool.
     */
    @JvmName("ssulgyoyngqjvphr")
    public suspend fun containers(vararg argument: suspend SessionContainerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SessionContainerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param argument List of container definitions for the sessions of the session pool.
     */
    @JvmName("feemxrsskialbwnp")
    public suspend fun containers(argument: suspend SessionContainerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SessionContainerArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param values List of container definitions for the sessions of the session pool.
     */
    @JvmName("kwhtcfxsgfdmkxnn")
    public suspend fun containers(vararg values: SessionContainerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param value Session pool ingress configuration.
     */
    @JvmName("igdblsovoobrhxjg")
    public suspend fun ingress(`value`: SessionIngressArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingress = mapped
    }

    /**
     * @param argument Session pool ingress configuration.
     */
    @JvmName("boxipsshcgbgngkj")
    public suspend fun ingress(argument: suspend SessionIngressArgsBuilder.() -> Unit) {
        val toBeMapped = SessionIngressArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ingress = mapped
    }

    /**
     * @param value Private container registry credentials for containers used by the sessions of the session pool.
     */
    @JvmName("drcqdypdnsgmcpso")
    public suspend fun registryCredentials(`value`: SessionRegistryCredentialsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.registryCredentials = mapped
    }

    /**
     * @param argument Private container registry credentials for containers used by the sessions of the session pool.
     */
    @JvmName("nkvsqhlwysrbuydc")
    public suspend fun registryCredentials(argument: suspend SessionRegistryCredentialsArgsBuilder.() -> Unit) {
        val toBeMapped = SessionRegistryCredentialsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.registryCredentials = mapped
    }

    internal fun build(): CustomContainerTemplateArgs = CustomContainerTemplateArgs(
        containers = containers,
        ingress = ingress,
        registryCredentials = registryCredentials,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy