Package org.openhab.core.automation.util
Class ActionBuilder
java.lang.Object
org.openhab.core.automation.util.ModuleBuilder<ActionBuilder,Action>
org.openhab.core.automation.util.ActionBuilder
This class allows the easy construction of an
Action
instance using the builder pattern.- Author:
- Markus Rathgeb - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.automation.util.ModuleBuilder
configuration, description, label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ActionBuilder
create()
static ActionBuilder
withInputs
(@Nullable Map<String, String> inputs) Methods inherited from class org.openhab.core.automation.util.ModuleBuilder
create, createAction, createAction, createCondition, createCondition, createTrigger, createTrigger, getId, getTypeUID, withConfiguration, withDescription, withId, withLabel, withTypeUID
-
Constructor Details
-
ActionBuilder
protected ActionBuilder() -
ActionBuilder
-
-
Method Details
-
create
-
create
-
withInputs
-
build
- Specified by:
build
in classModuleBuilder<ActionBuilder,
Action>
-