Class ImmutableFlowResultLog.Builder

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

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

    • from

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder from(FlowProgram.FlowResultLog instance)
      Fill a builder with attribute values from the provided FlowResultLog 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
    • id

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder id(Integer id)
      Initializes the value for the id attribute.
      Parameters:
      id - The value for id
      Returns:
      this builder for use in a chained invocation
    • stepId

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder stepId(String stepId)
      Initializes the value for the stepId attribute.
      Parameters:
      stepId - The value for stepId
      Returns:
      this builder for use in a chained invocation
    • start

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder start(LocalDateTime start)
      Initializes the value for the start attribute.
      Parameters:
      start - The value for start
      Returns:
      this builder for use in a chained invocation
    • end

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder end(LocalDateTime end)
      Initializes the value for the end attribute.
      Parameters:
      end - The value for end
      Returns:
      this builder for use in a chained invocation
    • addErrors

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder addErrors(FlowProgram.FlowResultErrorLog element)
      Adds one element to errors list.
      Parameters:
      element - A errors element
      Returns:
      this builder for use in a chained invocation
    • addErrors

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder addErrors(FlowProgram.FlowResultErrorLog... elements)
      Adds elements to errors list.
      Parameters:
      elements - An array of errors elements
      Returns:
      this builder for use in a chained invocation
    • errors

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder errors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements)
      Sets or replaces all elements for errors list.
      Parameters:
      elements - An iterable of errors elements
      Returns:
      this builder for use in a chained invocation
    • addAllErrors

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder addAllErrors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements)
      Adds elements to errors list.
      Parameters:
      elements - An iterable of errors elements
      Returns:
      this builder for use in a chained invocation
    • status

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder status(FlowProgram.FlowExecutionStatus status)
      Initializes the value for the status attribute.
      Parameters:
      status - The value for status
      Returns:
      this builder for use in a chained invocation
    • isReturnsCollection

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder isReturnsCollection(boolean isReturnsCollection)
      Initializes the value for the isReturnsCollection attribute.
      Parameters:
      isReturnsCollection - The value for isReturnsCollection
      Returns:
      this builder for use in a chained invocation
    • putAccepts

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.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 ImmutableFlowResultLog.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 ImmutableFlowResultLog.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 ImmutableFlowResultLog.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
    • putReturns

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

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

      @CanIgnoreReturnValue public final ImmutableFlowResultLog.Builder returnsValue(@Nullable Serializable returnsValue)
      Initializes the value for the returnsValue attribute.
      Parameters:
      returnsValue - The value for returnsValue (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

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