Record Class ScheduleAction.Response.Complete
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.services.ScheduleAction.Response.Complete
- All Implemented Interfaces:
ScheduleAction.Response
- Enclosing interface:
ScheduleAction.Response
public static record ScheduleAction.Response.Complete(ScheduleResults results, long analysisId, Optional<Long> datasetId)
extends Record
implements ScheduleAction.Response
scheduler completed successfully; contains the requested results
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.scheduler.server.services.ScheduleAction.Response
ScheduleAction.Response.Complete, ScheduleAction.Response.Failed, ScheduleAction.Response.Incomplete, ScheduleAction.Response.Pending
-
Constructor Summary
ConstructorDescriptionComplete
(ScheduleResults results, long analysisId, Optional<Long> datasetId) Creates an instance of aComplete
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theanalysisId
record component.Returns the value of thedatasetId
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.results()
Returns the value of theresults
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Complete
Creates an instance of aComplete
record class.- Parameters:
results
- the value for theresults
record componentanalysisId
- the value for theanalysisId
record componentdatasetId
- the value for thedatasetId
record 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 '=='. -
results
Returns the value of theresults
record component.- Returns:
- the value of the
results
record component
-
analysisId
public long analysisId()Returns the value of theanalysisId
record component.- Returns:
- the value of the
analysisId
record component
-
datasetId
Returns the value of thedatasetId
record component.- Returns:
- the value of the
datasetId
record component
-