
commonMain.aws.sdk.kotlin.services.pipes.model.PipeSourceRabbitMqBrokerParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The parameters for using a Rabbit MQ broker as a source.
*/
public class PipeSourceRabbitMqBrokerParameters private constructor(builder: Builder) {
/**
* The maximum number of records to include in each batch.
*/
public val batchSize: kotlin.Int? = builder.batchSize
/**
* The credentials needed to access the resource.
*/
public val credentials: aws.sdk.kotlin.services.pipes.model.MqBrokerAccessCredentials? = builder.credentials
/**
* The maximum length of a time to wait for events.
*/
public val maximumBatchingWindowInSeconds: kotlin.Int? = builder.maximumBatchingWindowInSeconds
/**
* The name of the destination queue to consume.
*/
public val queueName: kotlin.String = requireNotNull(builder.queueName) { "A non-null value must be provided for queueName" }
/**
* The name of the virtual host associated with the source broker.
*/
public val virtualHost: kotlin.String? = builder.virtualHost
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.PipeSourceRabbitMqBrokerParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PipeSourceRabbitMqBrokerParameters(")
append("batchSize=$batchSize,")
append("credentials=$credentials,")
append("maximumBatchingWindowInSeconds=$maximumBatchingWindowInSeconds,")
append("queueName=*** Sensitive Data Redacted ***,")
append("virtualHost=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = batchSize ?: 0
result = 31 * result + (credentials?.hashCode() ?: 0)
result = 31 * result + (maximumBatchingWindowInSeconds ?: 0)
result = 31 * result + (queueName.hashCode())
result = 31 * result + (virtualHost?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as PipeSourceRabbitMqBrokerParameters
if (batchSize != other.batchSize) return false
if (credentials != other.credentials) return false
if (maximumBatchingWindowInSeconds != other.maximumBatchingWindowInSeconds) return false
if (queueName != other.queueName) return false
if (virtualHost != other.virtualHost) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.PipeSourceRabbitMqBrokerParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of records to include in each batch.
*/
public var batchSize: kotlin.Int? = null
/**
* The credentials needed to access the resource.
*/
public var credentials: aws.sdk.kotlin.services.pipes.model.MqBrokerAccessCredentials? = null
/**
* The maximum length of a time to wait for events.
*/
public var maximumBatchingWindowInSeconds: kotlin.Int? = null
/**
* The name of the destination queue to consume.
*/
public var queueName: kotlin.String? = null
/**
* The name of the virtual host associated with the source broker.
*/
public var virtualHost: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.PipeSourceRabbitMqBrokerParameters) : this() {
this.batchSize = x.batchSize
this.credentials = x.credentials
this.maximumBatchingWindowInSeconds = x.maximumBatchingWindowInSeconds
this.queueName = x.queueName
this.virtualHost = x.virtualHost
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.PipeSourceRabbitMqBrokerParameters = PipeSourceRabbitMqBrokerParameters(this)
internal fun correctErrors(): Builder {
if (queueName == null) queueName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy