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

com.pulumi.awsnative.robomaker.kotlin.RobotApplicationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.robomaker.kotlin

import com.pulumi.awsnative.robomaker.RobotApplicationArgs.builder
import com.pulumi.awsnative.robomaker.kotlin.inputs.RobotApplicationRobotSoftwareSuiteArgs
import com.pulumi.awsnative.robomaker.kotlin.inputs.RobotApplicationRobotSoftwareSuiteArgsBuilder
import com.pulumi.awsnative.robomaker.kotlin.inputs.RobotApplicationSourceConfigArgs
import com.pulumi.awsnative.robomaker.kotlin.inputs.RobotApplicationSourceConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * This schema is for testing purpose only.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property currentRevisionId The revision ID of robot application.
 * @property environment The URI of the Docker image for the robot application.
 * @property name The name of the robot application.
 * @property robotSoftwareSuite The robot software suite used by the robot application.
 * @property sources The sources of the robot application.
 * @property tags A map that contains tag keys and tag values that are attached to the robot application.
 */
public data class RobotApplicationArgs(
    public val currentRevisionId: Output? = null,
    public val environment: Output? = null,
    public val name: Output? = null,
    public val robotSoftwareSuite: Output? = null,
    public val sources: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.robomaker.RobotApplicationArgs =
        com.pulumi.awsnative.robomaker.RobotApplicationArgs.builder()
            .currentRevisionId(currentRevisionId?.applyValue({ args0 -> args0 }))
            .environment(environment?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .robotSoftwareSuite(
                robotSoftwareSuite?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RobotApplicationArgs].
 */
@PulumiTagMarker
public class RobotApplicationArgsBuilder internal constructor() {
    private var currentRevisionId: Output? = null

    private var environment: Output? = null

    private var name: Output? = null

    private var robotSoftwareSuite: Output? = null

    private var sources: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The revision ID of robot application.
     */
    @JvmName("sfdyjxusnocsieip")
    public suspend fun currentRevisionId(`value`: Output) {
        this.currentRevisionId = value
    }

    /**
     * @param value The URI of the Docker image for the robot application.
     */
    @JvmName("bmnvcfepwjdhqjgb")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

    /**
     * @param value The name of the robot application.
     */
    @JvmName("vsufagnsnrkiylif")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The robot software suite used by the robot application.
     */
    @JvmName("eiakuhufshogblvo")
    public suspend fun robotSoftwareSuite(`value`: Output) {
        this.robotSoftwareSuite = value
    }

    /**
     * @param value The sources of the robot application.
     */
    @JvmName("hodriwddiuhirpul")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

    @JvmName("bcmevejeityyscuh")
    public suspend fun sources(vararg values: Output) {
        this.sources = Output.all(values.asList())
    }

    /**
     * @param values The sources of the robot application.
     */
    @JvmName("hfjcxlprcsrfejph")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value A map that contains tag keys and tag values that are attached to the robot application.
     */
    @JvmName("lmwibqtqncypkicy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The revision ID of robot application.
     */
    @JvmName("ptlbmappotnuxcjl")
    public suspend fun currentRevisionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currentRevisionId = mapped
    }

    /**
     * @param value The URI of the Docker image for the robot application.
     */
    @JvmName("rjlawapuqsplhfib")
    public suspend fun environment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param value The name of the robot application.
     */
    @JvmName("kiihkalkksbongyw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The robot software suite used by the robot application.
     */
    @JvmName("jakbeflbdqfaqgfp")
    public suspend fun robotSoftwareSuite(`value`: RobotApplicationRobotSoftwareSuiteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.robotSoftwareSuite = mapped
    }

    /**
     * @param argument The robot software suite used by the robot application.
     */
    @JvmName("ptrkdnobblyjobfc")
    public suspend fun robotSoftwareSuite(argument: suspend RobotApplicationRobotSoftwareSuiteArgsBuilder.() -> Unit) {
        val toBeMapped = RobotApplicationRobotSoftwareSuiteArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.robotSoftwareSuite = mapped
    }

    /**
     * @param value The sources of the robot application.
     */
    @JvmName("kryojsjdsmvnivyb")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument The sources of the robot application.
     */
    @JvmName("brenwyufamtjyssr")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RobotApplicationSourceConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The sources of the robot application.
     */
    @JvmName("nleoogmumpuuyxeo")
    public suspend fun sources(vararg argument: suspend RobotApplicationSourceConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RobotApplicationSourceConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The sources of the robot application.
     */
    @JvmName("gkbyjnbhvxfilpvt")
    public suspend fun sources(argument: suspend RobotApplicationSourceConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            RobotApplicationSourceConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values The sources of the robot application.
     */
    @JvmName("jpnntvwyaunlxuye")
    public suspend fun sources(vararg values: RobotApplicationSourceConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param value A map that contains tag keys and tag values that are attached to the robot application.
     */
    @JvmName("mfdojiwuorrjhsrx")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map that contains tag keys and tag values that are attached to the robot application.
     */
    @JvmName("wmqrpjxdbdueiwyt")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RobotApplicationArgs = RobotApplicationArgs(
        currentRevisionId = currentRevisionId,
        environment = environment,
        name = name,
        robotSoftwareSuite = robotSoftwareSuite,
        sources = sources,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy