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

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecVolumeNfsArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrun.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeNfsArgs.builder
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.jvm.JvmName

/**
 *
 * @property path Path exported by the NFS server
 * @property readOnly If true, mount the NFS volume as read only in all mounts. Defaults to false.
 * - - -
 * @property server IP address or hostname of the NFS server
 */
public data class ServiceTemplateSpecVolumeNfsArgs(
    public val path: Output,
    public val readOnly: Output? = null,
    public val server: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeNfsArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeNfsArgs.builder()
            .path(path.applyValue({ args0 -> args0 }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 }))
            .server(server.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateSpecVolumeNfsArgs].
 */
@PulumiTagMarker
public class ServiceTemplateSpecVolumeNfsArgsBuilder internal constructor() {
    private var path: Output? = null

    private var readOnly: Output? = null

    private var server: Output? = null

    /**
     * @param value Path exported by the NFS server
     */
    @JvmName("anjdakvunwicwipa")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value If true, mount the NFS volume as read only in all mounts. Defaults to false.
     * - - -
     */
    @JvmName("esnmnrnjhwgqyyfk")
    public suspend fun readOnly(`value`: Output) {
        this.readOnly = value
    }

    /**
     * @param value IP address or hostname of the NFS server
     */
    @JvmName("qulgqlgquymxfspb")
    public suspend fun server(`value`: Output) {
        this.server = value
    }

    /**
     * @param value Path exported by the NFS server
     */
    @JvmName("liampcgnannjtgbc")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value If true, mount the NFS volume as read only in all mounts. Defaults to false.
     * - - -
     */
    @JvmName("gcgsmfvhkbhbkncr")
    public suspend fun readOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnly = mapped
    }

    /**
     * @param value IP address or hostname of the NFS server
     */
    @JvmName("gftcrxdlcmdfisun")
    public suspend fun server(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.server = mapped
    }

    internal fun build(): ServiceTemplateSpecVolumeNfsArgs = ServiceTemplateSpecVolumeNfsArgs(
        path = path ?: throw PulumiNullFieldException("path"),
        readOnly = readOnly,
        server = server ?: throw PulumiNullFieldException("server"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy