
commonMain.aws.sdk.kotlin.services.kafka.model.TopicReplicationUpdate.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 for updating the topic replication of a replicator.
*/
public class TopicReplicationUpdate private constructor(builder: Builder) {
/**
* Whether to periodically configure remote topic ACLs to match their corresponding upstream topics.
*/
public val copyAccessControlListsForTopics: kotlin.Boolean? = builder.copyAccessControlListsForTopics
/**
* Whether to periodically configure remote topics to match their corresponding upstream topics.
*/
public val copyTopicConfigurations: kotlin.Boolean? = builder.copyTopicConfigurations
/**
* Whether to periodically check for new topics and partitions.
*/
public val detectAndCopyNewTopics: kotlin.Boolean? = builder.detectAndCopyNewTopics
/**
* List of regular expression patterns indicating the topics that should not be replicated.
*/
public val topicsToExclude: List? = builder.topicsToExclude
/**
* List of regular expression patterns indicating the topics to copy.
*/
public val topicsToReplicate: List? = builder.topicsToReplicate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.TopicReplicationUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TopicReplicationUpdate(")
append("copyAccessControlListsForTopics=$copyAccessControlListsForTopics,")
append("copyTopicConfigurations=$copyTopicConfigurations,")
append("detectAndCopyNewTopics=$detectAndCopyNewTopics,")
append("topicsToExclude=$topicsToExclude,")
append("topicsToReplicate=$topicsToReplicate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = copyAccessControlListsForTopics?.hashCode() ?: 0
result = 31 * result + (copyTopicConfigurations?.hashCode() ?: 0)
result = 31 * result + (detectAndCopyNewTopics?.hashCode() ?: 0)
result = 31 * result + (topicsToExclude?.hashCode() ?: 0)
result = 31 * result + (topicsToReplicate?.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 TopicReplicationUpdate
if (copyAccessControlListsForTopics != other.copyAccessControlListsForTopics) return false
if (copyTopicConfigurations != other.copyTopicConfigurations) return false
if (detectAndCopyNewTopics != other.detectAndCopyNewTopics) return false
if (topicsToExclude != other.topicsToExclude) return false
if (topicsToReplicate != other.topicsToReplicate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.TopicReplicationUpdate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Whether to periodically configure remote topic ACLs to match their corresponding upstream topics.
*/
public var copyAccessControlListsForTopics: kotlin.Boolean? = null
/**
* Whether to periodically configure remote topics to match their corresponding upstream topics.
*/
public var copyTopicConfigurations: kotlin.Boolean? = null
/**
* Whether to periodically check for new topics and partitions.
*/
public var detectAndCopyNewTopics: kotlin.Boolean? = null
/**
* List of regular expression patterns indicating the topics that should not be replicated.
*/
public var topicsToExclude: List? = null
/**
* List of regular expression patterns indicating the topics to copy.
*/
public var topicsToReplicate: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.TopicReplicationUpdate) : this() {
this.copyAccessControlListsForTopics = x.copyAccessControlListsForTopics
this.copyTopicConfigurations = x.copyTopicConfigurations
this.detectAndCopyNewTopics = x.detectAndCopyNewTopics
this.topicsToExclude = x.topicsToExclude
this.topicsToReplicate = x.topicsToReplicate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.TopicReplicationUpdate = TopicReplicationUpdate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy