Class ImmutableFlowExecutionLog.Builder
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowExecutionLog.Builder
- Enclosing class:
- ImmutableFlowExecutionLog
Builds instances of type
ImmutableFlowExecutionLog.
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.build()Builds a newImmutableFlowExecutionLog.from(Program.FlowExecutionLog instance) Fill a builder with attribute values from the providedFlowExecutionLoginstance.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.putAllSteps(Map<String, ? extends FlowProgram.FlowResultLog> entries) Put all mappings from the specified map as entries tostepsmap.putSteps(String key, FlowProgram.FlowResultLog value) Put one entry to thestepsmap.putSteps(Map.Entry<String, ? extends FlowProgram.FlowResultLog> entry) Put one entry to thestepsmap.steps(Map<String, ? extends FlowProgram.FlowResultLog> entries) Sets or replaces all mappings from the specified map as entries for thestepsmap.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder from(Program.FlowExecutionLog instance) Fill a builder with attribute values from the providedFlowExecutionLoginstance. 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
-
putAccepts
@CanIgnoreReturnValue public final ImmutableFlowExecutionLog.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 ImmutableFlowExecutionLog.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 ImmutableFlowExecutionLog.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 ImmutableFlowExecutionLog.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
-
putSteps
@CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putSteps(String key, FlowProgram.FlowResultLog value) Put one entry to thestepsmap.- Parameters:
key- The key in the steps mapvalue- The associated value in the steps map- Returns:
thisbuilder for use in a chained invocation
-
putSteps
@CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putSteps(Map.Entry<String, ? extends FlowProgram.FlowResultLog> entry) Put one entry to thestepsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
steps
@CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder steps(Map<String, ? extends FlowProgram.FlowResultLog> entries) Sets or replaces all mappings from the specified map as entries for thestepsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the steps map- Returns:
thisbuilder for use in a chained invocation
-
putAllSteps
@CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putAllSteps(Map<String, ? extends FlowProgram.FlowResultLog> entries) Put all mappings from the specified map as entries tostepsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the steps map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFlowExecutionLog.- Returns:
- An immutable instance of FlowExecutionLog
- Throws:
IllegalStateException- if any required attributes are missing
-