Record Class ScenarioExecutionReportDto

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

public record ScenarioExecutionReportDto(long executionId, String scenarioName, String environment, String user, Set<String> tags, Map<String,Object> contextVariables, StepExecutionReportCoreDto report) extends Record
  • Constructor Details

    • ScenarioExecutionReportDto

      public ScenarioExecutionReportDto(long executionId, String scenarioName, String environment, String user, Set<String> tags, Map<String,Object> contextVariables, StepExecutionReportCoreDto report)
      Creates an instance of a ScenarioExecutionReportDto record class.
      Parameters:
      executionId - the value for the executionId record component
      scenarioName - the value for the scenarioName record component
      environment - the value for the environment record component
      user - the value for the user record component
      tags - the value for the tags record component
      contextVariables - the value for the contextVariables record component
      report - the value for the report 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • executionId

      public long executionId()
      Returns the value of the executionId record component.
      Returns:
      the value of the executionId record component
    • scenarioName

      public String scenarioName()
      Returns the value of the scenarioName record component.
      Returns:
      the value of the scenarioName record component
    • environment

      public String environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • tags

      public Set<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • contextVariables

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

      public StepExecutionReportCoreDto report()
      Returns the value of the report record component.
      Returns:
      the value of the report record component