Record Class JobSubmissionDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.job.JobSubmissionDTO
- Record Components:
jobId- public attempt identifierrootJobId- root lineage identifierattemptNumber- lineage numberstatus- initial lifecycle statusqueuedAt- queue timenotBefore- earliest execution timededuplicated- whether an existing submission was returned
public record JobSubmissionDTO(String jobId, String rootJobId, int attemptNumber, EnumDisplay status, LocalDateTime queuedAt, LocalDateTime notBefore, boolean deduplicated)
extends Record
API response for a committed submission or retry.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionJobSubmissionDTO(String jobId, String rootJobId, int attemptNumber, EnumDisplay status, LocalDateTime queuedAt, LocalDateTime notBefore, boolean deduplicated) Creates an instance of aJobSubmissionDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptNumberrecord component.booleanReturns the value of thededuplicatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jobId()Returns the value of thejobIdrecord component.Returns the value of thenotBeforerecord component.queuedAt()Returns the value of thequeuedAtrecord component.Returns the value of therootJobIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobSubmissionDTO
public JobSubmissionDTO(String jobId, String rootJobId, int attemptNumber, EnumDisplay status, LocalDateTime queuedAt, LocalDateTime notBefore, boolean deduplicated) Creates an instance of aJobSubmissionDTOrecord class.- Parameters:
jobId- the value for thejobIdrecord componentrootJobId- the value for therootJobIdrecord componentattemptNumber- the value for theattemptNumberrecord componentstatus- the value for thestatusrecord componentqueuedAt- the value for thequeuedAtrecord componentnotBefore- the value for thenotBeforerecord componentdeduplicated- the value for thededuplicatedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
jobId
-
rootJobId
-
attemptNumber
public int attemptNumber()Returns the value of theattemptNumberrecord component.- Returns:
- the value of the
attemptNumberrecord component
-
status
-
queuedAt
-
notBefore
-
deduplicated
public boolean deduplicated()Returns the value of thededuplicatedrecord component.- Returns:
- the value of the
deduplicatedrecord component
-