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

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

package com.pulumi.azurenative.batch.kotlin.inputs

import com.pulumi.azurenative.batch.inputs.TaskContainerSettingsArgs.builder
import com.pulumi.azurenative.batch.kotlin.enums.ContainerWorkingDirectory
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property containerRunOptions These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
 * @property imageName This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
 * @property registry This setting can be omitted if was already provided at pool creation.
 * @property workingDirectory
 */
public data class TaskContainerSettingsArgs(
    public val containerRunOptions: Output? = null,
    public val imageName: Output,
    public val registry: Output? = null,
    public val workingDirectory: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.batch.inputs.TaskContainerSettingsArgs =
        com.pulumi.azurenative.batch.inputs.TaskContainerSettingsArgs.builder()
            .containerRunOptions(containerRunOptions?.applyValue({ args0 -> args0 }))
            .imageName(imageName.applyValue({ args0 -> args0 }))
            .registry(registry?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .workingDirectory(
                workingDirectory?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TaskContainerSettingsArgs].
 */
@PulumiTagMarker
public class TaskContainerSettingsArgsBuilder internal constructor() {
    private var containerRunOptions: Output? = null

    private var imageName: Output? = null

    private var registry: Output? = null

    private var workingDirectory: Output? = null

    /**
     * @param value These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
     */
    @JvmName("pupobyriwrigmxpw")
    public suspend fun containerRunOptions(`value`: Output) {
        this.containerRunOptions = value
    }

    /**
     * @param value This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
     */
    @JvmName("jxrjymxokryxnyhd")
    public suspend fun imageName(`value`: Output) {
        this.imageName = value
    }

    /**
     * @param value This setting can be omitted if was already provided at pool creation.
     */
    @JvmName("lwmigppujiupoctv")
    public suspend fun registry(`value`: Output) {
        this.registry = value
    }

    /**
     * @param value
     */
    @JvmName("rfpvcnvojivrgvml")
    public suspend fun workingDirectory(`value`: Output) {
        this.workingDirectory = value
    }

    /**
     * @param value These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
     */
    @JvmName("swjvflnjuaqpfeer")
    public suspend fun containerRunOptions(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerRunOptions = mapped
    }

    /**
     * @param value This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
     */
    @JvmName("xjhdbycjfqfekgyo")
    public suspend fun imageName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.imageName = mapped
    }

    /**
     * @param value This setting can be omitted if was already provided at pool creation.
     */
    @JvmName("anvqesafxanngijo")
    public suspend fun registry(`value`: ContainerRegistryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.registry = mapped
    }

    /**
     * @param argument This setting can be omitted if was already provided at pool creation.
     */
    @JvmName("aluhpdvsgpeyaovf")
    public suspend fun registry(argument: suspend ContainerRegistryArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerRegistryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.registry = mapped
    }

    /**
     * @param value
     */
    @JvmName("hdmqhhhiebfudvvi")
    public suspend fun workingDirectory(`value`: ContainerWorkingDirectory?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workingDirectory = mapped
    }

    internal fun build(): TaskContainerSettingsArgs = TaskContainerSettingsArgs(
        containerRunOptions = containerRunOptions,
        imageName = imageName ?: throw PulumiNullFieldException("imageName"),
        registry = registry,
        workingDirectory = workingDirectory,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy