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

com.pulumi.azurenative.databoxedge.kotlin.inputs.IoTEdgeAgentInfoArgs.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.databoxedge.kotlin.inputs

import com.pulumi.azurenative.databoxedge.inputs.IoTEdgeAgentInfoArgs.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

/**
 * IoT edge agent details is optional, this will be used for download system Agent module while bootstrapping IoT Role if specified.
 * @property imageName Name of the IoT edge agent image.
 * @property imageRepository Image repository details.
 * @property tag Image Tag.
 */
public data class IoTEdgeAgentInfoArgs(
    public val imageName: Output,
    public val imageRepository: Output? = null,
    public val tag: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.databoxedge.inputs.IoTEdgeAgentInfoArgs =
        com.pulumi.azurenative.databoxedge.inputs.IoTEdgeAgentInfoArgs.builder()
            .imageName(imageName.applyValue({ args0 -> args0 }))
            .imageRepository(imageRepository?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tag(tag.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IoTEdgeAgentInfoArgs].
 */
@PulumiTagMarker
public class IoTEdgeAgentInfoArgsBuilder internal constructor() {
    private var imageName: Output? = null

    private var imageRepository: Output? = null

    private var tag: Output? = null

    /**
     * @param value Name of the IoT edge agent image.
     */
    @JvmName("njqhsmqhbldfcirv")
    public suspend fun imageName(`value`: Output) {
        this.imageName = value
    }

    /**
     * @param value Image repository details.
     */
    @JvmName("ejvdrsusyfoalbuy")
    public suspend fun imageRepository(`value`: Output) {
        this.imageRepository = value
    }

    /**
     * @param value Image Tag.
     */
    @JvmName("msnvskvfudmkkjcy")
    public suspend fun tag(`value`: Output) {
        this.tag = value
    }

    /**
     * @param value Name of the IoT edge agent image.
     */
    @JvmName("cwgqxvagxkskmcif")
    public suspend fun imageName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.imageName = mapped
    }

    /**
     * @param value Image repository details.
     */
    @JvmName("mkrveqhbwlbqgtel")
    public suspend fun imageRepository(`value`: ImageRepositoryCredentialArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageRepository = mapped
    }

    /**
     * @param argument Image repository details.
     */
    @JvmName("wtgieitechvfopoo")
    public suspend fun imageRepository(argument: suspend ImageRepositoryCredentialArgsBuilder.() -> Unit) {
        val toBeMapped = ImageRepositoryCredentialArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.imageRepository = mapped
    }

    /**
     * @param value Image Tag.
     */
    @JvmName("hyxudckqgecomfpf")
    public suspend fun tag(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tag = mapped
    }

    internal fun build(): IoTEdgeAgentInfoArgs = IoTEdgeAgentInfoArgs(
        imageName = imageName ?: throw PulumiNullFieldException("imageName"),
        imageRepository = imageRepository,
        tag = tag ?: throw PulumiNullFieldException("tag"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy