com.pulumi.gcp.notebooks.kotlin.inputs.EnvironmentContainerImageArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.notebooks.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.notebooks.inputs.EnvironmentContainerImageArgs.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 repository The path to the container image repository.
* For example: gcr.io/{project_id}/{imageName}
* @property tag The tag of the container image. If not specified, this defaults to the latest tag.
*/
public data class EnvironmentContainerImageArgs(
public val repository: Output,
public val tag: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.notebooks.inputs.EnvironmentContainerImageArgs =
com.pulumi.gcp.notebooks.inputs.EnvironmentContainerImageArgs.builder()
.repository(repository.applyValue({ args0 -> args0 }))
.tag(tag?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnvironmentContainerImageArgs].
*/
@PulumiTagMarker
public class EnvironmentContainerImageArgsBuilder internal constructor() {
private var repository: Output? = null
private var tag: Output? = null
/**
* @param value The path to the container image repository.
* For example: gcr.io/{project_id}/{imageName}
*/
@JvmName("broivnxwcsugutxs")
public suspend fun repository(`value`: Output) {
this.repository = value
}
/**
* @param value The tag of the container image. If not specified, this defaults to the latest tag.
*/
@JvmName("bxgpgtlndaiiyuse")
public suspend fun tag(`value`: Output) {
this.tag = value
}
/**
* @param value The path to the container image repository.
* For example: gcr.io/{project_id}/{imageName}
*/
@JvmName("rmfbeiriihlwyjlq")
public suspend fun repository(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.repository = mapped
}
/**
* @param value The tag of the container image. If not specified, this defaults to the latest tag.
*/
@JvmName("otboaqoygpmstwlt")
public suspend fun tag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tag = mapped
}
internal fun build(): EnvironmentContainerImageArgs = EnvironmentContainerImageArgs(
repository = repository ?: throw PulumiNullFieldException("repository"),
tag = tag,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy