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

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

package com.pulumi.awsnative.iotwireless.kotlin

import com.pulumi.awsnative.iotwireless.TaskDefinitionArgs.builder
import com.pulumi.awsnative.iotwireless.kotlin.enums.TaskDefinitionType
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgsBuilder
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionUpdateWirelessGatewayTaskCreateArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.TaskDefinitionUpdateWirelessGatewayTaskCreateArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a gateway task definition.
 * @property autoCreateTasks Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.
 * @property loRaWanUpdateGatewayTaskEntry The list of task definitions.
 * @property name The name of the new resource.
 * @property tags A list of key-value pairs that contain metadata for the destination.
 * @property taskDefinitionType A filter to list only the wireless gateway task definitions that use this task definition type
 * @property update Information about the gateways to update.
 */
public data class TaskDefinitionArgs(
    public val autoCreateTasks: Output? = null,
    public val loRaWanUpdateGatewayTaskEntry: Output? =
        null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val taskDefinitionType: Output? = null,
    public val update: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotwireless.TaskDefinitionArgs =
        com.pulumi.awsnative.iotwireless.TaskDefinitionArgs.builder()
            .autoCreateTasks(autoCreateTasks?.applyValue({ args0 -> args0 }))
            .loRaWanUpdateGatewayTaskEntry(
                loRaWanUpdateGatewayTaskEntry?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .taskDefinitionType(
                taskDefinitionType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .update(update?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TaskDefinitionArgs].
 */
@PulumiTagMarker
public class TaskDefinitionArgsBuilder internal constructor() {
    private var autoCreateTasks: Output? = null

    private var loRaWanUpdateGatewayTaskEntry:
        Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var taskDefinitionType: Output? = null

    private var update: Output? = null

    /**
     * @param value Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.
     */
    @JvmName("dquhsylsvlobdsev")
    public suspend fun autoCreateTasks(`value`: Output) {
        this.autoCreateTasks = value
    }

    /**
     * @param value The list of task definitions.
     */
    @JvmName("lirnpwpkhwhwhkmd")
    public suspend fun loRaWanUpdateGatewayTaskEntry(`value`: Output) {
        this.loRaWanUpdateGatewayTaskEntry = value
    }

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

    /**
     * @param value A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("egeweexryvcbjrpo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("jgguuxgpgtxyvsma")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A filter to list only the wireless gateway task definitions that use this task definition type
     */
    @JvmName("hkuqbvofdamdafyx")
    public suspend fun taskDefinitionType(`value`: Output) {
        this.taskDefinitionType = value
    }

    /**
     * @param value Information about the gateways to update.
     */
    @JvmName("nvnbeptltuuxnlsw")
    public suspend fun update(`value`: Output) {
        this.update = value
    }

    /**
     * @param value Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.
     */
    @JvmName("whtnatnqftdfboga")
    public suspend fun autoCreateTasks(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoCreateTasks = mapped
    }

    /**
     * @param value The list of task definitions.
     */
    @JvmName("gmfetnnimoucvagq")
    public suspend fun loRaWanUpdateGatewayTaskEntry(`value`: TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loRaWanUpdateGatewayTaskEntry = mapped
    }

    /**
     * @param argument The list of task definitions.
     */
    @JvmName("kqqgbjetfgpmjihu")
    public suspend fun loRaWanUpdateGatewayTaskEntry(argument: suspend TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgsBuilder.() -> Unit) {
        val toBeMapped = TaskDefinitionLoRaWanUpdateGatewayTaskEntryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.loRaWanUpdateGatewayTaskEntry = mapped
    }

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

    /**
     * @param value A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("pfsurgwmsvckytaq")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("xmkkrokwxpkwjbvf")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("ymjxsrsyqjrwdcna")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("yohuobbakteyjrhi")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the destination.
     */
    @JvmName("kcojlgdridaahmfo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A filter to list only the wireless gateway task definitions that use this task definition type
     */
    @JvmName("tgidhmpnobogjgrk")
    public suspend fun taskDefinitionType(`value`: TaskDefinitionType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taskDefinitionType = mapped
    }

    /**
     * @param value Information about the gateways to update.
     */
    @JvmName("sorsfsqfchusbrmj")
    public suspend fun update(`value`: TaskDefinitionUpdateWirelessGatewayTaskCreateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.update = mapped
    }

    /**
     * @param argument Information about the gateways to update.
     */
    @JvmName("bvhviwuflhtygasn")
    public suspend fun update(argument: suspend TaskDefinitionUpdateWirelessGatewayTaskCreateArgsBuilder.() -> Unit) {
        val toBeMapped = TaskDefinitionUpdateWirelessGatewayTaskCreateArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.update = mapped
    }

    internal fun build(): TaskDefinitionArgs = TaskDefinitionArgs(
        autoCreateTasks = autoCreateTasks,
        loRaWanUpdateGatewayTaskEntry = loRaWanUpdateGatewayTaskEntry,
        name = name,
        tags = tags,
        taskDefinitionType = taskDefinitionType,
        update = update,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy