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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateVolumeNfsArgs.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.JobTemplateTemplateVolumeNfsArgs.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 this volume as read-only in all mounts.
 * @property server Hostname or IP address of the NFS server.
 */
public data class JobTemplateTemplateVolumeNfsArgs(
    public val path: Output? = null,
    public val readOnly: Output? = null,
    public val server: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeNfsArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeNfsArgs.builder()
            .path(path?.applyValue({ args0 -> args0 }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 }))
            .server(server.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateTemplateVolumeNfsArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateVolumeNfsArgsBuilder 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("yyegawuqicnrwwki")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

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

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

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

    /**
     * @param value If true, mount this volume as read-only in all mounts.
     */
    @JvmName("qgpwkekxwdakjbuh")
    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("cnkmjdffjevcwppp")
    public suspend fun server(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.server = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy