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

com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionDeviceArgs.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.JobDefinitionDeviceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property containerPath The path inside the container that's used to expose the host device. By default, the `hostPath` value is used.
 * @property hostPath The path for the device on the host container instance.
 * @property permissions The explicit permissions to provide to the container for the device. By default, the container has permissions for `read` , `write` , and `mknod` for the device.
 */
public data class JobDefinitionDeviceArgs(
    public val containerPath: Output? = null,
    public val hostPath: Output? = null,
    public val permissions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionDeviceArgs =
        com.pulumi.awsnative.batch.inputs.JobDefinitionDeviceArgs.builder()
            .containerPath(containerPath?.applyValue({ args0 -> args0 }))
            .hostPath(hostPath?.applyValue({ args0 -> args0 }))
            .permissions(permissions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var hostPath: Output? = null

    private var permissions: Output>? = null

    /**
     * @param value The path inside the container that's used to expose the host device. By default, the `hostPath` value is used.
     */
    @JvmName("wrqgpaueajiwllmr")
    public suspend fun containerPath(`value`: Output) {
        this.containerPath = value
    }

    /**
     * @param value The path for the device on the host container instance.
     */
    @JvmName("qgksvomjjmbwyehq")
    public suspend fun hostPath(`value`: Output) {
        this.hostPath = value
    }

    /**
     * @param value The explicit permissions to provide to the container for the device. By default, the container has permissions for `read` , `write` , and `mknod` for the device.
     */
    @JvmName("rjrrauujehlymnme")
    public suspend fun permissions(`value`: Output>) {
        this.permissions = value
    }

    @JvmName("lxlidvdfirjnudwp")
    public suspend fun permissions(vararg values: Output) {
        this.permissions = Output.all(values.asList())
    }

    /**
     * @param values The explicit permissions to provide to the container for the device. By default, the container has permissions for `read` , `write` , and `mknod` for the device.
     */
    @JvmName("xjunocwowqoerogs")
    public suspend fun permissions(values: List>) {
        this.permissions = Output.all(values)
    }

    /**
     * @param value The path inside the container that's used to expose the host device. By default, the `hostPath` value is used.
     */
    @JvmName("wgbiitcofhuqemts")
    public suspend fun containerPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerPath = mapped
    }

    /**
     * @param value The path for the device on the host container instance.
     */
    @JvmName("cuahygoukwwgvjth")
    public suspend fun hostPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostPath = mapped
    }

    /**
     * @param value The explicit permissions to provide to the container for the device. By default, the container has permissions for `read` , `write` , and `mknod` for the device.
     */
    @JvmName("igjxfdbdmgnoonjf")
    public suspend fun permissions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    /**
     * @param values The explicit permissions to provide to the container for the device. By default, the container has permissions for `read` , `write` , and `mknod` for the device.
     */
    @JvmName("wdsccqebleasxicp")
    public suspend fun permissions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    internal fun build(): JobDefinitionDeviceArgs = JobDefinitionDeviceArgs(
        containerPath = containerPath,
        hostPath = hostPath,
        permissions = permissions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy