Class ImmutableFlowResultLog.Builder
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowResultLog.Builder
- Enclosing class:
- ImmutableFlowResultLog
Builds instances of type
ImmutableFlowResultLog.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaccepts(Map<String, ? extends Serializable> entries) Sets or replaces all mappings from the specified map as entries for theacceptsmap.addAllErrors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements) Adds elements toerrorslist.addErrors(FlowProgram.FlowResultErrorLog element) Adds one element toerrorslist.addErrors(FlowProgram.FlowResultErrorLog... elements) Adds elements toerrorslist.build()Builds a newImmutableFlowResultLog.end(LocalDateTime end) Initializes the value for theendattribute.errors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements) Sets or replaces all elements forerrorslist.from(FlowProgram.FlowResultLog instance) Fill a builder with attribute values from the providedFlowResultLoginstance.Initializes the value for theidattribute.isReturnsCollection(boolean isReturnsCollection) Initializes the value for theisReturnsCollectionattribute.putAccepts(String key, Serializable value) Put one entry to theacceptsmap.putAccepts(Map.Entry<String, ? extends Serializable> entry) Put one entry to theacceptsmap.putAllAccepts(Map<String, ? extends Serializable> entries) Put all mappings from the specified map as entries toacceptsmap.putAllReturns(Map<String, ? extends Serializable> entries) Put all mappings from the specified map as entries toreturnsmap.putReturns(String key, Serializable value) Put one entry to thereturnsmap.putReturns(Map.Entry<String, ? extends Serializable> entry) Put one entry to thereturnsmap.returns(Map<String, ? extends Serializable> entries) Sets or replaces all mappings from the specified map as entries for thereturnsmap.returnsValue(Serializable returnsValue) Initializes the value for thereturnsValueattribute.start(LocalDateTime start) Initializes the value for thestartattribute.Initializes the value for thestatusattribute.Initializes the value for thestepIdattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder from(FlowProgram.FlowResultLog instance) Fill a builder with attribute values from the providedFlowResultLoginstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
stepId
Initializes the value for thestepIdattribute.- Parameters:
stepId- The value for stepId- Returns:
thisbuilder for use in a chained invocation
-
start
Initializes the value for thestartattribute.- Parameters:
start- The value for start- Returns:
thisbuilder for use in a chained invocation
-
end
Initializes the value for theendattribute.- Parameters:
end- The value for end- Returns:
thisbuilder for use in a chained invocation
-
addErrors
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder addErrors(FlowProgram.FlowResultErrorLog element) Adds one element toerrorslist.- Parameters:
element- A errors element- Returns:
thisbuilder for use in a chained invocation
-
addErrors
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder addErrors(FlowProgram.FlowResultErrorLog... elements) Adds elements toerrorslist.- Parameters:
elements- An array of errors elements- Returns:
thisbuilder for use in a chained invocation
-
errors
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder errors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements) Sets or replaces all elements forerrorslist.- Parameters:
elements- An iterable of errors elements- Returns:
thisbuilder for use in a chained invocation
-
addAllErrors
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder addAllErrors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements) Adds elements toerrorslist.- Parameters:
elements- An iterable of errors elements- Returns:
thisbuilder for use in a chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder status(FlowProgram.FlowExecutionStatus status) Initializes the value for thestatusattribute.- Parameters:
status- The value for status- Returns:
thisbuilder for use in a chained invocation
-
isReturnsCollection
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder isReturnsCollection(boolean isReturnsCollection) Initializes the value for theisReturnsCollectionattribute.- Parameters:
isReturnsCollection- The value for isReturnsCollection- Returns:
thisbuilder for use in a chained invocation
-
putAccepts
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder putAccepts(String key, Serializable value) Put one entry to theacceptsmap.- Parameters:
key- The key in the accepts mapvalue- The associated value in the accepts map- Returns:
thisbuilder for use in a chained invocation
-
putAccepts
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder putAccepts(Map.Entry<String, ? extends Serializable> entry) Put one entry to theacceptsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
accepts
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder accepts(Map<String, ? extends Serializable> entries) Sets or replaces all mappings from the specified map as entries for theacceptsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the accepts map- Returns:
thisbuilder for use in a chained invocation
-
putAllAccepts
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder putAllAccepts(Map<String, ? extends Serializable> entries) Put all mappings from the specified map as entries toacceptsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the accepts map- Returns:
thisbuilder for use in a chained invocation
-
putReturns
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder putReturns(String key, Serializable value) Put one entry to thereturnsmap.- Parameters:
key- The key in the returns mapvalue- The associated value in the returns map- Returns:
thisbuilder for use in a chained invocation
-
putReturns
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder putReturns(Map.Entry<String, ? extends Serializable> entry) Put one entry to thereturnsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
returns
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder returns(Map<String, ? extends Serializable> entries) Sets or replaces all mappings from the specified map as entries for thereturnsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the returns map- Returns:
thisbuilder for use in a chained invocation
-
putAllReturns
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder putAllReturns(Map<String, ? extends Serializable> entries) Put all mappings from the specified map as entries toreturnsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the returns map- Returns:
thisbuilder for use in a chained invocation
-
returnsValue
@CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder returnsValue(@Nullable Serializable returnsValue) Initializes the value for thereturnsValueattribute.- Parameters:
returnsValue- The value for returnsValue (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFlowResultLog.- Returns:
- An immutable instance of FlowResultLog
- Throws:
IllegalStateException- if any required attributes are missing
-