Record Class FeatureRollbackInfo
java.lang.Object
java.lang.Record
app.ductape.sdk.features.executor.state.FeatureRollbackInfo
public record FeatureRollbackInfo(String triggeredBy, String reason, List<String> rolledBackSteps, List<Map<String,Object>> failedRollbacks)
extends Record
Sprint 4 — rollback summary matching TS
rollback_info.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedRollbacksrecord component.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of therolledBackStepsrecord component.toMap()final StringtoString()Returns a string representation of this record class.Returns the value of thetriggeredByrecord component.
-
Constructor Details
-
FeatureRollbackInfo
public FeatureRollbackInfo(String triggeredBy, String reason, List<String> rolledBackSteps, List<Map<String, Object>> failedRollbacks) Creates an instance of aFeatureRollbackInforecord class.- Parameters:
triggeredBy- the value for thetriggeredByrecord componentreason- the value for thereasonrecord componentrolledBackSteps- the value for therolledBackStepsrecord componentfailedRollbacks- the value for thefailedRollbacksrecord component
-
-
Method Details
-
toMap
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
triggeredBy
Returns the value of thetriggeredByrecord component.- Returns:
- the value of the
triggeredByrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
rolledBackSteps
Returns the value of therolledBackStepsrecord component.- Returns:
- the value of the
rolledBackStepsrecord component
-
failedRollbacks
Returns the value of thefailedRollbacksrecord component.- Returns:
- the value of the
failedRollbacksrecord component
-