Package fr.enedis.chutney.execution.api
Record Class ScenarioExecutionReportDto
java.lang.Object
java.lang.Record
fr.enedis.chutney.execution.api.ScenarioExecutionReportDto
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioExecutionReportDto(long executionId, String scenarioName, String environment, String user, Set<String> tags, Map<String, Object> contextVariables, StepExecutionReportCoreDto report) Creates an instance of aScenarioExecutionReportDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextVariablesrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.Returns the value of thescenarioNamerecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
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 aScenarioExecutionReportDtorecord class.- Parameters:
executionId- the value for theexecutionIdrecord componentscenarioName- the value for thescenarioNamerecord componentenvironment- the value for theenvironmentrecord componentuser- the value for theuserrecord componenttags- the value for thetagsrecord componentcontextVariables- the value for thecontextVariablesrecord componentreport- the value for thereportrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
executionId
public long executionId()Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
contextVariables
Returns the value of thecontextVariablesrecord component.- Returns:
- the value of the
contextVariablesrecord component
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-