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

com.pulumi.awsnative.robomaker.kotlin.RobotArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.robomaker.kotlin

import com.pulumi.awsnative.robomaker.RobotArgs.builder
import com.pulumi.awsnative.robomaker.kotlin.enums.RobotArchitecture
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * AWS::RoboMaker::Robot resource creates an AWS RoboMaker Robot.
 * @property architecture The target architecture of the robot.
 * @property fleet The Amazon Resource Name (ARN) of the fleet.
 * @property greengrassGroupId The Greengrass group id.
 * @property name The name for the robot.
 * @property tags A map that contains tag keys and tag values that are attached to the robot.
 */
public data class RobotArgs(
    public val architecture: Output? = null,
    public val fleet: Output? = null,
    public val greengrassGroupId: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.robomaker.RobotArgs =
        com.pulumi.awsnative.robomaker.RobotArgs.builder()
            .architecture(architecture?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fleet(fleet?.applyValue({ args0 -> args0 }))
            .greengrassGroupId(greengrassGroupId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RobotArgs].
 */
@PulumiTagMarker
public class RobotArgsBuilder internal constructor() {
    private var architecture: Output? = null

    private var fleet: Output? = null

    private var greengrassGroupId: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

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

    /**
     * @param value The Amazon Resource Name (ARN) of the fleet.
     */
    @JvmName("ywxwsmbvqwuqnfxx")
    public suspend fun fleet(`value`: Output) {
        this.fleet = value
    }

    /**
     * @param value The Greengrass group id.
     */
    @JvmName("sbijfgyfvmmtbblh")
    public suspend fun greengrassGroupId(`value`: Output) {
        this.greengrassGroupId = value
    }

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

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

    /**
     * @param value The target architecture of the robot.
     */
    @JvmName("njurpwfhrqgbsdlb")
    public suspend fun architecture(`value`: RobotArchitecture?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.architecture = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the fleet.
     */
    @JvmName("pfkjprxnnccexjdg")
    public suspend fun fleet(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fleet = mapped
    }

    /**
     * @param value The Greengrass group id.
     */
    @JvmName("elxcofhvgdtsaoba")
    public suspend fun greengrassGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.greengrassGroupId = mapped
    }

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

    /**
     * @param value A map that contains tag keys and tag values that are attached to the robot.
     */
    @JvmName("tvodcvwnpwqybmef")
    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.
     */
    @JvmName("xpmkrjnbrunqijsf")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RobotArgs = RobotArgs(
        architecture = architecture,
        fleet = fleet,
        greengrassGroupId = greengrassGroupId,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy