![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.streamanalytics.kotlin.inputs.FunctionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.streamanalytics.kotlin.inputs
import com.pulumi.azurenative.streamanalytics.inputs.FunctionArgs.builder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A function object, containing all information associated with the named function. All functions are contained under a streaming job.
* @property name Resource name
* @property properties The properties that are associated with a function.
*/
public data class FunctionArgs(
public val name: Output? = null,
public val properties: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.streamanalytics.inputs.FunctionArgs =
com.pulumi.azurenative.streamanalytics.inputs.FunctionArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.properties(
properties?.applyValue({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
).build()
}
/**
* Builder for [FunctionArgs].
*/
@PulumiTagMarker
public class FunctionArgsBuilder internal constructor() {
private var name: Output? = null
private var properties:
Output>? = null
/**
* @param value Resource name
*/
@JvmName("ieinnwgnceacecfa")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The properties that are associated with a function.
*/
@JvmName("jcejmpsxockssqss")
public suspend fun properties(`value`: Output>) {
this.properties = value
}
/**
* @param value Resource name
*/
@JvmName("fbvxkfrjckpqvjwc")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The properties that are associated with a function.
*/
@JvmName("unsibjoqlnbyiudy")
public suspend fun properties(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param value The properties that are associated with a function.
*/
@JvmName("ednvuqvmvlkxrreg")
public fun properties(`value`: AggregateFunctionPropertiesArgs) {
val toBeMapped = Either.ofLeft<
AggregateFunctionPropertiesArgs,
ScalarFunctionPropertiesArgs,
>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param value The properties that are associated with a function.
*/
@JvmName("qtylwrsugycewrmk")
public fun properties(`value`: ScalarFunctionPropertiesArgs) {
val toBeMapped = Either.ofRight<
AggregateFunctionPropertiesArgs,
ScalarFunctionPropertiesArgs,
>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.properties = mapped
}
internal fun build(): FunctionArgs = FunctionArgs(
name = name,
properties = properties,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy