public static class ChannelFilter.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChannelFilter |
build() |
ChannelFilter.Builder |
copy(ChannelFilter model) |
ChannelFilter.Builder |
type(ChannelFilter.Type type)
The type of the filter rule.
|
ChannelFilter.Builder |
value(String value)
The body of the filter rule.
|
public ChannelFilter.Builder type(ChannelFilter.Type type)
The type of the filter rule.
For details on each type, see [Replication Filtering Rules](https://dev.mysql.com/doc/refman/8.0/en/replication-rules.html)
type
- the value to setpublic ChannelFilter.Builder value(String value)
The body of the filter rule. This can represent a database, a table, or a database pair (represented as “db1->db2”). For more information, see Replication Filtering Rules.
value
- the value to setpublic ChannelFilter build()
public ChannelFilter.Builder copy(ChannelFilter model)
Copyright © 2016–2024. All rights reserved.