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

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

package com.pulumi.azure.appplatform.kotlin.inputs

import com.pulumi.azure.appplatform.inputs.SpringCloudAppCustomPersistentDiskArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property mountOptions These are the mount options for a persistent disk.
 * @property mountPath The mount path of the persistent disk.
 * @property readOnlyEnabled Indicates whether the persistent disk is a readOnly one.
 * @property shareName The share name of the Azure File share.
 * @property storageName The name of the Spring Cloud Storage.
 */
public data class SpringCloudAppCustomPersistentDiskArgs(
    public val mountOptions: Output>? = null,
    public val mountPath: Output,
    public val readOnlyEnabled: Output? = null,
    public val shareName: Output,
    public val storageName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.inputs.SpringCloudAppCustomPersistentDiskArgs = com.pulumi.azure.appplatform.inputs.SpringCloudAppCustomPersistentDiskArgs.builder()
        .mountOptions(mountOptions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .mountPath(mountPath.applyValue({ args0 -> args0 }))
        .readOnlyEnabled(readOnlyEnabled?.applyValue({ args0 -> args0 }))
        .shareName(shareName.applyValue({ args0 -> args0 }))
        .storageName(storageName.applyValue({ args0 -> args0 })).build()
}

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

    private var mountPath: Output? = null

    private var readOnlyEnabled: Output? = null

    private var shareName: Output? = null

    private var storageName: Output? = null

    /**
     * @param value These are the mount options for a persistent disk.
     */
    @JvmName("mqetfsudxgtntjao")
    public suspend fun mountOptions(`value`: Output>) {
        this.mountOptions = value
    }

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

    /**
     * @param values These are the mount options for a persistent disk.
     */
    @JvmName("bvtcqglngxvrbwlp")
    public suspend fun mountOptions(values: List>) {
        this.mountOptions = Output.all(values)
    }

    /**
     * @param value The mount path of the persistent disk.
     */
    @JvmName("amcqbiogyytqaxkn")
    public suspend fun mountPath(`value`: Output) {
        this.mountPath = value
    }

    /**
     * @param value Indicates whether the persistent disk is a readOnly one.
     */
    @JvmName("ugekeeroucpuiqti")
    public suspend fun readOnlyEnabled(`value`: Output) {
        this.readOnlyEnabled = value
    }

    /**
     * @param value The share name of the Azure File share.
     */
    @JvmName("mqbxswfemwrkhltk")
    public suspend fun shareName(`value`: Output) {
        this.shareName = value
    }

    /**
     * @param value The name of the Spring Cloud Storage.
     */
    @JvmName("dptqevlivltjlsap")
    public suspend fun storageName(`value`: Output) {
        this.storageName = value
    }

    /**
     * @param value These are the mount options for a persistent disk.
     */
    @JvmName("dalmyauwxrdgmiok")
    public suspend fun mountOptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param values These are the mount options for a persistent disk.
     */
    @JvmName("enxstvuxwfcpnbrg")
    public suspend fun mountOptions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param value The mount path of the persistent disk.
     */
    @JvmName("wsoyqsjutbgvsvqw")
    public suspend fun mountPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountPath = mapped
    }

    /**
     * @param value Indicates whether the persistent disk is a readOnly one.
     */
    @JvmName("nxolmeanubxaskfd")
    public suspend fun readOnlyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnlyEnabled = mapped
    }

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

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

    internal fun build(): SpringCloudAppCustomPersistentDiskArgs =
        SpringCloudAppCustomPersistentDiskArgs(
            mountOptions = mountOptions,
            mountPath = mountPath ?: throw PulumiNullFieldException("mountPath"),
            readOnlyEnabled = readOnlyEnabled,
            shareName = shareName ?: throw PulumiNullFieldException("shareName"),
            storageName = storageName ?: throw PulumiNullFieldException("storageName"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy