com.pulumi.azure.streamanalytics.kotlin.inputs.OutputServicebusTopicSerializationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.streamanalytics.kotlin.inputs
import com.pulumi.azure.streamanalytics.inputs.OutputServicebusTopicSerializationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property encoding The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to `UTF8`.
* > **NOTE:** This is required when `type` is set to `Csv` or `Json`.
* @property fieldDelimiter The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are ` ` (space), `,` (comma), ` ` (tab), `|` (pipe) and `;`.
* > **NOTE:** This is required when `type` is set to `Csv`.
* @property format Specifies the format of the JSON the output will be written in. Possible values are `Array` and `LineSeparated`.
* > **NOTE:** This is Required and can only be specified when `type` is set to `Json`.
* @property type The serialization format used for outgoing data streams. Possible values are `Avro`, `Csv`, `Json` and `Parquet`.
*/
public data class OutputServicebusTopicSerializationArgs(
public val encoding: Output? = null,
public val fieldDelimiter: Output? = null,
public val format: Output? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.streamanalytics.inputs.OutputServicebusTopicSerializationArgs =
com.pulumi.azure.streamanalytics.inputs.OutputServicebusTopicSerializationArgs.builder()
.encoding(encoding?.applyValue({ args0 -> args0 }))
.fieldDelimiter(fieldDelimiter?.applyValue({ args0 -> args0 }))
.format(format?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OutputServicebusTopicSerializationArgs].
*/
@PulumiTagMarker
public class OutputServicebusTopicSerializationArgsBuilder internal constructor() {
private var encoding: Output? = null
private var fieldDelimiter: Output? = null
private var format: Output? = null
private var type: Output? = null
/**
* @param value The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to `UTF8`.
* > **NOTE:** This is required when `type` is set to `Csv` or `Json`.
*/
@JvmName("sfihtxcuqmmywnae")
public suspend fun encoding(`value`: Output) {
this.encoding = value
}
/**
* @param value The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are ` ` (space), `,` (comma), ` ` (tab), `|` (pipe) and `;`.
* > **NOTE:** This is required when `type` is set to `Csv`.
*/
@JvmName("serovbqavlsllueh")
public suspend fun fieldDelimiter(`value`: Output) {
this.fieldDelimiter = value
}
/**
* @param value Specifies the format of the JSON the output will be written in. Possible values are `Array` and `LineSeparated`.
* > **NOTE:** This is Required and can only be specified when `type` is set to `Json`.
*/
@JvmName("rvkfrreoymikrukj")
public suspend fun format(`value`: Output) {
this.format = value
}
/**
* @param value The serialization format used for outgoing data streams. Possible values are `Avro`, `Csv`, `Json` and `Parquet`.
*/
@JvmName("ucmxfhksvdwqgfig")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. It currently can only be set to `UTF8`.
* > **NOTE:** This is required when `type` is set to `Csv` or `Json`.
*/
@JvmName("tecfmgwvgyvuauqn")
public suspend fun encoding(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param value The delimiter that will be used to separate comma-separated value (CSV) records. Possible values are ` ` (space), `,` (comma), ` ` (tab), `|` (pipe) and `;`.
* > **NOTE:** This is required when `type` is set to `Csv`.
*/
@JvmName("wsmfptkefpprioev")
public suspend fun fieldDelimiter(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fieldDelimiter = mapped
}
/**
* @param value Specifies the format of the JSON the output will be written in. Possible values are `Array` and `LineSeparated`.
* > **NOTE:** This is Required and can only be specified when `type` is set to `Json`.
*/
@JvmName("clymuaguanfctmjj")
public suspend fun format(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.format = mapped
}
/**
* @param value The serialization format used for outgoing data streams. Possible values are `Avro`, `Csv`, `Json` and `Parquet`.
*/
@JvmName("uwoopxsjqsjigmfm")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): OutputServicebusTopicSerializationArgs =
OutputServicebusTopicSerializationArgs(
encoding = encoding,
fieldDelimiter = fieldDelimiter,
format = format,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy