Class TemplateVariableRegistry.Builder
java.lang.Object
io.aiven.commons.kafka.connector.common.templating.TemplateVariableRegistry.Builder
- Enclosing class:
TemplateVariableRegistry
Builder for VariableTemplateRegistries.
-
Method Summary
Modifier and TypeMethodDescriptionadd(TemplateVariable variable) Adds a template variable to the builder.add(TemplateVariableRegistry registry) Adds a template variable registry to the builder.build()Builds a new TemplateVariableRegistry from this builder.remove(TemplateVariable variable) Removes a template variable from the builder.remove(TemplateVariableRegistry registry) Removes a template variable registry from the builder.
-
Method Details
-
build
Builds a new TemplateVariableRegistry from this builder.- Returns:
- a new TemplateVariableRegistry
-
add
Adds a template variable to the builder.- Parameters:
variable- the variable to add.- Returns:
- this
-
remove
Removes a template variable from the builder.- Parameters:
variable- the variable to remove.- Returns:
- this
-
add
Adds a template variable registry to the builder.- Parameters:
registry- the registry to add.- Returns:
- this
-
remove
Removes a template variable registry from the builder.- Parameters:
registry- the registry to remove.- Returns:
- this
-