Class States.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.States.Builder
- All Implemented Interfaces:
CopyableBuilder<States.Builder,,States> MutableBuilder<States.Builder,,States> ObjectBuilder<States>
- Enclosing class:
States
public static class States.Builder
extends ObjectBuilderBase
implements CopyableBuilder<States.Builder,States>
Builder for
States.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal States.BuilderThe list of actions to perform.final States.BuilderThe list of actions to perform.final States.BuilderThe list of actions to perform.build()Builds aStates.copy()Create a new builderCopyableBuilderthat is a copy of this one.final States.BuilderThe name of the state.final States.BuilderThe list of transitions to enter a new state.final States.Buildertransitions(List<Transition> list) The list of transitions to enter a new state.final States.Buildertransitions(Transition value, Transition... values) The list of transitions to enter a new state.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<States.Builder,States> - Returns:
- a new builder instance.
-
actions
The list of actions to perform.API name:
actionsAdds all elements of
listtoactions. -
actions
The list of actions to perform.API name:
actionsAdds one or more values to
actions. -
actions
The list of actions to perform.API name:
actionsAdds a value to
actionsusing a builder lambda. -
name
The name of the state.API name:
name -
transitions
The list of transitions to enter a new state.API name:
transitionsAdds all elements of
listtotransitions. -
transitions
The list of transitions to enter a new state.API name:
transitionsAdds one or more values to
transitions. -
transitions
@Nonnull public final States.Builder transitions(Function<Transition.Builder, ObjectBuilder<Transition>> fn) The list of transitions to enter a new state.API name:
transitionsAdds a value to
transitionsusing a builder lambda. -
build
Builds aStates.- Specified by:
buildin interfaceObjectBuilder<States>- Throws:
NullPointerException- if some of the required fields are null.
-