Record Class Batch
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.Batch
public record Batch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String,String> metadata)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionBatch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String, String> metadata) Creates an instance of aBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelledAtrecord component.Returns the value of thecancellingAtrecord component.Returns the value of thecompletedAtrecord component.Returns the value of thecompletionWindowrecord component.longReturns the value of thecreatedAtrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorFileIdrecord component.errors()Returns the value of theerrorsrecord component.Returns the value of theexpiredAtrecord component.Returns the value of theexpiresAtrecord component.failedAt()Returns the value of thefailedAtrecord component.Returns the value of thefinalizingAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinProgressAtrecord component.Returns the value of theinputFileIdrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of theoutputFileIdrecord component.Returns the value of therequestCountsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Batch
public Batch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String, String> metadata) Creates an instance of aBatchrecord class.- Parameters:
id- the value for theidrecord componentendpoint- the value for theendpointrecord componenterrors- the value for theerrorsrecord componentinputFileId- the value for theinputFileIdrecord componentcompletionWindow- the value for thecompletionWindowrecord componentstatus- the value for thestatusrecord componentoutputFileId- the value for theoutputFileIdrecord componenterrorFileId- the value for theerrorFileIdrecord componentcreatedAt- the value for thecreatedAtrecord componentinProgressAt- the value for theinProgressAtrecord componentexpiresAt- the value for theexpiresAtrecord componentfinalizingAt- the value for thefinalizingAtrecord componentcompletedAt- the value for thecompletedAtrecord componentfailedAt- the value for thefailedAtrecord componentexpiredAt- the value for theexpiredAtrecord componentcancellingAt- the value for thecancellingAtrecord componentcancelledAt- the value for thecancelledAtrecord componentrequestCounts- the value for therequestCountsrecord componentmetadata- the value for themetadatarecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
inputFileId
Returns the value of theinputFileIdrecord component.- Returns:
- the value of the
inputFileIdrecord component
-
completionWindow
Returns the value of thecompletionWindowrecord component.- Returns:
- the value of the
completionWindowrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
outputFileId
Returns the value of theoutputFileIdrecord component.- Returns:
- the value of the
outputFileIdrecord component
-
errorFileId
Returns the value of theerrorFileIdrecord component.- Returns:
- the value of the
errorFileIdrecord component
-
createdAt
public long createdAt()Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
inProgressAt
Returns the value of theinProgressAtrecord component.- Returns:
- the value of the
inProgressAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
finalizingAt
Returns the value of thefinalizingAtrecord component.- Returns:
- the value of the
finalizingAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
failedAt
Returns the value of thefailedAtrecord component.- Returns:
- the value of the
failedAtrecord component
-
expiredAt
Returns the value of theexpiredAtrecord component.- Returns:
- the value of the
expiredAtrecord component
-
cancellingAt
Returns the value of thecancellingAtrecord component.- Returns:
- the value of the
cancellingAtrecord component
-
cancelledAt
Returns the value of thecancelledAtrecord component.- Returns:
- the value of the
cancelledAtrecord component
-
requestCounts
Returns the value of therequestCountsrecord component.- Returns:
- the value of the
requestCountsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-