public class ComponentParameterizationBuilder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel> extends Object implements ComponentParameterization.Builder<M>
| Constructor and Description |
|---|
ComponentParameterizationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ComponentParameterization<M> |
build()
Performs validations on the parameters provided through
ComponentParameterization.Builder.withParameter(String, String, Object). |
ComponentParameterization.Builder<M> |
withModel(M model) |
ComponentParameterization.Builder<M> |
withParameter(String paramName,
Object paramValue)
Sets a parameter with a given value, automatically determining the group the parameter belongs to.
|
ComponentParameterization.Builder<M> |
withParameter(String paramGroupName,
String paramName,
Object paramValue)
Sets a parameter with a given value.
|
public ComponentParameterization.Builder<M> withModel(M model)
public ComponentParameterization.Builder<M> withParameter(String paramGroupName, String paramName, Object paramValue) throws IllegalArgumentException
ComponentParameterization.BuilderwithParameter in interface ComponentParameterization.Builder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>paramGroupName - the name of the group containing the parameter to set.paramName - the name of the parameter within the paramGroupName group to set.paramValue - the value of the parameter to setIllegalArgumentException - if the provided parameter group and name does not exist for the model or is not of
a valid type.public ComponentParameterization.Builder<M> withParameter(String paramName, Object paramValue) throws IllegalArgumentException
ComponentParameterization.BuilderwithParameter in interface ComponentParameterization.Builder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>paramName - the name of the parameter within the paramGroupName group to set.paramValue - the value of the parameter to setIllegalArgumentException - if the provided parameter name does not exist for the model, a parameter with the
same name exists in more than on parameter group, or is not of a valid type.public ComponentParameterization<M> build()
ComponentParameterization.BuilderComponentParameterization.Builder.withParameter(String, String, Object). If valid, returns a
ComponentParameterization, otherwise an IllegalStateException is thrown.build in interface ComponentParameterization.Builder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>ComponentParameterization.Copyright © 2022 MuleSoft, Inc.. All rights reserved.