com.pulumi.azure.eventhub.kotlin.inputs.EventHubCaptureDescriptionArgs.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.eventhub.kotlin.inputs
import com.pulumi.azure.eventhub.inputs.EventHubCaptureDescriptionArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property destination A `destination` block as defined below.
* @property enabled Specifies if the Capture Description is Enabled.
* @property encoding Specifies the Encoding used for the Capture Description. Possible values are `Avro` and `AvroDeflate`.
* @property intervalInSeconds Specifies the time interval in seconds at which the capture will happen. Values can be between `60` and `900` seconds. Defaults to `300` seconds.
* @property sizeLimitInBytes Specifies the amount of data built up in your EventHub before a Capture Operation occurs. Value should be between `10485760` and `524288000` bytes. Defaults to `314572800` bytes.
* @property skipEmptyArchives Specifies if empty files should not be emitted if no events occur during the Capture time window. Defaults to `false`.
*/
public data class EventHubCaptureDescriptionArgs(
public val destination: Output,
public val enabled: Output,
public val encoding: Output,
public val intervalInSeconds: Output? = null,
public val sizeLimitInBytes: Output? = null,
public val skipEmptyArchives: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.eventhub.inputs.EventHubCaptureDescriptionArgs =
com.pulumi.azure.eventhub.inputs.EventHubCaptureDescriptionArgs.builder()
.destination(destination.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enabled(enabled.applyValue({ args0 -> args0 }))
.encoding(encoding.applyValue({ args0 -> args0 }))
.intervalInSeconds(intervalInSeconds?.applyValue({ args0 -> args0 }))
.sizeLimitInBytes(sizeLimitInBytes?.applyValue({ args0 -> args0 }))
.skipEmptyArchives(skipEmptyArchives?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EventHubCaptureDescriptionArgs].
*/
@PulumiTagMarker
public class EventHubCaptureDescriptionArgsBuilder internal constructor() {
private var destination: Output? = null
private var enabled: Output? = null
private var encoding: Output? = null
private var intervalInSeconds: Output? = null
private var sizeLimitInBytes: Output? = null
private var skipEmptyArchives: Output? = null
/**
* @param value A `destination` block as defined below.
*/
@JvmName("prkegywknmyxkduk")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value Specifies if the Capture Description is Enabled.
*/
@JvmName("mqkmjcdmxhdhfvjm")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Specifies the Encoding used for the Capture Description. Possible values are `Avro` and `AvroDeflate`.
*/
@JvmName("uhmldippmjmmegbd")
public suspend fun encoding(`value`: Output) {
this.encoding = value
}
/**
* @param value Specifies the time interval in seconds at which the capture will happen. Values can be between `60` and `900` seconds. Defaults to `300` seconds.
*/
@JvmName("ecrlqjwjwrnnwlvo")
public suspend fun intervalInSeconds(`value`: Output) {
this.intervalInSeconds = value
}
/**
* @param value Specifies the amount of data built up in your EventHub before a Capture Operation occurs. Value should be between `10485760` and `524288000` bytes. Defaults to `314572800` bytes.
*/
@JvmName("wknqfidcpgiamoih")
public suspend fun sizeLimitInBytes(`value`: Output) {
this.sizeLimitInBytes = value
}
/**
* @param value Specifies if empty files should not be emitted if no events occur during the Capture time window. Defaults to `false`.
*/
@JvmName("cjtsumhqflcdjhda")
public suspend fun skipEmptyArchives(`value`: Output) {
this.skipEmptyArchives = value
}
/**
* @param value A `destination` block as defined below.
*/
@JvmName("omxonpqkhpvywbje")
public suspend fun destination(`value`: EventHubCaptureDescriptionDestinationArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param argument A `destination` block as defined below.
*/
@JvmName("ablhdvrbjtjaaiqh")
public suspend
fun destination(argument: suspend EventHubCaptureDescriptionDestinationArgsBuilder.() -> Unit) {
val toBeMapped = EventHubCaptureDescriptionDestinationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.destination = mapped
}
/**
* @param value Specifies if the Capture Description is Enabled.
*/
@JvmName("pvulxhdqghyrnvfd")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Specifies the Encoding used for the Capture Description. Possible values are `Avro` and `AvroDeflate`.
*/
@JvmName("vgjaqhxwpadekwpg")
public suspend fun encoding(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param value Specifies the time interval in seconds at which the capture will happen. Values can be between `60` and `900` seconds. Defaults to `300` seconds.
*/
@JvmName("ugnrcytgpyfvtncq")
public suspend fun intervalInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.intervalInSeconds = mapped
}
/**
* @param value Specifies the amount of data built up in your EventHub before a Capture Operation occurs. Value should be between `10485760` and `524288000` bytes. Defaults to `314572800` bytes.
*/
@JvmName("kjbklriqndkarbau")
public suspend fun sizeLimitInBytes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sizeLimitInBytes = mapped
}
/**
* @param value Specifies if empty files should not be emitted if no events occur during the Capture time window. Defaults to `false`.
*/
@JvmName("glircxadroqwsspf")
public suspend fun skipEmptyArchives(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipEmptyArchives = mapped
}
internal fun build(): EventHubCaptureDescriptionArgs = EventHubCaptureDescriptionArgs(
destination = destination ?: throw PulumiNullFieldException("destination"),
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
encoding = encoding ?: throw PulumiNullFieldException("encoding"),
intervalInSeconds = intervalInSeconds,
sizeLimitInBytes = sizeLimitInBytes,
skipEmptyArchives = skipEmptyArchives,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy