
com.pulumi.azurenative.eventhub.kotlin.inputs.CaptureDescriptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.eventhub.kotlin.inputs
import com.pulumi.azurenative.eventhub.inputs.CaptureDescriptionArgs.builder
import com.pulumi.azurenative.eventhub.kotlin.enums.EncodingCaptureDescription
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Properties to configure capture description for eventhub
* @property destination Properties of Destination where capture will be stored. (Storage Account, Blob Names)
* @property enabled A value that indicates whether capture description is enabled.
* @property encoding Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
* @property intervalInSeconds The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
* @property sizeLimitInBytes The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
* @property skipEmptyArchives A value that indicates whether to Skip Empty Archives
*/
public data class CaptureDescriptionArgs(
public val destination: Output? = null,
public val enabled: Output? = null,
public val encoding: Output? = null,
public val intervalInSeconds: Output? = null,
public val sizeLimitInBytes: Output? = null,
public val skipEmptyArchives: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.eventhub.inputs.CaptureDescriptionArgs =
com.pulumi.azurenative.eventhub.inputs.CaptureDescriptionArgs.builder()
.destination(destination?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.encoding(encoding?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.intervalInSeconds(intervalInSeconds?.applyValue({ args0 -> args0 }))
.sizeLimitInBytes(sizeLimitInBytes?.applyValue({ args0 -> args0 }))
.skipEmptyArchives(skipEmptyArchives?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CaptureDescriptionArgs].
*/
@PulumiTagMarker
public class CaptureDescriptionArgsBuilder 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 Properties of Destination where capture will be stored. (Storage Account, Blob Names)
*/
@JvmName("npcvrxkaeevlwagn")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value A value that indicates whether capture description is enabled.
*/
@JvmName("mlodvouwgkjyjbkh")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
*/
@JvmName("rkmrripjvcmoyqjb")
public suspend fun encoding(`value`: Output) {
this.encoding = value
}
/**
* @param value The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
*/
@JvmName("ugxwywrtqafogmfq")
public suspend fun intervalInSeconds(`value`: Output) {
this.intervalInSeconds = value
}
/**
* @param value The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
*/
@JvmName("tcmvkcxcvcyuwxdv")
public suspend fun sizeLimitInBytes(`value`: Output) {
this.sizeLimitInBytes = value
}
/**
* @param value A value that indicates whether to Skip Empty Archives
*/
@JvmName("yhobenhchjdynili")
public suspend fun skipEmptyArchives(`value`: Output) {
this.skipEmptyArchives = value
}
/**
* @param value Properties of Destination where capture will be stored. (Storage Account, Blob Names)
*/
@JvmName("jrnccdwudcmyvagx")
public suspend fun destination(`value`: DestinationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param argument Properties of Destination where capture will be stored. (Storage Account, Blob Names)
*/
@JvmName("fksfrfobqsprfept")
public suspend fun destination(argument: suspend DestinationArgsBuilder.() -> Unit) {
val toBeMapped = DestinationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.destination = mapped
}
/**
* @param value A value that indicates whether capture description is enabled.
*/
@JvmName("dimwplagtbwnfhnx")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version
*/
@JvmName("iltakhfupapgpbkn")
public suspend fun encoding(`value`: EncodingCaptureDescription?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param value The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
*/
@JvmName("janokqpagyevrjgc")
public suspend fun intervalInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.intervalInSeconds = mapped
}
/**
* @param value The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
*/
@JvmName("giahbsbadsdbbhja")
public suspend fun sizeLimitInBytes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sizeLimitInBytes = mapped
}
/**
* @param value A value that indicates whether to Skip Empty Archives
*/
@JvmName("rcrtplbqjmuekdms")
public suspend fun skipEmptyArchives(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipEmptyArchives = mapped
}
internal fun build(): CaptureDescriptionArgs = CaptureDescriptionArgs(
destination = destination,
enabled = enabled,
encoding = encoding,
intervalInSeconds = intervalInSeconds,
sizeLimitInBytes = sizeLimitInBytes,
skipEmptyArchives = skipEmptyArchives,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy