![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.DockerBuildArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.DockerBuildArgs.builder
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
/**
* Class to represent configuration settings for Docker Build
* @property context Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified.
* The path is relative to the asset path which must contain a single Blob URI value.
*
* @property dockerSpecificationType Enum to determine docker specification type. Must be either Build or Image.
* Expected value is 'Build'.
* @property dockerfile [Required] Docker command line instructions to assemble an image.
*
* @property platform The platform information of the docker image.
*/
public data class DockerBuildArgs(
public val context: Output? = null,
public val dockerSpecificationType: Output,
public val dockerfile: Output,
public val platform: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.DockerBuildArgs =
com.pulumi.azurenative.machinelearningservices.inputs.DockerBuildArgs.builder()
.context(context?.applyValue({ args0 -> args0 }))
.dockerSpecificationType(dockerSpecificationType.applyValue({ args0 -> args0 }))
.dockerfile(dockerfile.applyValue({ args0 -> args0 }))
.platform(platform?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DockerBuildArgs].
*/
@PulumiTagMarker
public class DockerBuildArgsBuilder internal constructor() {
private var context: Output? = null
private var dockerSpecificationType: Output? = null
private var dockerfile: Output? = null
private var platform: Output? = null
/**
* @param value Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified.
* The path is relative to the asset path which must contain a single Blob URI value.
*
*/
@JvmName("loynggmpwvvyccas")
public suspend fun context(`value`: Output) {
this.context = value
}
/**
* @param value Enum to determine docker specification type. Must be either Build or Image.
* Expected value is 'Build'.
*/
@JvmName("bjnhatthravgfygk")
public suspend fun dockerSpecificationType(`value`: Output) {
this.dockerSpecificationType = value
}
/**
* @param value [Required] Docker command line instructions to assemble an image.
*
*/
@JvmName("gitlvstmrjyuqbhe")
public suspend fun dockerfile(`value`: Output) {
this.dockerfile = value
}
/**
* @param value The platform information of the docker image.
*/
@JvmName("tbgjlgxgorcpuxfp")
public suspend fun platform(`value`: Output) {
this.platform = value
}
/**
* @param value Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified.
* The path is relative to the asset path which must contain a single Blob URI value.
*
*/
@JvmName("bpbpmisosawqbhdj")
public suspend fun context(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.context = mapped
}
/**
* @param value Enum to determine docker specification type. Must be either Build or Image.
* Expected value is 'Build'.
*/
@JvmName("oinlmedkuafiompx")
public suspend fun dockerSpecificationType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dockerSpecificationType = mapped
}
/**
* @param value [Required] Docker command line instructions to assemble an image.
*
*/
@JvmName("rntlkqddntjydfcq")
public suspend fun dockerfile(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dockerfile = mapped
}
/**
* @param value The platform information of the docker image.
*/
@JvmName("sgikiaesjsxeijht")
public suspend fun platform(`value`: DockerImagePlatformArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.platform = mapped
}
/**
* @param argument The platform information of the docker image.
*/
@JvmName("emroqykbtnuflltv")
public suspend fun platform(argument: suspend DockerImagePlatformArgsBuilder.() -> Unit) {
val toBeMapped = DockerImagePlatformArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.platform = mapped
}
internal fun build(): DockerBuildArgs = DockerBuildArgs(
context = context,
dockerSpecificationType = dockerSpecificationType ?: throw
PulumiNullFieldException("dockerSpecificationType"),
dockerfile = dockerfile ?: throw PulumiNullFieldException("dockerfile"),
platform = platform,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy