Class ImmutableFlowExecutionLog.Builder

java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowExecutionLog.Builder
Enclosing class:
ImmutableFlowExecutionLog

@NotThreadSafe public static final class ImmutableFlowExecutionLog.Builder extends Object
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 Details

    • from

      @CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder from(Program.FlowExecutionLog instance)
      Fill a builder with attribute values from the provided FlowExecutionLog instance. 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:
      this builder for use in a chained invocation
    • putAccepts

      @CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putAccepts(String key, Serializable value)
      Put one entry to the accepts map.
      Parameters:
      key - The key in the accepts map
      value - The associated value in the accepts map
      Returns:
      this builder for use in a chained invocation
    • putAccepts

      @CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putAccepts(Map.Entry<String,? extends Serializable> entry)
      Put one entry to the accepts map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder 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 the accepts map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the accepts map
      Returns:
      this builder 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 to accepts map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the accepts map
      Returns:
      this builder for use in a chained invocation
    • putSteps

      @CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putSteps(String key, FlowProgram.FlowResultLog value)
      Put one entry to the steps map.
      Parameters:
      key - The key in the steps map
      value - The associated value in the steps map
      Returns:
      this builder for use in a chained invocation
    • putSteps

      @CanIgnoreReturnValue public final ImmutableFlowExecutionLog.Builder putSteps(Map.Entry<String,? extends FlowProgram.FlowResultLog> entry)
      Put one entry to the steps map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder 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 the steps map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the steps map
      Returns:
      this builder 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 to steps map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the steps map
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableFlowExecutionLog build()
      Returns:
      An immutable instance of FlowExecutionLog
      Throws:
      IllegalStateException - if any required attributes are missing