Record Class StepExecutionReportCoreDto

java.lang.Object
java.lang.Record
fr.enedis.chutney.execution.api.StepExecutionReportCoreDto

public record StepExecutionReportCoreDto(String name, Long duration, Instant startDate, ServerReportStatus status, List<String> information, List<String> errors, List<StepExecutionReportCoreDto> steps, String type, String targetName, String targetUrl, String strategy, Map<String,Object> evaluatedInputs, Map<String,Object> stepOutputs) extends Record
  • Constructor Details

    • StepExecutionReportCoreDto

      public StepExecutionReportCoreDto(String name, Long duration, Instant startDate, ServerReportStatus status, List<String> information, List<String> errors, List<StepExecutionReportCoreDto> steps, String type, String targetName, String targetUrl, String strategy, Map<String,Object> evaluatedInputs, Map<String,Object> stepOutputs)
      Creates an instance of a StepExecutionReportCoreDto record class.
      Parameters:
      name - the value for the name record component
      duration - the value for the duration record component
      startDate - the value for the startDate record component
      status - the value for the status record component
      information - the value for the information record component
      errors - the value for the errors record component
      steps - the value for the steps record component
      type - the value for the type record component
      targetName - the value for the targetName record component
      targetUrl - the value for the targetUrl record component
      strategy - the value for the strategy record component
      evaluatedInputs - the value for the evaluatedInputs record component
      stepOutputs - the value for the stepOutputs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • duration

      public Long duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • startDate

      public Instant startDate()
      Returns the value of the startDate record component.
      Returns:
      the value of the startDate record component
    • status

      public ServerReportStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • information

      public List<String> information()
      Returns the value of the information record component.
      Returns:
      the value of the information record component
    • errors

      public List<String> errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component
    • steps

      Returns the value of the steps record component.
      Returns:
      the value of the steps record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • targetName

      public String targetName()
      Returns the value of the targetName record component.
      Returns:
      the value of the targetName record component
    • targetUrl

      public String targetUrl()
      Returns the value of the targetUrl record component.
      Returns:
      the value of the targetUrl record component
    • strategy

      public String strategy()
      Returns the value of the strategy record component.
      Returns:
      the value of the strategy record component
    • evaluatedInputs

      public Map<String,Object> evaluatedInputs()
      Returns the value of the evaluatedInputs record component.
      Returns:
      the value of the evaluatedInputs record component
    • stepOutputs

      public Map<String,Object> stepOutputs()
      Returns the value of the stepOutputs record component.
      Returns:
      the value of the stepOutputs record component