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

com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionMountPointsArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.inputs

import com.pulumi.awsnative.batch.inputs.JobDefinitionMountPointsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property containerPath The path on the container where the host volume is mounted.
 * @property readOnly If this value is `true` , the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is `false` .
 * @property sourceVolume The name of the volume to mount.
 */
public data class JobDefinitionMountPointsArgs(
    public val containerPath: Output? = null,
    public val readOnly: Output? = null,
    public val sourceVolume: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionMountPointsArgs =
        com.pulumi.awsnative.batch.inputs.JobDefinitionMountPointsArgs.builder()
            .containerPath(containerPath?.applyValue({ args0 -> args0 }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 }))
            .sourceVolume(sourceVolume?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobDefinitionMountPointsArgs].
 */
@PulumiTagMarker
public class JobDefinitionMountPointsArgsBuilder internal constructor() {
    private var containerPath: Output? = null

    private var readOnly: Output? = null

    private var sourceVolume: Output? = null

    /**
     * @param value The path on the container where the host volume is mounted.
     */
    @JvmName("cambalmevbmwdohw")
    public suspend fun containerPath(`value`: Output) {
        this.containerPath = value
    }

    /**
     * @param value If this value is `true` , the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is `false` .
     */
    @JvmName("vvctmkrbclwqdgbh")
    public suspend fun readOnly(`value`: Output) {
        this.readOnly = value
    }

    /**
     * @param value The name of the volume to mount.
     */
    @JvmName("rnvkajkieqconkit")
    public suspend fun sourceVolume(`value`: Output) {
        this.sourceVolume = value
    }

    /**
     * @param value The path on the container where the host volume is mounted.
     */
    @JvmName("jpsfqadalixmryjv")
    public suspend fun containerPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerPath = mapped
    }

    /**
     * @param value If this value is `true` , the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is `false` .
     */
    @JvmName("dqyxjmnvyspdmulk")
    public suspend fun readOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnly = mapped
    }

    /**
     * @param value The name of the volume to mount.
     */
    @JvmName("klvhokbhahclgcgy")
    public suspend fun sourceVolume(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceVolume = mapped
    }

    internal fun build(): JobDefinitionMountPointsArgs = JobDefinitionMountPointsArgs(
        containerPath = containerPath,
        readOnly = readOnly,
        sourceVolume = sourceVolume,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy