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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerVolumeMountArgs.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.ServiceTemplateContainerVolumeMountArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property mountPath Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
 * @property name This must match the Name of a Volume.
 */
public data class ServiceTemplateContainerVolumeMountArgs(
    public val mountPath: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerVolumeMountArgs =
        com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerVolumeMountArgs.builder()
            .mountPath(mountPath.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateContainerVolumeMountArgs].
 */
@PulumiTagMarker
public class ServiceTemplateContainerVolumeMountArgsBuilder internal constructor() {
    private var mountPath: Output? = null

    private var name: Output? = null

    /**
     * @param value Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
     */
    @JvmName("mhafngdvgohubvrw")
    public suspend fun mountPath(`value`: Output) {
        this.mountPath = value
    }

    /**
     * @param value This must match the Name of a Volume.
     */
    @JvmName("uubpoaifnjnifuyw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
     */
    @JvmName("vtfqwasddrlpcttr")
    public suspend fun mountPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountPath = mapped
    }

    /**
     * @param value This must match the Name of a Volume.
     */
    @JvmName("oiogvhmbakasrkly")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ServiceTemplateContainerVolumeMountArgs =
        ServiceTemplateContainerVolumeMountArgs(
            mountPath = mountPath ?: throw PulumiNullFieldException("mountPath"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy