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

com.pulumi.azurenative.migrate.kotlin.inputs.AutomationArtifactArgs.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.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.AutomationArtifactArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.AutomationArtifactStatus
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 com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Class for automation artifact.
 * @property artifacts Gets or sets the artifacts.
 * @property azureFileShareProfile Azure file share profile for hydration of application folders not mounted on
 * the container file system.
 * @property status Gets or sets the status of automation artifacts.
 */
public data class AutomationArtifactArgs(
    public val artifacts: Output>? = null,
    public val azureFileShareProfile: Output? = null,
    public val status: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.AutomationArtifactArgs =
        com.pulumi.azurenative.migrate.inputs.AutomationArtifactArgs.builder()
            .artifacts(
                artifacts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .azureFileShareProfile(
                azureFileShareProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .status(
                status?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var azureFileShareProfile: Output? = null

    private var status: Output>? = null

    /**
     * @param value Gets or sets the artifacts.
     */
    @JvmName("mvgpiaqqcegmsvbl")
    public suspend fun artifacts(`value`: Output>) {
        this.artifacts = value
    }

    /**
     * @param value Azure file share profile for hydration of application folders not mounted on
     * the container file system.
     */
    @JvmName("yujdsfskiuswaoqb")
    public suspend fun azureFileShareProfile(`value`: Output) {
        this.azureFileShareProfile = value
    }

    /**
     * @param value Gets or sets the status of automation artifacts.
     */
    @JvmName("qqivrpeljkrggpvw")
    public suspend fun status(`value`: Output>) {
        this.status = value
    }

    /**
     * @param value Gets or sets the artifacts.
     */
    @JvmName("xuypqtmwpqywaldw")
    public suspend fun artifacts(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.artifacts = mapped
    }

    /**
     * @param values Gets or sets the artifacts.
     */
    @JvmName("jsgpyrbvsvyswemu")
    public fun artifacts(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.artifacts = mapped
    }

    /**
     * @param value Azure file share profile for hydration of application folders not mounted on
     * the container file system.
     */
    @JvmName("ghutenmjlocelapg")
    public suspend fun azureFileShareProfile(`value`: AzureFileShareHydrationProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureFileShareProfile = mapped
    }

    /**
     * @param argument Azure file share profile for hydration of application folders not mounted on
     * the container file system.
     */
    @JvmName("gnprpgupxohyskwv")
    public suspend fun azureFileShareProfile(argument: suspend AzureFileShareHydrationProfileArgsBuilder.() -> Unit) {
        val toBeMapped = AzureFileShareHydrationProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.azureFileShareProfile = mapped
    }

    /**
     * @param value Gets or sets the status of automation artifacts.
     */
    @JvmName("lhikgjhohlynifsp")
    public suspend fun status(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Gets or sets the status of automation artifacts.
     */
    @JvmName("pwbnnqteipvqtuhw")
    public fun status(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Gets or sets the status of automation artifacts.
     */
    @JvmName("qctgbsenktmeoybv")
    public fun status(`value`: AutomationArtifactStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): AutomationArtifactArgs = AutomationArtifactArgs(
        artifacts = artifacts,
        azureFileShareProfile = azureFileShareProfile,
        status = status,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy