
com.pulumi.azure.containerapp.kotlin.inputs.AppTemplateVolumeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.AppTemplateVolumeArgs.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 `AzureFile` storage.
* @property storageType The type of storage volume. Possible values are `AzureFile`, `EmptyDir` and `Secret`. Defaults to `EmptyDir`.
*/
public data class AppTemplateVolumeArgs(
public val name: Output,
public val storageName: Output? = null,
public val storageType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.AppTemplateVolumeArgs =
com.pulumi.azure.containerapp.inputs.AppTemplateVolumeArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.storageName(storageName?.applyValue({ args0 -> args0 }))
.storageType(storageType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppTemplateVolumeArgs].
*/
@PulumiTagMarker
public class AppTemplateVolumeArgsBuilder 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("jrurpumvpdwbtufn")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the `AzureFile` storage.
*/
@JvmName("kjjoaqbyivxqvpbg")
public suspend fun storageName(`value`: Output) {
this.storageName = value
}
/**
* @param value The type of storage volume. Possible values are `AzureFile`, `EmptyDir` and `Secret`. Defaults to `EmptyDir`.
*/
@JvmName("lkofqiljrxnbvyck")
public suspend fun storageType(`value`: Output) {
this.storageType = value
}
/**
* @param value The name of the volume.
*/
@JvmName("qqwiyewjcnjbjsrp")
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 `AzureFile` storage.
*/
@JvmName("qdhunxruvuwahhjm")
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 volume. Possible values are `AzureFile`, `EmptyDir` and `Secret`. Defaults to `EmptyDir`.
*/
@JvmName("umasfdkryniidstt")
public suspend fun storageType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageType = mapped
}
internal fun build(): AppTemplateVolumeArgs = AppTemplateVolumeArgs(
name = name ?: throw PulumiNullFieldException("name"),
storageName = storageName,
storageType = storageType,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy