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

com.pulumi.gcp.notebooks.kotlin.inputs.InstanceContainerImageArgs.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: 8.10.0.0
Show newest version
@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.InstanceContainerImageArgs.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 InstanceContainerImageArgs(
    public val repository: Output,
    public val tag: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.notebooks.inputs.InstanceContainerImageArgs =
        com.pulumi.gcp.notebooks.inputs.InstanceContainerImageArgs.builder()
            .repository(repository.applyValue({ args0 -> args0 }))
            .tag(tag?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceContainerImageArgs].
 */
@PulumiTagMarker
public class InstanceContainerImageArgsBuilder 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("xtatpwbdvluqfnxe")
    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("ktgmprcephwgcpik")
    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("mkoxumyislnywoin")
    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("wwhbvdpmbeekkrmq")
    public suspend fun tag(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tag = mapped
    }

    internal fun build(): InstanceContainerImageArgs = InstanceContainerImageArgs(
        repository = repository ?: throw PulumiNullFieldException("repository"),
        tag = tag,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy