
com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.ApplicationScopedVolumeArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs
import com.pulumi.azurenative.servicefabricmesh.inputs.ApplicationScopedVolumeArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Describes a volume whose lifetime is scoped to the application's lifetime.
* @property creationParameters Describes parameters for creating application-scoped volumes.
* @property destinationPath The path within the container at which the volume should be mounted. Only valid path characters are allowed.
* @property name Name of the volume being referenced.
* @property readOnly The flag indicating whether the volume is read only. Default is 'false'.
*/
public data class ApplicationScopedVolumeArgs(
public val creationParameters: Output,
public val destinationPath: Output,
public val name: Output,
public val readOnly: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.ApplicationScopedVolumeArgs = com.pulumi.azurenative.servicefabricmesh.inputs.ApplicationScopedVolumeArgs.builder()
.creationParameters(
creationParameters.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.destinationPath(destinationPath.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.readOnly(readOnly?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationScopedVolumeArgs].
*/
@PulumiTagMarker
public class ApplicationScopedVolumeArgsBuilder internal constructor() {
private var creationParameters:
Output? = null
private var destinationPath: Output? = null
private var name: Output? = null
private var readOnly: Output? = null
/**
* @param value Describes parameters for creating application-scoped volumes.
*/
@JvmName("gixrujbgfplvgtws")
public suspend fun creationParameters(`value`: Output) {
this.creationParameters = value
}
/**
* @param value The path within the container at which the volume should be mounted. Only valid path characters are allowed.
*/
@JvmName("npjlxdnmextupqat")
public suspend fun destinationPath(`value`: Output) {
this.destinationPath = value
}
/**
* @param value Name of the volume being referenced.
*/
@JvmName("ibnoiaogjyilotvy")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The flag indicating whether the volume is read only. Default is 'false'.
*/
@JvmName("muqqvfrwqpogjkav")
public suspend fun readOnly(`value`: Output) {
this.readOnly = value
}
/**
* @param value Describes parameters for creating application-scoped volumes.
*/
@JvmName("xxanorisvxtolecv")
public suspend fun creationParameters(`value`: ApplicationScopedVolumeCreationParametersServiceFabricVolumeDiskArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.creationParameters = mapped
}
/**
* @param argument Describes parameters for creating application-scoped volumes.
*/
@JvmName("mvcbrvaswbrgicaf")
public suspend fun creationParameters(argument: suspend ApplicationScopedVolumeCreationParametersServiceFabricVolumeDiskArgsBuilder.() -> Unit) {
val toBeMapped =
ApplicationScopedVolumeCreationParametersServiceFabricVolumeDiskArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.creationParameters = mapped
}
/**
* @param value The path within the container at which the volume should be mounted. Only valid path characters are allowed.
*/
@JvmName("csblqundrpyhfswe")
public suspend fun destinationPath(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destinationPath = mapped
}
/**
* @param value Name of the volume being referenced.
*/
@JvmName("rfmpckacjwuripmg")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The flag indicating whether the volume is read only. Default is 'false'.
*/
@JvmName("vkejwwqhqwhjcgwl")
public suspend fun readOnly(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readOnly = mapped
}
internal fun build(): ApplicationScopedVolumeArgs = ApplicationScopedVolumeArgs(
creationParameters = creationParameters ?: throw PulumiNullFieldException("creationParameters"),
destinationPath = destinationPath ?: throw PulumiNullFieldException("destinationPath"),
name = name ?: throw PulumiNullFieldException("name"),
readOnly = readOnly,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy