
com.pulumi.awsnative.pipes.kotlin.inputs.PipeSourceRabbitMqBrokerParametersArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.pipes.kotlin.inputs
import com.pulumi.awsnative.pipes.inputs.PipeSourceRabbitMqBrokerParametersArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property batchSize The maximum number of records to include in each batch.
* @property credentials The credentials needed to access the resource.
* @property maximumBatchingWindowInSeconds The maximum length of a time to wait for events.
* @property queueName The name of the destination queue to consume.
* @property virtualHost The name of the virtual host associated with the source broker.
*/
public data class PipeSourceRabbitMqBrokerParametersArgs(
public val batchSize: Output? = null,
public val credentials: Output,
public val maximumBatchingWindowInSeconds: Output? = null,
public val queueName: Output,
public val virtualHost: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeSourceRabbitMqBrokerParametersArgs =
com.pulumi.awsnative.pipes.inputs.PipeSourceRabbitMqBrokerParametersArgs.builder()
.batchSize(batchSize?.applyValue({ args0 -> args0 }))
.credentials(credentials.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds?.applyValue({ args0 -> args0 }))
.queueName(queueName.applyValue({ args0 -> args0 }))
.virtualHost(virtualHost?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PipeSourceRabbitMqBrokerParametersArgs].
*/
@PulumiTagMarker
public class PipeSourceRabbitMqBrokerParametersArgsBuilder internal constructor() {
private var batchSize: Output? = null
private var credentials: Output? = null
private var maximumBatchingWindowInSeconds: Output? = null
private var queueName: Output? = null
private var virtualHost: Output? = null
/**
* @param value The maximum number of records to include in each batch.
*/
@JvmName("nvuucsyauvkbydtv")
public suspend fun batchSize(`value`: Output) {
this.batchSize = value
}
/**
* @param value The credentials needed to access the resource.
*/
@JvmName("mtvenbwfaleejxjn")
public suspend fun credentials(`value`: Output) {
this.credentials = value
}
/**
* @param value The maximum length of a time to wait for events.
*/
@JvmName("uhlcyqhejodvsseu")
public suspend fun maximumBatchingWindowInSeconds(`value`: Output) {
this.maximumBatchingWindowInSeconds = value
}
/**
* @param value The name of the destination queue to consume.
*/
@JvmName("dbnlerkssbuisbpk")
public suspend fun queueName(`value`: Output) {
this.queueName = value
}
/**
* @param value The name of the virtual host associated with the source broker.
*/
@JvmName("kowgyltpnmkcmoxo")
public suspend fun virtualHost(`value`: Output) {
this.virtualHost = value
}
/**
* @param value The maximum number of records to include in each batch.
*/
@JvmName("sjjmseagylqpmmes")
public suspend fun batchSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.batchSize = mapped
}
/**
* @param value The credentials needed to access the resource.
*/
@JvmName("ujmcmmlsoglgqhfk")
public suspend fun credentials(`value`: PipeMqBrokerAccessCredentialsPropertiesArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credentials = mapped
}
/**
* @param argument The credentials needed to access the resource.
*/
@JvmName("uudiaodiwllvmkyp")
public suspend fun credentials(argument: suspend PipeMqBrokerAccessCredentialsPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = PipeMqBrokerAccessCredentialsPropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.credentials = mapped
}
/**
* @param value The maximum length of a time to wait for events.
*/
@JvmName("oevtpawrvihjtnod")
public suspend fun maximumBatchingWindowInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumBatchingWindowInSeconds = mapped
}
/**
* @param value The name of the destination queue to consume.
*/
@JvmName("lpoasyakrtqroqpp")
public suspend fun queueName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.queueName = mapped
}
/**
* @param value The name of the virtual host associated with the source broker.
*/
@JvmName("fxcdgnxdmjkqqhpb")
public suspend fun virtualHost(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualHost = mapped
}
internal fun build(): PipeSourceRabbitMqBrokerParametersArgs =
PipeSourceRabbitMqBrokerParametersArgs(
batchSize = batchSize,
credentials = credentials ?: throw PulumiNullFieldException("credentials"),
maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds,
queueName = queueName ?: throw PulumiNullFieldException("queueName"),
virtualHost = virtualHost,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy