
commonMain.aws.sdk.kotlin.services.kafka.model.ConsumerGroupReplicationUpdate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafka.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Details about consumer group replication.
*/
public class ConsumerGroupReplicationUpdate private constructor(builder: Builder) {
/**
* List of regular expression patterns indicating the consumer groups that should not be replicated.
*/
public val consumerGroupsToExclude: List? = builder.consumerGroupsToExclude
/**
* List of regular expression patterns indicating the consumer groups to copy.
*/
public val consumerGroupsToReplicate: List? = builder.consumerGroupsToReplicate
/**
* Enables synchronization of consumer groups to target cluster.
*/
public val detectAndCopyNewConsumerGroups: kotlin.Boolean? = builder.detectAndCopyNewConsumerGroups
/**
* Enables synchronization of consumer group offsets to target cluster. The translated offsets will be written to topic __consumer_offsets.
*/
public val synchroniseConsumerGroupOffsets: kotlin.Boolean? = builder.synchroniseConsumerGroupOffsets
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.ConsumerGroupReplicationUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConsumerGroupReplicationUpdate(")
append("consumerGroupsToExclude=$consumerGroupsToExclude,")
append("consumerGroupsToReplicate=$consumerGroupsToReplicate,")
append("detectAndCopyNewConsumerGroups=$detectAndCopyNewConsumerGroups,")
append("synchroniseConsumerGroupOffsets=$synchroniseConsumerGroupOffsets")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = consumerGroupsToExclude?.hashCode() ?: 0
result = 31 * result + (consumerGroupsToReplicate?.hashCode() ?: 0)
result = 31 * result + (detectAndCopyNewConsumerGroups?.hashCode() ?: 0)
result = 31 * result + (synchroniseConsumerGroupOffsets?.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 ConsumerGroupReplicationUpdate
if (consumerGroupsToExclude != other.consumerGroupsToExclude) return false
if (consumerGroupsToReplicate != other.consumerGroupsToReplicate) return false
if (detectAndCopyNewConsumerGroups != other.detectAndCopyNewConsumerGroups) return false
if (synchroniseConsumerGroupOffsets != other.synchroniseConsumerGroupOffsets) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.ConsumerGroupReplicationUpdate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* List of regular expression patterns indicating the consumer groups that should not be replicated.
*/
public var consumerGroupsToExclude: List? = null
/**
* List of regular expression patterns indicating the consumer groups to copy.
*/
public var consumerGroupsToReplicate: List? = null
/**
* Enables synchronization of consumer groups to target cluster.
*/
public var detectAndCopyNewConsumerGroups: kotlin.Boolean? = null
/**
* Enables synchronization of consumer group offsets to target cluster. The translated offsets will be written to topic __consumer_offsets.
*/
public var synchroniseConsumerGroupOffsets: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.ConsumerGroupReplicationUpdate) : this() {
this.consumerGroupsToExclude = x.consumerGroupsToExclude
this.consumerGroupsToReplicate = x.consumerGroupsToReplicate
this.detectAndCopyNewConsumerGroups = x.detectAndCopyNewConsumerGroups
this.synchroniseConsumerGroupOffsets = x.synchroniseConsumerGroupOffsets
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.ConsumerGroupReplicationUpdate = ConsumerGroupReplicationUpdate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy