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> |
withComponentIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) |
ComponentParameterization.Builder<M> |
withModel(M model) |
ComponentParameterization.Builder<M> |
withParameter(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel paramGroup,
org.mule.runtime.api.meta.model.parameter.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,
Consumer<ValueDeclarer> valueDeclarerConsumer)
Sets a parameter with a given value defined by a consumer of a
ValueDeclarer |
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(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel paramGroup, org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel, Object paramValue)
ComponentParameterization.BuilderwithParameter in interface ComponentParameterization.Builder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>paramGroup - - the ParameterGroupModel of the ParameterparamModel - - the ParameterModel of the ParameterparamValue - - the value of the parameter to set.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.Builder<M> withParameter(String paramGroupName, String paramName, Consumer<ValueDeclarer> valueDeclarerConsumer) throws IllegalArgumentException
ComponentParameterization.BuilderValueDeclarerwithParameter 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.valueDeclarerConsumer - a consumer to configure the value of the parameterIllegalArgumentException - if the provided parameter group and name does not exist for the modelpublic ComponentParameterization.Builder<M> withComponentIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
withComponentIdentifier in interface ComponentParameterization.Builder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>identifier - - the ComponentIdentifier of the parameterized component.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.