![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.monitor.kotlin.inputs.UdpReceiverArgs.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.monitor.kotlin.inputs
import com.pulumi.azurenative.monitor.inputs.UdpReceiverArgs.builder
import com.pulumi.azurenative.monitor.kotlin.enums.StreamEncodingType
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Receiver using UDP as transport protocol.
* @property encoding The encoding of the stream being received.
* @property endpoint TCP endpoint definition. Example: 0.0.0.0:.
* @property readQueueLength Max read queue length.
*/
public data class UdpReceiverArgs(
public val encoding: Output>? = null,
public val endpoint: Output,
public val readQueueLength: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.monitor.inputs.UdpReceiverArgs =
com.pulumi.azurenative.monitor.inputs.UdpReceiverArgs.builder()
.encoding(
encoding?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.endpoint(endpoint.applyValue({ args0 -> args0 }))
.readQueueLength(readQueueLength?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UdpReceiverArgs].
*/
@PulumiTagMarker
public class UdpReceiverArgsBuilder internal constructor() {
private var encoding: Output>? = null
private var endpoint: Output? = null
private var readQueueLength: Output? = null
/**
* @param value The encoding of the stream being received.
*/
@JvmName("hlmvntdndartetnl")
public suspend fun encoding(`value`: Output>) {
this.encoding = value
}
/**
* @param value TCP endpoint definition. Example: 0.0.0.0:.
*/
@JvmName("pxrhumafgbxwynlf")
public suspend fun endpoint(`value`: Output) {
this.endpoint = value
}
/**
* @param value Max read queue length.
*/
@JvmName("yxhagdmgfscjklbs")
public suspend fun readQueueLength(`value`: Output) {
this.readQueueLength = value
}
/**
* @param value The encoding of the stream being received.
*/
@JvmName("ehqamoafhhgmidoq")
public suspend fun encoding(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param value The encoding of the stream being received.
*/
@JvmName("xytlipyacprefbgm")
public fun encoding(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param value The encoding of the stream being received.
*/
@JvmName("bpwponsvicftmlfg")
public fun encoding(`value`: StreamEncodingType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param value TCP endpoint definition. Example: 0.0.0.0:.
*/
@JvmName("iteqebsjthstyseu")
public suspend fun endpoint(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endpoint = mapped
}
/**
* @param value Max read queue length.
*/
@JvmName("aqrjmmwuarlrrpbi")
public suspend fun readQueueLength(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readQueueLength = mapped
}
internal fun build(): UdpReceiverArgs = UdpReceiverArgs(
encoding = encoding,
endpoint = endpoint ?: throw PulumiNullFieldException("endpoint"),
readQueueLength = readQueueLength,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy