Class ParameterDescriptor.Builder
java.lang.Object
io.aiven.commons.kafka.connector.common.templating.ParameterDescriptor.Builder
- Enclosing class:
ParameterDescriptor
The builder for a ParameterDescriptor.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the parameter descriptor.description(String description) Sets the description.required(boolean state) Sets the required flag.validator(org.apache.kafka.common.config.ConfigDef.Validator validator) Sets the validator.
-
Method Details
-
required
Sets the required flag.- Parameters:
state- the state for the required flag.- Returns:
- this
-
validator
public ParameterDescriptor.Builder validator(org.apache.kafka.common.config.ConfigDef.Validator validator) Sets the validator.- Parameters:
validator- The validator to use.- Returns:
- this.
-
description
Sets the description.- Parameters:
description- the description.- Returns:
- this.
-
build
Builds the parameter descriptor.- Returns:
- the new parameter descriptor.
-