M - the actual ParameterizedModel sub-type of the component being built.public static interface ComponentParameterization.Builder<M extends ParameterizedModel>
ComponentParameterization instances.| Modifier and Type | Method and Description |
|---|---|
ComponentParameterization<M> |
build()
Performs validations on the parameters provided through
withParameter(String, String, Object). |
ComponentParameterization.Builder<M> |
withComponentIdentifier(ComponentIdentifier identifier) |
ComponentParameterization.Builder<M> |
withParameter(ParameterGroupModel paramGroup,
ParameterModel paramModel,
Object paramValue)
Sets a parameter with the given ParameterGroupModel and ParameterModel
|
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.
|
ComponentParameterization<M> build() throws IllegalStateException
withParameter(String, String, Object). If valid, returns a
ComponentParameterization, otherwise an IllegalStateException is thrown.ComponentParameterization.IllegalStateException - if any provided parameter is invalid, indicating which parameter and the reason for it being
invalid.ComponentParameterization.Builder<M> withParameter(String paramGroupName, String paramName, Object paramValue) throws IllegalArgumentException
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.ComponentParameterization.Builder<M> withParameter(String paramName, Object paramValue) throws IllegalArgumentException
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.ComponentParameterization.Builder<M> withParameter(ParameterGroupModel paramGroup, ParameterModel paramModel, Object paramValue)
paramGroup - - the ParameterGroupModel of the ParameterparamModel - - the ParameterModel of the ParameterparamValue - - the value of the parameter to set.ComponentParameterization.Builder<M> withComponentIdentifier(ComponentIdentifier identifier)
identifier - - the ComponentIdentifier of the parameterized component.Copyright © 2022 MuleSoft, Inc.. All rights reserved.