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

com.pulumi.azure.containerapp.kotlin.inputs.JobTemplateVolumeArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.inputs

import com.pulumi.azure.containerapp.inputs.JobTemplateVolumeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property name The name of the volume.
 * @property storageName The name of the storage to use for the volume.
 * @property storageType The type of storage to use for the volume. Possible values are `AzureFile`, `EmptyDir` and `Secret`.
 */
public data class JobTemplateVolumeArgs(
    public val name: Output,
    public val storageName: Output? = null,
    public val storageType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerapp.inputs.JobTemplateVolumeArgs =
        com.pulumi.azure.containerapp.inputs.JobTemplateVolumeArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .storageName(storageName?.applyValue({ args0 -> args0 }))
            .storageType(storageType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateVolumeArgs].
 */
@PulumiTagMarker
public class JobTemplateVolumeArgsBuilder internal constructor() {
    private var name: Output? = null

    private var storageName: Output? = null

    private var storageType: Output? = null

    /**
     * @param value The name of the volume.
     */
    @JvmName("aekylgpbvwsggstt")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the storage to use for the volume.
     */
    @JvmName("tjwacrlsdguulbts")
    public suspend fun storageName(`value`: Output) {
        this.storageName = value
    }

    /**
     * @param value The type of storage to use for the volume. Possible values are `AzureFile`, `EmptyDir` and `Secret`.
     */
    @JvmName("ygqdtmuvglkcdybc")
    public suspend fun storageType(`value`: Output) {
        this.storageType = value
    }

    /**
     * @param value The name of the volume.
     */
    @JvmName("cehnfglfnbxvbody")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the storage to use for the volume.
     */
    @JvmName("ghouensbjinxgejq")
    public suspend fun storageName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageName = mapped
    }

    /**
     * @param value The type of storage to use for the volume. Possible values are `AzureFile`, `EmptyDir` and `Secret`.
     */
    @JvmName("spjlirhajvopvowx")
    public suspend fun storageType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageType = mapped
    }

    internal fun build(): JobTemplateVolumeArgs = JobTemplateVolumeArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        storageName = storageName,
        storageType = storageType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy