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

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

package com.pulumi.gcp.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVolumeNfsArgs.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 that is exported by the NFS server.
 * @property readOnly If true, mount the NFS volume as read only
 * - - -
 * @property server Hostname or IP address of the NFS server
 */
public data class ServiceTemplateVolumeNfsArgs(
    public val path: Output,
    public val readOnly: Output? = null,
    public val server: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVolumeNfsArgs =
        com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVolumeNfsArgs.builder()
            .path(path.applyValue({ args0 -> args0 }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 }))
            .server(server.applyValue({ args0 -> args0 })).build()
}

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

    private var readOnly: Output? = null

    private var server: Output? = null

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

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

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

    /**
     * @param value Path that is exported by the NFS server.
     */
    @JvmName("nykdnnysttryyjkr")
    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
     * - - -
     */
    @JvmName("cjtaiycemvysdufl")
    public suspend fun readOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnly = mapped
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy