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

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerVolumeMountArgs.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.12.0.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.ServiceTemplateSpecContainerVolumeMountArgs.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 ':'.
 * @property name This must match the Name of a Volume.
 */
public data class ServiceTemplateSpecContainerVolumeMountArgs(
    public val mountPath: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerVolumeMountArgs = com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerVolumeMountArgs.builder()
        .mountPath(mountPath.applyValue({ args0 -> args0 }))
        .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateSpecContainerVolumeMountArgs].
 */
@PulumiTagMarker
public class ServiceTemplateSpecContainerVolumeMountArgsBuilder 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 ':'.
     */
    @JvmName("jyqeceefofkmivyu")
    public suspend fun mountPath(`value`: Output) {
        this.mountPath = value
    }

    /**
     * @param value This must match the Name of a Volume.
     */
    @JvmName("bvgphrveuvjnggkn")
    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 ':'.
     */
    @JvmName("dctoklbxmkwlgxup")
    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("jyppnfwhbiuvyhiq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy