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

com.pulumi.azurenative.streamanalytics.kotlin.inputs.TransformationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.streamanalytics.kotlin.inputs

import com.pulumi.azurenative.streamanalytics.inputs.TransformationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A transformation object, containing all information associated with the named transformation. All transformations are contained under a streaming job.
 * @property name Resource name
 * @property query Specifies the query that will be run in the streaming job. You can learn more about the Stream Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . Required on PUT (CreateOrReplace) requests.
 * @property streamingUnits Specifies the number of streaming units that the streaming job uses.
 * @property validStreamingUnits Specifies the valid streaming units a streaming job can scale to.
 */
public data class TransformationArgs(
    public val name: Output? = null,
    public val query: Output? = null,
    public val streamingUnits: Output? = null,
    public val validStreamingUnits: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.streamanalytics.inputs.TransformationArgs =
        com.pulumi.azurenative.streamanalytics.inputs.TransformationArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .query(query?.applyValue({ args0 -> args0 }))
            .streamingUnits(streamingUnits?.applyValue({ args0 -> args0 }))
            .validStreamingUnits(
                validStreamingUnits?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [TransformationArgs].
 */
@PulumiTagMarker
public class TransformationArgsBuilder internal constructor() {
    private var name: Output? = null

    private var query: Output? = null

    private var streamingUnits: Output? = null

    private var validStreamingUnits: Output>? = null

    /**
     * @param value Resource name
     */
    @JvmName("ognlacekdmyiglos")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the query that will be run in the streaming job. You can learn more about the Stream Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . Required on PUT (CreateOrReplace) requests.
     */
    @JvmName("aivjsxlvylkwmtxu")
    public suspend fun query(`value`: Output) {
        this.query = value
    }

    /**
     * @param value Specifies the number of streaming units that the streaming job uses.
     */
    @JvmName("fnofcwwashhtpnik")
    public suspend fun streamingUnits(`value`: Output) {
        this.streamingUnits = value
    }

    /**
     * @param value Specifies the valid streaming units a streaming job can scale to.
     */
    @JvmName("mtjermoloumktjcs")
    public suspend fun validStreamingUnits(`value`: Output>) {
        this.validStreamingUnits = value
    }

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

    /**
     * @param values Specifies the valid streaming units a streaming job can scale to.
     */
    @JvmName("heiedaiklnhowhav")
    public suspend fun validStreamingUnits(values: List>) {
        this.validStreamingUnits = Output.all(values)
    }

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

    /**
     * @param value Specifies the query that will be run in the streaming job. You can learn more about the Stream Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . Required on PUT (CreateOrReplace) requests.
     */
    @JvmName("laflnqsthkebfejx")
    public suspend fun query(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.query = mapped
    }

    /**
     * @param value Specifies the number of streaming units that the streaming job uses.
     */
    @JvmName("fpaoycfkgkxemtjn")
    public suspend fun streamingUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamingUnits = mapped
    }

    /**
     * @param value Specifies the valid streaming units a streaming job can scale to.
     */
    @JvmName("eyckkprnredyaacv")
    public suspend fun validStreamingUnits(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validStreamingUnits = mapped
    }

    /**
     * @param values Specifies the valid streaming units a streaming job can scale to.
     */
    @JvmName("rfjngemtgwslwvvp")
    public suspend fun validStreamingUnits(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validStreamingUnits = mapped
    }

    internal fun build(): TransformationArgs = TransformationArgs(
        name = name,
        query = query,
        streamingUnits = streamingUnits,
        validStreamingUnits = validStreamingUnits,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy