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

com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatasetActionArgs.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.iotanalytics.kotlin.inputs

import com.pulumi.awsnative.iotanalytics.inputs.DatasetActionArgs.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

/**
 *
 * @property actionName The name of the data set action by which data set contents are automatically created.
 * @property containerAction Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
 * @property queryAction An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
 */
public data class DatasetActionArgs(
    public val actionName: Output,
    public val containerAction: Output? = null,
    public val queryAction: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.DatasetActionArgs =
        com.pulumi.awsnative.iotanalytics.inputs.DatasetActionArgs.builder()
            .actionName(actionName.applyValue({ args0 -> args0 }))
            .containerAction(containerAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .queryAction(queryAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DatasetActionArgs].
 */
@PulumiTagMarker
public class DatasetActionArgsBuilder internal constructor() {
    private var actionName: Output? = null

    private var containerAction: Output? = null

    private var queryAction: Output? = null

    /**
     * @param value The name of the data set action by which data set contents are automatically created.
     */
    @JvmName("rdcrsufhhyljjlbh")
    public suspend fun actionName(`value`: Output) {
        this.actionName = value
    }

    /**
     * @param value Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
     */
    @JvmName("mjcejiedqgaqkgny")
    public suspend fun containerAction(`value`: Output) {
        this.containerAction = value
    }

    /**
     * @param value An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
     */
    @JvmName("bkxvarsekvycncjm")
    public suspend fun queryAction(`value`: Output) {
        this.queryAction = value
    }

    /**
     * @param value The name of the data set action by which data set contents are automatically created.
     */
    @JvmName("csjvjosklrxmqgke")
    public suspend fun actionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionName = mapped
    }

    /**
     * @param value Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
     */
    @JvmName("hiiirldubulavolb")
    public suspend fun containerAction(`value`: DatasetContainerActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerAction = mapped
    }

    /**
     * @param argument Information which allows the system to run a containerized application in order to create the data set contents. The application must be in a Docker container along with any needed support libraries.
     */
    @JvmName("anetdayaukkwxrfr")
    public suspend fun containerAction(argument: suspend DatasetContainerActionArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetContainerActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.containerAction = mapped
    }

    /**
     * @param value An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
     */
    @JvmName("gbiedaqhtsfdopry")
    public suspend fun queryAction(`value`: DatasetQueryActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryAction = mapped
    }

    /**
     * @param argument An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
     */
    @JvmName("wxnpmnmoljyenrep")
    public suspend fun queryAction(argument: suspend DatasetQueryActionArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetQueryActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.queryAction = mapped
    }

    internal fun build(): DatasetActionArgs = DatasetActionArgs(
        actionName = actionName ?: throw PulumiNullFieldException("actionName"),
        containerAction = containerAction,
        queryAction = queryAction,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy