Class ImmutableFlowResultLog

java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowResultLog
All Implemented Interfaces:
FlowProgram.FlowResultLog, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFlowResultLog extends Object implements FlowProgram.FlowResultLog
Immutable implementation of FlowProgram.FlowResultLog.

Use the builder to create immutable instances: ImmutableFlowResultLog.builder().

See Also:
  • Method Details

    • getId

      public Integer getId()
      Specified by:
      getId in interface FlowProgram.FlowResultLog
      Returns:
      The value of the id attribute
    • getStepId

      public String getStepId()
      Specified by:
      getStepId in interface FlowProgram.FlowResultLog
      Returns:
      The value of the stepId attribute
    • getStart

      public LocalDateTime getStart()
      Specified by:
      getStart in interface FlowProgram.FlowResultLog
      Returns:
      The value of the start attribute
    • getEnd

      public LocalDateTime getEnd()
      Specified by:
      getEnd in interface FlowProgram.FlowResultLog
      Returns:
      The value of the end attribute
    • getErrors

      public com.google.common.collect.ImmutableList<FlowProgram.FlowResultErrorLog> getErrors()
      Specified by:
      getErrors in interface FlowProgram.FlowResultLog
      Returns:
      The value of the errors attribute
    • getStatus

      public FlowProgram.FlowExecutionStatus getStatus()
      Specified by:
      getStatus in interface FlowProgram.FlowResultLog
      Returns:
      The value of the status attribute
    • isReturnsCollection

      public boolean isReturnsCollection()
      Specified by:
      isReturnsCollection in interface FlowProgram.FlowResultLog
      Returns:
      The value of the isReturnsCollection attribute
    • getAccepts

      public com.google.common.collect.ImmutableMap<String,Serializable> getAccepts()
      Specified by:
      getAccepts in interface FlowProgram.FlowResultLog
      Returns:
      The value of the accepts attribute
    • getReturns

      public com.google.common.collect.ImmutableMap<String,Serializable> getReturns()
      Specified by:
      getReturns in interface FlowProgram.FlowResultLog
      Returns:
      The value of the returns attribute
    • getReturnsValue

      @Nullable public Serializable getReturnsValue()
      Specified by:
      getReturnsValue in interface FlowProgram.FlowResultLog
      Returns:
      The value of the returnsValue attribute
    • withId

      public final ImmutableFlowResultLog withId(Integer value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy of the this object
    • withStepId

      public final ImmutableFlowResultLog withStepId(String value)
      Copy the current immutable object by setting a value for the stepId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for stepId
      Returns:
      A modified copy of the this object
    • withStart

      public final ImmutableFlowResultLog withStart(LocalDateTime value)
      Copy the current immutable object by setting a value for the start attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for start
      Returns:
      A modified copy of the this object
    • withEnd

      public final ImmutableFlowResultLog withEnd(LocalDateTime value)
      Copy the current immutable object by setting a value for the end attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for end
      Returns:
      A modified copy of the this object
    • withErrors

      public final ImmutableFlowResultLog withErrors(FlowProgram.FlowResultErrorLog... elements)
      Copy the current immutable object with elements that replace the content of errors.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withErrors

      public final ImmutableFlowResultLog withErrors(Iterable<? extends FlowProgram.FlowResultErrorLog> elements)
      Copy the current immutable object with elements that replace the content of errors. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of errors elements to set
      Returns:
      A modified copy of this object
    • withStatus

      Copy the current immutable object by setting a value for the status attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for status
      Returns:
      A modified copy of the this object
    • withIsReturnsCollection

      public final ImmutableFlowResultLog withIsReturnsCollection(boolean value)
      Copy the current immutable object by setting a value for the isReturnsCollection attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isReturnsCollection
      Returns:
      A modified copy of the this object
    • withAccepts

      public final ImmutableFlowResultLog withAccepts(Map<String,? extends Serializable> entries)
      Copy the current immutable object by replacing the accepts map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      entries - The entries to be added to the accepts map
      Returns:
      A modified copy of this object
    • withReturns

      public final ImmutableFlowResultLog withReturns(Map<String,? extends Serializable> entries)
      Copy the current immutable object by replacing the returns map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      entries - The entries to be added to the returns map
      Returns:
      A modified copy of this object
    • withReturnsValue

      public final ImmutableFlowResultLog withReturnsValue(@Nullable Serializable value)
      Copy the current immutable object by setting a value for the returnsValue attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for returnsValue (can be null)
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableFlowResultLog that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, stepId, start, end, errors, status, isReturnsCollection, accepts, returns, returnsValue.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value FlowResultLog with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableFlowResultLog copyOf(FlowProgram.FlowResultLog instance)
      Creates an immutable copy of a FlowProgram.FlowResultLog value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable FlowResultLog instance
    • builder

      public static ImmutableFlowResultLog.Builder builder()
      Creates a builder for ImmutableFlowResultLog.
       ImmutableFlowResultLog.builder()
          .id(Integer) // required id
          .stepId(String) // required stepId
          .start(java.time.LocalDateTime) // required start
          .end(java.time.LocalDateTime) // required end
          .addErrors|addAllErrors(io.resys.hdes.client.api.programs.FlowProgram.FlowResultErrorLog) // errors elements
          .status(io.resys.hdes.client.api.programs.FlowProgram.FlowExecutionStatus) // required status
          .isReturnsCollection(boolean) // required isReturnsCollection
          .putAccepts|putAllAccepts(String => java.io.Serializable) // accepts mappings
          .putReturns|putAllReturns(String => java.io.Serializable) // returns mappings
          .returnsValue(java.io.Serializable | null) // nullable returnsValue
          .build();
       
      Returns:
      A new ImmutableFlowResultLog builder