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

com.pulumi.azurenative.devhub.kotlin.inputs.DeploymentPropertiesArgs.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.devhub.kotlin.inputs

import com.pulumi.azurenative.devhub.inputs.DeploymentPropertiesArgs.builder
import com.pulumi.azurenative.devhub.kotlin.enums.ManifestType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property helmChartPath Helm chart directory path in repository.
 * @property helmValues Helm Values.yaml file location in repository.
 * @property kubeManifestLocations
 * @property manifestType Determines the type of manifests within the repository.
 * @property overrides Manifest override values.
 */
public data class DeploymentPropertiesArgs(
    public val helmChartPath: Output? = null,
    public val helmValues: Output? = null,
    public val kubeManifestLocations: Output>? = null,
    public val manifestType: Output>? = null,
    public val overrides: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devhub.inputs.DeploymentPropertiesArgs =
        com.pulumi.azurenative.devhub.inputs.DeploymentPropertiesArgs.builder()
            .helmChartPath(helmChartPath?.applyValue({ args0 -> args0 }))
            .helmValues(helmValues?.applyValue({ args0 -> args0 }))
            .kubeManifestLocations(kubeManifestLocations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .manifestType(
                manifestType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .overrides(
                overrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DeploymentPropertiesArgs].
 */
@PulumiTagMarker
public class DeploymentPropertiesArgsBuilder internal constructor() {
    private var helmChartPath: Output? = null

    private var helmValues: Output? = null

    private var kubeManifestLocations: Output>? = null

    private var manifestType: Output>? = null

    private var overrides: Output>? = null

    /**
     * @param value Helm chart directory path in repository.
     */
    @JvmName("bxreyjpngqdpnxig")
    public suspend fun helmChartPath(`value`: Output) {
        this.helmChartPath = value
    }

    /**
     * @param value Helm Values.yaml file location in repository.
     */
    @JvmName("xqyobquubsgwmcuw")
    public suspend fun helmValues(`value`: Output) {
        this.helmValues = value
    }

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

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

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

    /**
     * @param value Determines the type of manifests within the repository.
     */
    @JvmName("guuialkbwufbisyr")
    public suspend fun manifestType(`value`: Output>) {
        this.manifestType = value
    }

    /**
     * @param value Manifest override values.
     */
    @JvmName("mwnhgmbyqvglgsky")
    public suspend fun overrides(`value`: Output>) {
        this.overrides = value
    }

    /**
     * @param value Helm chart directory path in repository.
     */
    @JvmName("yjhoyyoijjeyqaei")
    public suspend fun helmChartPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.helmChartPath = mapped
    }

    /**
     * @param value Helm Values.yaml file location in repository.
     */
    @JvmName("wtedmeaqvptdwrhc")
    public suspend fun helmValues(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.helmValues = mapped
    }

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

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

    /**
     * @param value Determines the type of manifests within the repository.
     */
    @JvmName("wcrpdiksptlmhufa")
    public suspend fun manifestType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manifestType = mapped
    }

    /**
     * @param value Determines the type of manifests within the repository.
     */
    @JvmName("dsmpkkppimqwyqxs")
    public fun manifestType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.manifestType = mapped
    }

    /**
     * @param value Determines the type of manifests within the repository.
     */
    @JvmName("cwphhddyudkiixxo")
    public fun manifestType(`value`: ManifestType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.manifestType = mapped
    }

    /**
     * @param value Manifest override values.
     */
    @JvmName("xmeqrtydtkbressv")
    public suspend fun overrides(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param values Manifest override values.
     */
    @JvmName("dkserutwtmclatdl")
    public fun overrides(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    internal fun build(): DeploymentPropertiesArgs = DeploymentPropertiesArgs(
        helmChartPath = helmChartPath,
        helmValues = helmValues,
        kubeManifestLocations = kubeManifestLocations,
        manifestType = manifestType,
        overrides = overrides,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy